Right now, we need #if blocks for flash support for the various boards. Instead, we should have Catena::Flash class; it should export the appropriate gFlash.begin(), gFlash.end() and gFlash.powerdown() methods, and it should internally manage the appropriate SPI bus.
Right now, we need #if blocks for flash support for the various boards. Instead, we should have Catena::Flash class; it should export the appropriate
gFlash.begin()
,gFlash.end()
andgFlash.powerdown()
methods, and it should internally manage the appropriate SPI bus.