diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-25 14:28:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-25 14:28:12 +0000 |
commit | 05f9ddee3b6976be77d91ab1cf0efdec98729081 (patch) | |
tree | 8c2d7189b06a000e1e2ed57041c9058422d6b795 /nuttx/configs/pic32-starterkit/include | |
parent | 8306af944ed148da216c9843f458c28e65d86e2a (diff) | |
download | px4-nuttx-05f9ddee3b6976be77d91ab1cf0efdec98729081.tar.gz px4-nuttx-05f9ddee3b6976be77d91ab1cf0efdec98729081.tar.bz2 px4-nuttx-05f9ddee3b6976be77d91ab1cf0efdec98729081.zip |
Add support for LEDs on the Ethernet Starter kit
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4223 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/pic32-starterkit/include')
-rw-r--r-- | nuttx/configs/pic32-starterkit/include/board.h | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/nuttx/configs/pic32-starterkit/include/board.h b/nuttx/configs/pic32-starterkit/include/board.h index f3d631e1e..d0597ec02 100644 --- a/nuttx/configs/pic32-starterkit/include/board.h +++ b/nuttx/configs/pic32-starterkit/include/board.h @@ -84,13 +84,32 @@ #define BOARD_WD_PRESCALER 8 /* Watchdog pre-scaler */ /* LED definitions **********************************************************/ -/* The PIC32 starter kit has 3 user LEDs +/* LED Configuration ********************************************************/ +/* The PIC32MX Ethernet Starter kit has 3 user LEDs labeled LED1-3 on the + * board graphics (but referred to as LED4-6 in the schematic): * - * RD0 User LED D4 (high illuminates) - * RD2 User LED D5 (high illuminates) - * RD1 User LED D6 (high illuminates) + * PIN User's Guide Board Stencil Notes + * --- ------------- -------------- ------------------- + * RD0 "User LED D4" "LED1 (RD0") High illuminates + * RD2 "User LED D5" "LED3 (RD2)" High illuminates + * RD1 "User LED D6" "LED2 (RD1)" High illuminates * - * There are 5 LEDs available on the MEB: + * We will use the labels on the board to identify LEDs + * + * ON OFF + * ------------------------- ---- ---- ---- ---- ---- ---- + * LED1 LED2 LED3 LED1 LED2 LED3 + * ------------------------- ---- ---- ---- ---- ---- ---- + * LED_STARTED 0 OFF OFF OFF --- --- --- + * LED_HEAPALLOCATE 1 ON OFF N/C --- --- --- + * LED_IRQSENABLED 2 OFF ON N/C --- --- --- + * LED_STACKCREATED 3 ON ON N/C --- --- --- + * LED_INIRQ 4 N/C N/C ON N/C N/C OFF + * LED_SIGNAL 4 N/C N/C ON N/C N/C OFF + * LED_ASSERTION 4 N/C N/C ON N/C N/C OFF + * LED_PANIC 4 N/C N/C ON N/C N/C OFF + * + * There are 5 additional LEDs available on the MEB: * * RD1 LED1 * RD2 LED2 @@ -104,9 +123,11 @@ #define LED_IRQSENABLED 2 #define LED_STACKCREATED 3 #define LED_INIRQ 4 -#define LED_SIGNAL 5 -#define LED_ASSERTION 6 -#define LED_PANIC 7 +#define LED_SIGNAL 4 +#define LED_ASSERTION 4 +#define LED_PANIC 4 + +#define LED_NVALUES 5 /* Switch definitions *******************************************************/ /* The PIC32 start kit has 3 switches: |