diff --git a/arch/risc-v/src/esp32c3/esp32c3_spiflash_mtd.c b/arch/risc-v/src/esp32c3/esp32c3_spiflash_mtd.c index 68dc75d791f..36fae3cdcc9 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_spiflash_mtd.c +++ b/arch/risc-v/src/esp32c3/esp32c3_spiflash_mtd.c @@ -102,12 +102,6 @@ static ssize_t esp32c3_bwrite_encrypt(struct mtd_dev_s *dev, static int esp32c3_ioctl(struct mtd_dev_s *dev, int cmd, unsigned long arg); -/**************************************************************************** - * Public Data - ****************************************************************************/ - -extern const struct spiflash_legacy_data_s *rom_spiflash_legacy_data; - /**************************************************************************** * Private Data ****************************************************************************/ diff --git a/arch/risc-v/src/esp32c3/rom/esp32c3_spiflash.h b/arch/risc-v/src/esp32c3/rom/esp32c3_spiflash.h index ca6bfe0cc7c..aa5a87f3923 100644 --- a/arch/risc-v/src/esp32c3/rom/esp32c3_spiflash.h +++ b/arch/risc-v/src/esp32c3/rom/esp32c3_spiflash.h @@ -989,7 +989,8 @@ int spi_flash_erase_range(uint32_t start_address, uint32_t size); * * Returned Values: * Return true if both CPUs have flash cache enabled, false otherwise. - */ + * + *****************************************************************************/ bool spi_flash_cache_enabled(void); @@ -1001,15 +1002,16 @@ bool spi_flash_cache_enabled(void); * * Parameters: * cpuid - core number to enable instruction cache for. - */ + * + *****************************************************************************/ void spi_flash_enable_cache(uint32_t cpuid); -/* Global esp32c3_spiflash_chip_t structure used by ROM functions */ +/***************************************************************************** + * Public Data + *****************************************************************************/ -extern esp32c3_spiflash_chip_t g_rom_flashchip; - -extern uint8_t g_rom_spiflash_dummy_len_plus[]; +extern const struct spiflash_legacy_data_s *rom_spiflash_legacy_data; #ifdef __cplusplus }