diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-17 00:22:48 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-17 00:22:48 +0000 |
commit | e5455995a689242ff0e3908794c0ff75f8f8534c (patch) | |
tree | 996b328de328682d3616d9b23149b2b9f28b5021 /nuttx/arch/arm/src/stm32/stm32_gpio.h | |
parent | 919354a96af7210fad0a77355c447eca823231e3 (diff) | |
download | px4-firmware-e5455995a689242ff0e3908794c0ff75f8f8534c.tar.gz px4-firmware-e5455995a689242ff0e3908794c0ff75f8f8534c.tar.bz2 px4-firmware-e5455995a689242ff0e3908794c0ff75f8f8534c.zip |
STM32: Add logic to attach the RTC alarm EXTI interrupt
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4947 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_gpio.h')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_gpio.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_gpio.h b/nuttx/arch/arm/src/stm32/stm32_gpio.h index 07559b17a..34623c525 100644 --- a/nuttx/arch/arm/src/stm32/stm32_gpio.h +++ b/nuttx/arch/arm/src/stm32/stm32_gpio.h @@ -67,16 +67,6 @@ * Pre-Processor Declarations ************************************************************************************/ -#ifndef __ASSEMBLY__ - -#undef EXTERN -#if defined(__cplusplus) -#define EXTERN extern "C" -extern "C" { -#else -#define EXTERN extern -#endif - /* Bit-encoded input to stm32_configgpio() */ #if defined(CONFIG_STM32_STM32F10XX) @@ -390,9 +380,19 @@ extern "C" { * Public Data ************************************************************************************/ +#ifndef __ASSEMBLY__ + +#undef EXTERN +#if defined(__cplusplus) +#define EXTERN extern "C" +extern "C" { +#else +#define EXTERN extern +#endif + /* Base addresses for each GPIO block */ -extern const uint32_t g_gpiobase[STM32_NGPIO_PORTS]; +EXTERN const uint32_t g_gpiobase[STM32_NGPIO_PORTS]; /************************************************************************************ * Public Function Prototypes @@ -499,7 +499,8 @@ EXTERN int stm32_dumpgpio(uint32_t pinset, const char *msg); * Based on configuration within the .config file, it does: * - Remaps positions of alternative functions. * - * Typically called from stm32_start(). + * Typically called from stm32_start(). + * ************************************************************************************/ EXTERN void stm32_gpioinit(void); |