[rtems commit] bsp/lpc24xx: More CAN pin definitions

Sebastian Huber sebh at rtems.org
Sat Mar 24 15:54:04 UTC 2012


Module:    rtems
Branch:    master
Commit:    f3cdf279758d22a0d5e5aac5763bf36f6a6fc866
Changeset: http://git.rtems.org/rtems/commit/?id=f3cdf279758d22a0d5e5aac5763bf36f6a6fc866

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Mar 24 16:58:31 2012 +0100

bsp/lpc24xx: More CAN pin definitions

---

 c/src/lib/libbsp/arm/lpc24xx/include/io.h |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libbsp/arm/lpc24xx/include/io.h b/c/src/lib/libbsp/arm/lpc24xx/include/io.h
index f798f54..60670ac 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/include/io.h
+++ b/c/src/lib/libbsp/arm/lpc24xx/include/io.h
@@ -322,12 +322,18 @@ rtems_status_code lpc24xx_pin_config(
  * @{
  */
 
-#define LPC24XX_PIN_CAN_0_RD \
+#define LPC24XX_PIN_CAN_0_RD_P0_0 \
   LPC24XX_PIN(0, 0, LPC24XX_PIN_FUNCTION_01, 1)
 
-#define LPC24XX_PIN_CAN_0_TD \
+#define LPC24XX_PIN_CAN_0_RD_P0_21 \
+  LPC24XX_PIN(0, 21, LPC24XX_PIN_FUNCTION_11, 4)
+
+#define LPC24XX_PIN_CAN_0_TD_P0_1 \
   LPC24XX_PIN(0, 1, LPC24XX_PIN_FUNCTION_01, 1)
 
+#define LPC24XX_PIN_CAN_0_TD_P0_22 \
+  LPC24XX_PIN(0, 22, LPC24XX_PIN_FUNCTION_11, 4)
+
 /** @} */
 
 /**
@@ -336,12 +342,18 @@ rtems_status_code lpc24xx_pin_config(
  * @{
  */
 
-#define LPC24XX_PIN_CAN_1_RD \
+#define LPC24XX_PIN_CAN_1_RD_P0_4 \
   LPC24XX_PIN(0, 4, LPC24XX_PIN_FUNCTION_10, 2)
 
-#define LPC24XX_PIN_CAN_1_TD \
+#define LPC24XX_PIN_CAN_1_RD_P2_7 \
+  LPC24XX_PIN(2, 7, LPC24XX_PIN_FUNCTION_01, 1)
+
+#define LPC24XX_PIN_CAN_1_TD_P0_5 \
   LPC24XX_PIN(0, 5, LPC24XX_PIN_FUNCTION_10, 2)
 
+#define LPC24XX_PIN_CAN_1_TD_P2_8 \
+  LPC24XX_PIN(2, 8, LPC24XX_PIN_FUNCTION_01, 1)
+
 /** @} */
 
 /**




More information about the vc mailing list