aboutsummaryrefslogtreecommitdiffstats
path: root/boards/EA_LPCXPRESSO_LPC1769/board.h
diff options
context:
space:
mode:
authortheshed <theshed@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-01 21:31:11 +0000
committertheshed <theshed@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-01 21:31:11 +0000
commit4353bdce7e64a7b2de9d307192d26ec4ed5be88e (patch)
treeaa8965730b2b295543488a74c1834f44726239ed /boards/EA_LPCXPRESSO_LPC1769/board.h
parent3356d32039faa782abf2eb303fdf076860402ac3 (diff)
downloadChibiOS-4353bdce7e64a7b2de9d307192d26ec4ed5be88e.tar.gz
ChibiOS-4353bdce7e64a7b2de9d307192d26ec4ed5be88e.tar.bz2
ChibiOS-4353bdce7e64a7b2de9d307192d26ec4ed5be88e.zip
Add CAN driver for LPC17xx.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6743 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/EA_LPCXPRESSO_LPC1769/board.h')
-rw-r--r--boards/EA_LPCXPRESSO_LPC1769/board.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/boards/EA_LPCXPRESSO_LPC1769/board.h b/boards/EA_LPCXPRESSO_LPC1769/board.h
index 95d0b9155..1474f4dfa 100644
--- a/boards/EA_LPCXPRESSO_LPC1769/board.h
+++ b/boards/EA_LPCXPRESSO_LPC1769/board.h
@@ -35,6 +35,10 @@
#define BOARD_PHY_RMII
//#define BOARD_PHY_ADDRESS
+
+#define LPC17xx_HAS_CAN1 TRUE
+#define LPC17xx_HAS_CAN2 TRUE
+
/*
* Board frequencies.
*/
@@ -44,7 +48,8 @@
/*
* GPIO 0 initial setup.
*/
-#define VAL_GPIO0DIR PAL_PORT_BIT(GPIO0_LED2_RED)
+#define VAL_GPIO0DIR PAL_PORT_BIT(GPIO0_LED2_RED) | \
+ PAL_PORT_BIT(GPIO0_LED3_EXT)
#define VAL_GPIO0DATA 0x00000000
/*
@@ -75,6 +80,7 @@
* Pin definitions.
*/
#define GPIO0_LED2_RED 22
+#define GPIO0_LED3_EXT 28 /* Connect LED to board. */
#define GPIO2_PIN12_TO_GND 12