diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-17 00:22:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-17 00:22:48 +0000 |
commit | aa7d9710dc9c125685b30dbc3c9ac33dd0e5567f (patch) | |
tree | 996b328de328682d3616d9b23149b2b9f28b5021 /nuttx/arch/arm/src/stm32/stm32_gpio.h | |
parent | ea1804966af0283bdf98c2410c2b773a27757a33 (diff) | |
download | px4-nuttx-aa7d9710dc9c125685b30dbc3c9ac33dd0e5567f.tar.gz px4-nuttx-aa7d9710dc9c125685b30dbc3c9ac33dd0e5567f.tar.bz2 px4-nuttx-aa7d9710dc9c125685b30dbc3c9ac33dd0e5567f.zip |
STM32: Add logic to attach the RTC alarm EXTI interrupt
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4947 42af7a65-404d-4744-a932-0658087f49c3
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); |