diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-21 16:59:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-21 16:59:53 +0000 |
commit | 6ae531cde4660cff8217f96fa621306efdeea207 (patch) | |
tree | f9260d7a6d1ee5158a52df349a6f632ed611f8f8 /boards/EA_LPCXPRESSO_BB_11U14/board.c | |
parent | 51e92189370b75c0e21d5060f10ad46c1e36b83c (diff) | |
download | ChibiOS-6ae531cde4660cff8217f96fa621306efdeea207.tar.gz ChibiOS-6ae531cde4660cff8217f96fa621306efdeea207.tar.bz2 ChibiOS-6ae531cde4660cff8217f96fa621306efdeea207.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4225 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/EA_LPCXPRESSO_BB_11U14/board.c')
-rw-r--r-- | boards/EA_LPCXPRESSO_BB_11U14/board.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/boards/EA_LPCXPRESSO_BB_11U14/board.c b/boards/EA_LPCXPRESSO_BB_11U14/board.c index fdb33658e..3960cac57 100644 --- a/boards/EA_LPCXPRESSO_BB_11U14/board.c +++ b/boards/EA_LPCXPRESSO_BB_11U14/board.c @@ -28,8 +28,8 @@ */
#if HAL_USE_PAL || defined(__DOXYGEN__)
const PALConfig pal_default_config = {
- {VAL_GPIO0DATA, VAL_GPIO0DIR},
- {VAL_GPIO1DATA, VAL_GPIO1DIR}
+ {VAL_GPIO0DATA, VAL_GPIO0DIR},
+ {VAL_GPIO1DATA, VAL_GPIO1DIR}
};
#endif
@@ -58,4 +58,13 @@ void boardInit(void) { and makes it GPIO1_2. */
LPC_IOCON->PIO0_21 = 0x80; /* Disables pull-up on LED3R output.*/
LPC_IOCON->PIO0_22 = 0x80; /* Disables pull-up on LED3G output.*/
+
+ /* SSP0 mapping.*/
+ LPC_IOCON->PIO1_29 = 0x81; /* SCK0 without resistors. */
+ LPC_IOCON->PIO0_8 = 0x81; /* MISO0 without resistors. */
+ LPC_IOCON->PIO0_9 = 0x81; /* MOSI0 without resistors. */
+
+ /* USART mapping.*/
+ LPC_IOCON->PIO0_18 = 0x81; /* RDX without resistors. */
+ LPC_IOCON->PIO0_19 = 0x81; /* TDX without resistors. */
}
|