arch/arm: fix declaration of extern types

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2023-07-31 20:43:16 +02:00
committed by Xiang Xiao
parent 6621dc016b
commit f00c6d3047
4 changed files with 17 additions and 17 deletions
+7 -7
View File
@@ -165,13 +165,6 @@ typedef uint32_t gpio_pinset_t;
* Public Data
****************************************************************************/
/****************************************************************************
* Inline Functions
****************************************************************************/
extern const uintptr_t g_gpiobase[AM335X_GPIO_NPORTS];
#define am335x_gpion_vbase(n) (g_gpiobase[(n)])
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
@@ -181,6 +174,13 @@ extern "C"
#define EXTERN extern
#endif
/****************************************************************************
* Inline Functions
****************************************************************************/
EXTERN const uintptr_t g_gpiobase[AM335X_GPIO_NPORTS];
#define am335x_gpion_vbase(n) (g_gpiobase[(n)])
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
+2 -2
View File
@@ -358,9 +358,9 @@ uintptr_t arm_intstack_top(void);
#if defined(__ICCARM__)
/* _vectors replaced on __vector_table for IAR C-SPY Simulator */
extern const void *__vector_table[];
EXTERN const void *__vector_table[];
#else
extern const void * const _vectors[];
EXTERN const void * const _vectors[];
#endif
/* Interrupt acknowledge and dispatch */
+2 -2
View File
@@ -74,7 +74,7 @@ extern "C"
*
****************************************************************************/
extern void kinetis_usbhost_vbusdrive(int rhport, bool enable);
void kinetis_usbhost_vbusdrive(int rhport, bool enable);
/****************************************************************************
* Name: kinetis_setup_overcurrent
@@ -93,7 +93,7 @@ extern void kinetis_usbhost_vbusdrive(int rhport, bool enable);
*
****************************************************************************/
extern int kinetis_setup_overcurrent(xcpt_t handler, void *arg);
int kinetis_setup_overcurrent(xcpt_t handler, void *arg);
/****************************************************************************
* Name: kinetis_ehci_initialize
+6 -6
View File
@@ -86,8 +86,6 @@
* Public Types
****************************************************************************/
extern const unsigned int num_of_peripheral_clocks_0;
/* Clock Configuration ******************************************************/
enum scg_system_clock_type_e
@@ -456,10 +454,6 @@ enum scg_system_clock_mode_e
#ifndef __ASSEMBLY__
/****************************************************************************
* Public Data
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
@@ -469,6 +463,12 @@ extern "C"
#define EXTERN extern
#endif
/****************************************************************************
* Public Data
****************************************************************************/
EXTERN const unsigned int num_of_peripheral_clocks_0;
/****************************************************************************
* Public Function Prototypes
****************************************************************************/