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.

This commit is contained in:
Lorenz Meier 2014-10-09 09:29:05 +02:00
parent 7bb9b3efa7
commit 1d50af272f
1 changed files with 12 additions and 3 deletions

View File

@ -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