aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-08-03 12:41:06 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-08-03 17:34:03 -0400
commit01bbbf344cb56e5aeb43544dc81ed2733f861ca2 (patch)
treeeb351aa859ebff2fe076d341151d3733c41e5e06 /libmaple
parent711dc06ec6d58a772950fb2852c1461a792c0342 (diff)
downloadlibrambutan-01bbbf344cb56e5aeb43544dc81ed2733f861ca2.tar.gz
librambutan-01bbbf344cb56e5aeb43544dc81ed2733f861ca2.zip
exti.c: Cleanups.
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/exti.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libmaple/exti.c b/libmaple/exti.c
index 0678d4c..74a5d78 100644
--- a/libmaple/exti.c
+++ b/libmaple/exti.c
@@ -34,6 +34,10 @@
#include "nvic.h"
#include "bitband.h"
+static inline void handle_exti(uint32 exti_num);
+static inline void clear_pending(uint32 exti_num);
+static inline void dispatch_handler(uint32 exti_num);
+
/*
* Internal state
*/
@@ -135,8 +139,6 @@ void exti_detach_interrupt(afio_exti_num num) {
* Interrupt handlers
*/
-static inline void handle_exti(uint32 exti_num);
-
void __irq_exti0(void) {
handle_exti(AFIO_EXTI_0);
}
@@ -189,9 +191,6 @@ void __irq_exti15_10(void) {
* Auxiliary functions
*/
-static inline void clear_pending(uint32 exti_num);
-static inline void dispatch_handler(uint32 exti_num);
-
static inline void handle_exti(uint32 exti) {
dispatch_handler(exti);
clear_pending(exti);