[rtems commit] bsp/lpc24xx: Add alternative SSP2 pins
Sebastian Huber
sebh at rtems.org
Tue Mar 12 14:59:59 UTC 2019
Module: rtems
Branch: master
Commit: b2eaa6c69cf34705fa37eda0a385e61d9c876bf3
Changeset: http://git.rtems.org/rtems/commit/?id=b2eaa6c69cf34705fa37eda0a385e61d9c876bf3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Mar 12 15:50:37 2019 +0100
bsp/lpc24xx: Add alternative SSP2 pins
---
bsps/arm/lpc24xx/include/bsp/io.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bsps/arm/lpc24xx/include/bsp/io.h b/bsps/arm/lpc24xx/include/bsp/io.h
index c6fa4f4..b5b724b 100644
--- a/bsps/arm/lpc24xx/include/bsp/io.h
+++ b/bsps/arm/lpc24xx/include/bsp/io.h
@@ -949,15 +949,23 @@ static inline unsigned lpc24xx_pin_get_first_index(
#define LPC24XX_PIN_SSP_2_SCK_P1_0 \
LPC24XX_PIN(1, 0, LPC24XX_PIN_FUNCTION_00, 4)
+#define LPC24XX_PIN_SSP_2_SCK_P5_2 \
+ LPC24XX_PIN(5, 2, LPC24XX_PIN_FUNCTION_00, 2)
#define LPC24XX_PIN_SSP_2_SSEL_P1_8 \
LPC24XX_PIN(1, 8, LPC24XX_PIN_FUNCTION_00, 4)
+#define LPC24XX_PIN_SSP_2_SSEL_P5_3 \
+ LPC24XX_PIN(5, 3, LPC24XX_PIN_FUNCTION_00, 2)
#define LPC24XX_PIN_SSP_2_MISO_P1_4 \
LPC24XX_PIN(1, 4, LPC24XX_PIN_FUNCTION_00, 4)
+#define LPC24XX_PIN_SSP_2_MISO_P5_1 \
+ LPC24XX_PIN(5, 1, LPC24XX_PIN_FUNCTION_00, 2)
#define LPC24XX_PIN_SSP_2_MOSI_P1_1 \
LPC24XX_PIN(1, 1, LPC24XX_PIN_FUNCTION_00, 4)
+#define LPC24XX_PIN_SSP_2_MOSI_P5_0 \
+ LPC24XX_PIN(5, 0, LPC24XX_PIN_FUNCTION_00, 2)
/** @} */
More information about the vc
mailing list