Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
eeprom_cust.h@17:faa4d4976d22, 2019-07-06 (annotated)
- Committer:
- hi1000
- Date:
- Sat Jul 06 09:47:09 2019 +0000
- Revision:
- 17:faa4d4976d22
- Parent:
- 14:2e17a27f56b2
- Child:
- 19:0356e54240cc
Add first command - Init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hi1000 | 7:e0c7e624c5fa | 1 | #define EEPROM_ADDR 0x0 // I2c EEPROM address is 0x00 |
hi1000 | 9:486f65124378 | 2 | #ifdef STM32F207xx |
hi1000 | 7:e0c7e624c5fa | 3 | #define SDA PB_9 // I2C SDA pin |
hi1000 | 7:e0c7e624c5fa | 4 | #define SCL PB_8 // I2C SCL pin |
hi1000 | 9:486f65124378 | 5 | #endif |
hi1000 | 9:486f65124378 | 6 | |
hi1000 | 9:486f65124378 | 7 | #ifdef STM32F303xE |
hi1000 | 11:8702316d7fc8 | 8 | #define SDA PC_9//D2//D2//PB_9 //PF_0 // I2C SDA pin |
hi1000 | 11:8702316d7fc8 | 9 | #define SCL D7//D8//D8//PB_8 //PF_1 // I2C SCL pin |
hi1000 | 9:486f65124378 | 10 | #endif |
hi1000 | 7:e0c7e624c5fa | 11 | |
hi1000 | 7:e0c7e624c5fa | 12 | #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) |
hi1000 | 14:2e17a27f56b2 | 13 | #define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) |
hi1000 | 14:2e17a27f56b2 | 14 | |
hi1000 | 14:2e17a27f56b2 | 15 | #define EEPROM_DEVICE_ADDRESS_ADDRESS 0x40 |
hi1000 | 17:faa4d4976d22 | 16 | #define DEVICE_DEFAULT_ADDRESS 12 |
hi1000 | 17:faa4d4976d22 | 17 |