From 005e0ba51aafb6b26383fbd7df9000399c79098d Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 21 Jan 2012 22:30:38 +0100 Subject: Added USB interrupt handler. --- hal/interrupt.cpp | 8 ++++++++ hal/pin.h | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) (limited to 'hal') diff --git a/hal/interrupt.cpp b/hal/interrupt.cpp index 611b09c..ab9c89a 100644 --- a/hal/interrupt.cpp +++ b/hal/interrupt.cpp @@ -166,4 +166,12 @@ vector_t vectors[] __attribute__((section(".vectors"))) = { interrupt, interrupt, interrupt, + 0, // 60 + 0, // 61 + 0, // 62 + 0, // 63 + 0, // 64 + 0, // 65 + 0, // 66 + interrupt<(Interrupt::IRQ)67>, // 67 }; diff --git a/hal/pin.h b/hal/pin.h index 29ec158..4102e6a 100644 --- a/hal/pin.h +++ b/hal/pin.h @@ -59,6 +59,24 @@ class Pin { } } }; + +static Pin PA0(GPIOA, 0); +static Pin PA1(GPIOA, 1); +static Pin PA2(GPIOA, 2); +static Pin PA3(GPIOA, 3); +static Pin PA4(GPIOA, 4); +static Pin PA5(GPIOA, 5); +static Pin PA6(GPIOA, 6); +static Pin PA7(GPIOA, 7); +static Pin PA8(GPIOA, 8); +static Pin PA9(GPIOA, 9); +static Pin PA10(GPIOA, 10); +static Pin PA11(GPIOA, 11); +static Pin PA12(GPIOA, 12); +static Pin PA13(GPIOA, 13); +static Pin PA14(GPIOA, 14); +static Pin PA15(GPIOA, 15); + static Pin PB0(GPIOB, 0); static Pin PB1(GPIOB, 1); static Pin PB2(GPIOB, 2); -- cgit v1.2.3