Merge pull request #6874 from AlienWiiBF/FLASH_GENERIC
Update Flash driver for generic target
This commit is contained in:
commit
b4a5133039
|
@ -37,11 +37,7 @@ PG_REGISTER_WITH_RESET_FN(flashConfig_t, flashConfig, PG_FLASH_CONFIG, 0);
|
|||
|
||||
void pgResetFn_flashConfig(flashConfig_t *flashConfig)
|
||||
{
|
||||
#ifdef FLASH_CS_PIN
|
||||
flashConfig->csTag = IO_TAG(FLASH_CS_PIN);
|
||||
#else
|
||||
flashConfig->csTag = IO_TAG_NONE;
|
||||
#endif
|
||||
flashConfig->spiDevice = SPI_DEV_TO_CFG(spiDeviceByInstance(FLASH_SPI_INSTANCE));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -30,6 +30,18 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
// pg/flash
|
||||
|
||||
#ifdef USE_FLASH_M25P16
|
||||
#ifndef FLASH_CS_PIN
|
||||
#define FLASH_CS_PIN NONE
|
||||
#endif
|
||||
|
||||
#ifndef FLASH_SPI_INSTANCE
|
||||
#define FLASH_SPI_INSTANCE NULL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// pg/bus_i2c
|
||||
|
||||
#ifdef I2C_FULL_RECONFIGURABILITY
|
||||
|
|
Loading…
Reference in New Issue