diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-24 16:58:31 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-24 17:03:45 +0100 |
commit | f3cdf279758d22a0d5e5aac5763bf36f6a6fc866 (patch) | |
tree | abf87358291f6873c9624fffa5f8496e58b16231 | |
parent | SMC91111: ERC32 was never supported by driver (diff) | |
download | rtems-f3cdf279758d22a0d5e5aac5763bf36f6a6fc866.tar.bz2 |
bsp/lpc24xx: More CAN pin definitions
-rw-r--r-- | 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 f798f54768..60670ac460 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) + /** @} */ /** |