diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-25 21:23:00 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-25 22:03:25 -0400 |
commit | 95af192c99459c56bb30763afd93582a524efc3a (patch) | |
tree | e664f8366a82181a8e1a5e42f514651f90b72888 /wirish/boards/maple.h | |
parent | bf72983543f446026556e13f62d63aad2092f1ec (diff) | |
download | librambutan-95af192c99459c56bb30763afd93582a524efc3a.tar.gz librambutan-95af192c99459c56bb30763afd93582a524efc3a.zip |
Better debug port support.
- gpio.h: afio_mapr_swj_config() renamed afio_cfg_debug_ports()
- [new] wirish_debug.h: disableDebugPorts(), enableDebugPorts()
- Maple, Maple Native, and Maple RET6 PIN_MAPs are now larger by 5,
have mappings for the extra JTAG/SW pins.
Documentation was updated appropriately.
Diffstat (limited to 'wirish/boards/maple.h')
-rw-r--r-- | wirish/boards/maple.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/wirish/boards/maple.h b/wirish/boards/maple.h index 1867de8..4a4465c 100644 --- a/wirish/boards/maple.h +++ b/wirish/boards/maple.h @@ -54,7 +54,7 @@ /* Total number of GPIO pins that are broken out to headers and * intended for general use. */ -#define BOARD_NR_GPIO_PINS 39 +#define BOARD_NR_GPIO_PINS 44 /* Number of pins capable of PWM output */ #define BOARD_NR_PWM_PINS 16 @@ -64,6 +64,15 @@ /* Number of pins already connected to external hardware. For Maple, * these are just BOARD_LED_PIN and BOARD_BUTTON_PIN. */ -#define BOARD_NR_USED_PINS 2 +#define BOARD_NR_USED_PINS 7 + +/* + * Debug port pins + */ +#define BOARD_JTMS_SWDIO_PIN 39 +#define BOARD_JTCK_SWCLK_PIN 40 +#define BOARD_JTDI_PIN 41 +#define BOARD_JTDO_PIN 42 +#define BOARD_NJTRST_PIN 43 #endif |