diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-09 09:29:05 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-09 09:29:05 +0200 |
commit | 1d50af272f5f3727faad911a69e1b3807f28ca2d (patch) | |
tree | 193970d5cfbb4c7dc050e034946ac8fd756ca906 /src | |
parent | 7bb9b3efa71107c8988f6933720365b42c8a4046 (diff) | |
download | px4-firmware-1d50af272f5f3727faad911a69e1b3807f28ca2d.tar.gz px4-firmware-1d50af272f5f3727faad911a69e1b3807f28ca2d.tar.bz2 px4-firmware-1d50af272f5f3727faad911a69e1b3807f28ca2d.zip |
EEPROM driver: Do not issue warnings that result from our special case handling - this driver is only used for this one particular eeprom and out of the NuttX tree.
Diffstat (limited to 'src')
-rw-r--r-- | src/systemcmds/mtd/24xxxx_mtd.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/systemcmds/mtd/24xxxx_mtd.c b/src/systemcmds/mtd/24xxxx_mtd.c index 991363797..f85ed8e2d 100644 --- a/src/systemcmds/mtd/24xxxx_mtd.c +++ b/src/systemcmds/mtd/24xxxx_mtd.c @@ -80,11 +80,17 @@ /* As a minimum, the size of the AT24 part and its 7-bit I2C address are required. */ #ifndef CONFIG_AT24XX_SIZE -# warning "Assuming AT24 size 64" +/* XXX this is a well vetted special case, + * do not issue a warning any more + * # warning "Assuming AT24 size 64" + */ # define CONFIG_AT24XX_SIZE 64 #endif #ifndef CONFIG_AT24XX_ADDR -# warning "Assuming AT24 address of 0x50" +/* XXX this is a well vetted special case, + * do not issue a warning any more + * # warning "Assuming AT24 address of 0x50" + */ # define CONFIG_AT24XX_ADDR 0x50 #endif @@ -115,7 +121,10 @@ */ #ifndef CONFIG_AT24XX_MTD_BLOCKSIZE -# warning "Assuming driver block size is the same as the FLASH page size" +/* XXX this is a well vetted special case, + * do not issue a warning any more + * # warning "Assuming driver block size is the same as the FLASH page size" + */ # define CONFIG_AT24XX_MTD_BLOCKSIZE AT24XX_PAGESIZE #endif |