This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 29b9cf6 xtensa/esp32: Add extern modifier to ROM function declaration
29b9cf6 is described below
commit 29b9cf652ef22dde12853b73b5b664866b228164
Author: Gustavo Henrique Nihei <[email protected]>
AuthorDate: Fri Feb 5 10:42:52 2021 -0300
xtensa/esp32: Add extern modifier to ROM function declaration
---
arch/xtensa/src/esp32/esp32_cpustart.c | 6 +++---
arch/xtensa/src/esp32/esp32_spiflash.c | 2 +-
arch/xtensa/src/esp32/rom/esp32_efuse.h | 10 +++++-----
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/arch/xtensa/src/esp32/esp32_cpustart.c
b/arch/xtensa/src/esp32/esp32_cpustart.c
index d0f287c..795263c 100644
--- a/arch/xtensa/src/esp32/esp32_cpustart.c
+++ b/arch/xtensa/src/esp32/esp32_cpustart.c
@@ -55,9 +55,9 @@ static volatile spinlock_t g_appcpu_interlock SP_SECTION;
* ROM function prototypes
****************************************************************************/
-void Cache_Flush(int cpu);
-void Cache_Read_Enable(int cpu);
-void ets_set_appcpu_boot_addr(uint32_t start);
+extern void Cache_Flush(int cpu);
+extern void Cache_Read_Enable(int cpu);
+extern void ets_set_appcpu_boot_addr(uint32_t start);
/****************************************************************************
* Private Functions
diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c
b/arch/xtensa/src/esp32/esp32_spiflash.c
index 58ead91..56197e6 100644
--- a/arch/xtensa/src/esp32/esp32_spiflash.c
+++ b/arch/xtensa/src/esp32/esp32_spiflash.c
@@ -173,7 +173,7 @@ struct spiflash_cachestate_s
* ROM function prototypes
****************************************************************************/
-void Cache_Flush(int cpu);
+extern void Cache_Flush(int cpu);
/****************************************************************************
* Private Functions Prototypes
diff --git a/arch/xtensa/src/esp32/rom/esp32_efuse.h
b/arch/xtensa/src/esp32/rom/esp32_efuse.h
index c199624..3d2c61e 100644
--- a/arch/xtensa/src/esp32/rom/esp32_efuse.h
+++ b/arch/xtensa/src/esp32/rom/esp32_efuse.h
@@ -33,32 +33,32 @@ extern "C"
#endif
/****************************************************************************
- * Public Function Prototypes
+ * ROM function prototypes
****************************************************************************/
/****************************************************************************
* Name: ets_efuse_read_op
****************************************************************************/
-void ets_efuse_read_op(void);
+extern void ets_efuse_read_op(void);
/****************************************************************************
* Name: ets_efuse_program_op
****************************************************************************/
-void ets_efuse_program_op(void);
+extern void ets_efuse_program_op(void);
/****************************************************************************
* Name: ets_efuse_get_8m_clock
****************************************************************************/
-uint32_t ets_efuse_get_8m_clock(void);
+extern uint32_t ets_efuse_get_8m_clock(void);
/****************************************************************************
* name: ets_efuse_get_spiconfig
****************************************************************************/
-uint32_t ets_efuse_get_spiconfig(void);
+extern uint32_t ets_efuse_get_spiconfig(void);
#define EFUSE_SPICFG_SPI_DEFAULTS 0
#define EFUSE_SPICFG_HSPI_DEFAULTS 1