diff options
author | Fabio Utzig <utzig@utzig.org> | 2016-05-09 19:23:30 -0300 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2016-05-09 19:23:30 -0300 |
commit | b0dd73442bc0e0cd62a963b431aa9a72c6e86953 (patch) | |
tree | 5f5682c4d06385e6b48f3cc23412d298bacf64b6 /os/hal/boards/WVSHARE_BLE400 | |
parent | de959be01fde202b71a86e080a15a06db7ed044d (diff) | |
parent | 4b186ab80ec47d6551f3f8e65aceff98968958ef (diff) | |
download | ChibiOS-Contrib-b0dd73442bc0e0cd62a963b431aa9a72c6e86953.tar.gz ChibiOS-Contrib-b0dd73442bc0e0cd62a963b431aa9a72c6e86953.tar.bz2 ChibiOS-Contrib-b0dd73442bc0e0cd62a963b431aa9a72c6e86953.zip |
Merge pull request #74 from sdalu/palline
PAL Line
Diffstat (limited to 'os/hal/boards/WVSHARE_BLE400')
-rw-r--r-- | os/hal/boards/WVSHARE_BLE400/board.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/os/hal/boards/WVSHARE_BLE400/board.h b/os/hal/boards/WVSHARE_BLE400/board.h index 617a0b5..fd52467 100644 --- a/os/hal/boards/WVSHARE_BLE400/board.h +++ b/os/hal/boards/WVSHARE_BLE400/board.h @@ -43,6 +43,48 @@ #define I2C_SCL 1 #define I2C_SDA 0 +/* + * IO pins assignments. + */ +#define IOPORT1_KEY1 16U +#define IOPORT1_KEY2 17U +#define IOPORT1_LED0 18U +#define IOPORT1_LED1 19U +#define IOPORT1_LED2 20U +#define IOPORT1_LED3 21U +#define IOPORT1_LED4 22U +#define IOPORT1_UART_TX 9U +#define IOPORT1_UART_RX 11U +#define IOPORT1_UART_RTS 8U +#define IOPORT1_UART_CTS 10U +#define IOPORT1_SPI_SCK 25U +#define IOPORT1_SPI_MOSI 24U +#define IOPORT1_SPI_MISO 23U +#define IOPORT1_SPI_SS 30U +#define IOPORT1_I2C_SCL 1U +#define IOPORT1_I2C_SDA 0U + +/* + * IO lines assignments. + */ +#define LINE_KEY1 PAL_LINE(IOPORT1, IOPORT1_KEY1) +#define LINE_KEY2 PAL_LINE(IOPORT1, IOPORT1_KEY2) +#define LINE_LED0 PAL_LINE(IOPORT1, IOPORT1_LED0) +#define LINE_LED1 PAL_LINE(IOPORT1, IOPORT1_LED1) +#define LINE_LED2 PAL_LINE(IOPORT1, IOPORT1_LED2) +#define LINE_LED3 PAL_LINE(IOPORT1, IOPORT1_LED3) +#define LINE_LED4 PAL_LINE(IOPORT1, IOPORT1_LED4) +#define LINE_UART_TX PAL_LINE(IOPORT1, IOPORT1_UART_TX) +#define LINE_UART_RX PAL_LINE(IOPORT1, IOPORT1_UART_RX) +#define LINE_UART_RTS PAL_LINE(IOPORT1, IOPORT1_UART_RTS) +#define LINE_UART_CTS PAL_LINE(IOPORT1, IOPORT1_UART_CTS) +#define LINE_SPI_SCK PAL_LINE(IOPORT1, IOPORT1_SPI_SCK) +#define LINE_SPI_MOSI PAL_LINE(IOPORT1, IOPORT1_SPI_MOSI) +#define LINE_SPI_MISO PAL_LINE(IOPORT1, IOPORT1_SPI_MISO) +#define LINE_SPI_SS PAL_LINE(IOPORT1, IOPORT1_SPI_SS) +#define LINE_I2C_SCL PAL_LINE(IOPORT1, IOPORT1_I2C_SCL) +#define LINE_I2C_SDA PAL_LINE(IOPORT1, IOPORT1_I2C_SDA) + #if !defined(_FROM_ASM_) #ifdef __cplusplus extern "C" { |