[En-Nut-Discussion] Bug in at45db.c

Remi Bilodeau remi.bilodeau at gmail.com
Wed Jan 27 03:37:01 CET 2010


Small bug in AT45DB.C,

I think one AT91 architecture is not enabled in At45dbInit MCU_AT91SAM7S is
not present, I have correct it:

At line 373:
#if defined(MCU_AT91SAM7S) || defined(MCU_AT91SAM7X) ||
defined(MCU_AT91SAM7SE) || defined(MCU_AT91SAM9260) ||
defined(MCU_AT91SAM9XE)
    At91SpiInit(spibas);
    At91SpiReset(spibas);
    At91SpiInitChipSelects(spibas, _BV(spipcs));
    At91SpiSetRate(spibas, spipcs, 1000000);
    At91SpiSetModeFlags(spibas, spipcs, SPIMF_MASTER | SPIMF_SCKIAHI |
SPIMF_CAPRISE);
#elif defined(MCU_AT91R40008)
#endif



More information about the En-Nut-Discussion mailing list