diff options
author | Perry Hung <iperry@gmail.com> | 2010-09-22 03:17:45 -0400 |
---|---|---|
committer | Perry Hung <iperry@gmail.com> | 2010-09-22 03:17:45 -0400 |
commit | c13e850abe053edaa1aad6ef7b928c6bf9288cb3 (patch) | |
tree | fb8cbe016ce5d45210e311f45511ccabc437db8a /examples/test-fsmc.cpp | |
parent | 89cd6296ea10658c87b6dddf75a46308437dbb17 (diff) | |
download | librambutan-c13e850abe053edaa1aad6ef7b928c6bf9288cb3.tar.gz librambutan-c13e850abe053edaa1aad6ef7b928c6bf9288cb3.zip |
Enable external interrupts on all Maple GPIOs.
Extend the wirish attachInterrupt() and detachInterrupt() interface to
work with all GPIOs.
Note: The STM32 external interrupt lines are multiplexed between GPIO
ports. While any GPIO can be used as an external interrupt, not all of
them can be used at the same time. Each EXTI[n] line selects between
PA[n], PB[n], PC[n], etc. For example, line EXTI5 can be used with STM32
pins PA5, PB5, or PC5, but not all at the same time. See table:
EXTI Line Maple Pin STM32 Pin
0 D2 PA0
0 D27 PB0
0 D15 PC0
1 D3 PA1
1 D28 PB1
1 D16 PC1
2 D1 PA2
2 D17 PC2
2 D25 PD2
3 D0 PA3
3 D18 PC3
4 D10 PA4
4 D19 PC4
5 D13 PA5
5 D4 PB5
5 D20 PC5
6 D12 PA6
6 D5 PB6
6 D35 PC6
7 D11 PA7
7 D9 PB7
7 D36 PC7
8 D6 PA8
8 D14 PB8
8 D37 PC8
9 D7 PA9
9 D24 PB9
9 D38 PC9 (BUT)
10 D8 PA10
10 D29 PB10
10 D26 PC10
11 D30 PB11
12 D31 PB12
13 D32 PB13
13 D21 PC13
14 D33 PB14
14 D22 PC14
15 D34 PB15
15 D23 PC15
Diffstat (limited to 'examples/test-fsmc.cpp')
0 files changed, 0 insertions, 0 deletions