aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/libmaple.h
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-02-18 05:22:39 -0500
committerPerry Hung <iperry@gmail.com>2011-02-26 22:30:22 -0500
commitf4cdcfa51096f73a49642c400681d91847137dfb (patch)
treeb49bcffdd58fc4dbedceafe55c92045e4b3e145c /libmaple/libmaple.h
parentb505ab981859761a9eae9e820c5a06e2210c5dfc (diff)
downloadlibrambutan-f4cdcfa51096f73a49642c400681d91847137dfb.tar.gz
librambutan-f4cdcfa51096f73a49642c400681d91847137dfb.zip
checkpoint
Diffstat (limited to 'libmaple/libmaple.h')
-rw-r--r--libmaple/libmaple.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmaple/libmaple.h b/libmaple/libmaple.h
index 02e27d3..3e7fea9 100644
--- a/libmaple/libmaple.h
+++ b/libmaple/libmaple.h
@@ -32,6 +32,7 @@
#define _LIBMAPLE_H_
#include "libmaple_types.h"
+#include "stm32.h"
/* General configuration */
#define DEBUG_NONE 0
@@ -67,6 +68,9 @@
/* Has a DAC? */
#define NR_DAC_PINS 0
+ /* Number of maskable interrupts */
+ #define NR_INTERRUPTS 43
+
/* USB Identifier numbers */
/* Descriptor strings must be modified by hand in
usb/descriptors.c for now */
@@ -111,6 +115,7 @@
#define NR_USART 5 /* NB: 4 and 5 are UART only */
#define NR_FSMC 1
#define NR_DAC_PINS 2
+ #define NR_INTERRUPTS 60
#define VCOM_ID_VENDOR 0x1EAF
#define VCOM_ID_PRODUCT 0x0004