diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-10 23:05:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-10 23:05:59 +0000 |
commit | ef5a403a600202cc899811ad933c70cc2df08d4b (patch) | |
tree | ac20e4a8767b2a674cf03f80b07f82bd8453f9fc /nuttx/configs/pic32-starterkit/include | |
parent | f5ceed6eb99ef75a3943ff291ae75da5580eaef8 (diff) | |
download | px4-nuttx-ef5a403a600202cc899811ad933c70cc2df08d4b.tar.gz px4-nuttx-ef5a403a600202cc899811ad933c70cc2df08d4b.tar.bz2 px4-nuttx-ef5a403a600202cc899811ad933c70cc2df08d4b.zip |
Misc PIC32 clean-up
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4038 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/pic32-starterkit/include')
-rw-r--r-- | nuttx/configs/pic32-starterkit/include/board.h | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/nuttx/configs/pic32-starterkit/include/board.h b/nuttx/configs/pic32-starterkit/include/board.h index d5f71f97a..f3d631e1e 100644 --- a/nuttx/configs/pic32-starterkit/include/board.h +++ b/nuttx/configs/pic32-starterkit/include/board.h @@ -84,24 +84,37 @@ #define BOARD_WD_PRESCALER 8 /* Watchdog pre-scaler */ /* LED definitions **********************************************************/ -/* The Sure PIC32MX board has five LEDs. One (D4, lablel "Power") is not - * controllable by software. Four are controllable by software: +/* The PIC32 starter kit has 3 user LEDs * - * D7 "USB" Yellow RD7 Low illuminates - * D8 "SD" Yellow RD6 Low illuminates - * D9 "Flash" Yellow RF0 Low illuminates - * D10 "Error" Red RF1 Low illuminates + * RD0 User LED D4 (high illuminates) + * RD2 User LED D5 (high illuminates) + * RD1 User LED D6 (high illuminates) + * + * There are 5 LEDs available on the MEB: + * + * RD1 LED1 + * RD2 LED2 + * RD3 LED3 + * RC1 LED4 + * RC2 LED5 + */ + +#define LED_STARTED 0 +#define LED_HEAPALLOCATE 1 +#define LED_IRQSENABLED 2 +#define LED_STACKCREATED 3 +#define LED_INIRQ 4 +#define LED_SIGNAL 5 +#define LED_ASSERTION 6 +#define LED_PANIC 7 + +/* Switch definitions *******************************************************/ +/* The PIC32 start kit has 3 switches: + * + * RD7 Switch SW2 (low when closed) + * RD6 Switch SW1 (low when closed) + * RD13 Switch SW3 (low when closed) */ - /* ON OFF */ - /* USB SD FLASH ERROR USB SD FLASH ERROR */ -#define LED_STARTED 0 /* OFF OFF OFF OFF --- --- --- --- */ -#define LED_HEAPALLOCATE 1 /* ON OFF N/C N/C --- --- --- --- */ -#define LED_IRQSENABLED 2 /* OFF ON N/C N/C --- --- --- --- */ -#define LED_STACKCREATED 3 /* ON ON N/C N/C --- --- --- --- */ -#define LED_INIRQ 4 /* N/C N/C ON N/C N/C N/C OFF N/C */ -#define LED_SIGNAL 4 /* N/C N/C ON N/C N/C N/C OFF N/C */ -#define LED_ASSERTION 4 /* N/C N/C ON N/C N/C N/C OFF N/C */ -#define LED_PANIC 5 /* N/C N/C N/C ON N/C N/C N/C OFF */ /**************************************************************************** * Public Types |