diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-25 22:57:46 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-25 22:57:46 -0400 |
commit | 12c351d0561d1f9d4e017bbd3f847906f93b0df7 (patch) | |
tree | 8a1275bdee83faf5365f2982dcbf2a3c4a27f1d2 /libmaple/exti.h | |
parent | 0a6a19cf7625c0badb3bae30ad23605b39883357 (diff) | |
download | librambutan-12c351d0561d1f9d4e017bbd3f847906f93b0df7.tar.gz librambutan-12c351d0561d1f9d4e017bbd3f847906f93b0df7.zip |
inital portability work
Diffstat (limited to 'libmaple/exti.h')
-rw-r--r-- | libmaple/exti.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libmaple/exti.h b/libmaple/exti.h index fdba184..2832e24 100644 --- a/libmaple/exti.h +++ b/libmaple/exti.h @@ -94,12 +94,11 @@ * EXTI[5-9] -> EXT9_5 * EXTI[10-15] -> EXT15_10 * - * * */ -#define NR_EXTI_CHANNELS 16 -#define NR_EXTI_PORTS 4 #define NR_EXTI_MODES 3 +#define NR_EXTI_CHANNELS 16 +#define NR_EXTI_PORTS NR_GPIO_PORTS // board specific #define EXTI_IMR 0x40010400 // Interrupt mask register #define EXTI_EMR (EXTI_IMR + 0x04) // Event mask register @@ -139,6 +138,9 @@ #define EXTI_CONFIG_PORTB 1 #define EXTI_CONFIG_PORTC 2 #define EXTI_CONFIG_PORTD 3 +#define EXTI_CONFIG_PORTE 4 // Native only +#define EXTI_CONFIG_PORTF 5 // Native only +#define EXTI_CONFIG_PORTG 6 // Native only #ifdef __cplusplus |