aboutsummaryrefslogtreecommitdiff
path: root/libmaple
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2011-01-12 19:03:32 -0500
committerAJM <poslathian@poslathian.(none)>2011-01-12 19:03:32 -0500
commitcb53e68d0d36ddbff778fe59484df74e96044b55 (patch)
tree3e93b89e7d193f0067021b756659a5524ad7e3cc /libmaple
parent704236b06693307448e89841db858ce8efcf7684 (diff)
committed a maple_audio version of libmapleaudio-board
surprisingly quick mods, added the a new linker directory, and updated Makefile, boards.h, libmaple.h done and done.
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/libmaple.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/libmaple/libmaple.h b/libmaple/libmaple.h
index 74488ab..a0fce7a 100644
--- a/libmaple/libmaple.h
+++ b/libmaple/libmaple.h
@@ -99,6 +99,63 @@
#define BITBAND_PERI_BASE 0x42000000
#endif
+#ifdef MCU_STM32F103RE
+ /* e.g., LeafLabs Maple Audio Board */
+ /* this chip is identical to rbt6 minus the ram and flash gains */
+
+ /* Number of GPIO ports (GPIOA, GPIOB, etc.) */
+ #define NR_GPIO_PORTS 4
+
+ /* Total number of GPIO pins */
+ #define NR_GPIO_PINS 39
+
+ /* Number of timer devices ports, definitely used */
+ #define NR_TIMERS 4
+
+ /* Number of USART ports */
+ #define NR_USART 3
+
+ /* Has an FSMC bus? */
+ #define NR_FSMC 0
+
+ /* Has an FSMC bus? */
+ #define NR_DAC_PINS 0
+
+ /* USB Identifier numbers */
+ /* Descriptor strings must be modified by hand in
+ usb/descriptors.c for now */
+ #define VCOM_ID_VENDOR 0x1EAF
+ #define VCOM_ID_PRODUCT 0x0004
+ #define USB_DISC_BANK GPIOC_BASE
+ #define USB_DISC_PIN 12
+ #define USB_CONFIG_MAX_POWER (100 >> 1)
+ #define RESET_DELAY (100)
+
+ /* Where to put usercode (based on space reserved for bootloader) */
+ #define USER_ADDR_ROM 0x08005000
+ #define USER_ADDR_RAM 0x20000C00
+ #define STACK_TOP 0x20000800
+
+ /* Debug port settings (from ASSERT) */
+ #define ERROR_LED_PORT GPIOA_BASE
+ #define ERROR_LED_PIN 5
+ #define ERROR_USART_NUM USART2
+ #define ERROR_USART_BAUD 9600
+ #define ERROR_TX_PORT GPIOA_BASE
+ #define ERROR_TX_PIN 2
+
+ /* Just in case, most boards have at least some memory */
+ #ifndef RAMSIZE
+ # define RAMSIZE (caddr_t)0x50000
+ #endif
+
+ /* Bitbanded Memory sections */
+ #define BITBAND_SRAM_REF 0x20000000
+ #define BITBAND_SRAM_BASE 0x22000000
+ #define BITBAND_PERI_REF 0x40000000
+ #define BITBAND_PERI_BASE 0x42000000
+#endif
+
#ifdef MCU_STM32F103ZE
/* e.g., LeafLabs Maple Native */