nrf5/boards: Updating boards to comply to new style of configuring pins for uart and spi.

This commit is contained in:
Glenn Ruben Bakke 2017-01-26 22:29:58 +01:00
parent 6387490e4a
commit 9009ad67b0
6 changed files with 31 additions and 61 deletions

View File

@ -59,10 +59,8 @@
#define MICROPY_HW_LED4 (24) // LED4
// UART config
#define MICROPY_HW_UART1_RX (25)
#define MICROPY_HW_UART1_TX (24)
#define MICROPY_HW_UART1_RX_PORT (0)
#define MICROPY_HW_UART1_TX_PORT (0)
#define MICROPY_HW_UART1_RX (pin_A25)
#define MICROPY_HW_UART1_TX (pin_A24)
#define MICROPY_HW_UART1_HWFC (0)
#define HELP_TEXT_BOARD_LED "1,2,3,4"

View File

@ -54,10 +54,8 @@
#define MICROPY_HW_LED_BLUE (23) // BLUE
// UART config
#define MICROPY_HW_UART1_RX (11)
#define MICROPY_HW_UART1_TX (9)
#define MICROPY_HW_UART1_RX_PORT (0)
#define MICROPY_HW_UART1_TX_PORT (0)
#define MICROPY_HW_UART1_RX (pin_A11)
#define MICROPY_HW_UART1_TX (pin_A9)
#define MICROPY_HW_UART1_HWFC (0)
#define HELP_TEXT_BOARD_LED "1,2,3"

View File

@ -53,14 +53,10 @@
#define MICROPY_HW_LED2 (19) // LED2
// UART config
#define MICROPY_HW_UART1_RX (11)
#define MICROPY_HW_UART1_TX (9)
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (8)
#define MICROPY_HW_UART1_RX_PORT (0)
#define MICROPY_HW_UART1_TX_PORT (0)
#define MICROPY_HW_UART1_RTS_PORT (0)
#define MICROPY_HW_UART1_CTS_PORT (0)
#define MICROPY_HW_UART1_RX (pin_A11)
#define MICROPY_HW_UART1_TX (pin_A9)
#define MICROPY_HW_UART1_CTS (pin_A10)
#define MICROPY_HW_UART1_RTS (pin_A8)
#define MICROPY_HW_UART1_HWFC (1)
#define HELP_TEXT_BOARD_LED "1,2"

View File

@ -33,7 +33,8 @@
#define MICROPY_PY_DISPLAY (1)
#define MICROPY_PY_DISPLAY_EPAPER_SLD00200P (0)
#define MICROPY_PY_DISPLAY_LCD_ILI9341 (0)
#define MICROPY_PY_DISPLAY_OLED_SSD1305 (1)
#define MICROPY_PY_DISPLAY_LCD_SSD1289 (1)
#define MICROPY_PY_DISPLAY_OLED_SSD1305 (0)
#define MICROPY_PY_DISPLAY_OLED_SSD1306 (0)
#define MICROPY_PY_MACHINE_HW_SPI (1)
@ -67,23 +68,16 @@
#define MICROPY_HW_LED4 (24) // LED4
// UART config
#define MICROPY_HW_UART1_RX (11)
#define MICROPY_HW_UART1_TX (9)
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (8)
#define MICROPY_HW_UART1_RX_PORT (0)
#define MICROPY_HW_UART1_TX_PORT (0)
#define MICROPY_HW_UART1_CTS_PORT (0)
#define MICROPY_HW_UART1_RTS_PORT (0)
#define MICROPY_HW_UART1_RX (pin_A11)
#define MICROPY_HW_UART1_TX (pin_A9)
#define MICROPY_HW_UART1_CTS (pin_A10)
#define MICROPY_HW_UART1_RTS (pin_A8)
#define MICROPY_HW_UART1_HWFC (1)
// SPI0 config
#define MICROPY_HW_SPI0_NAME "SPI0"
#define MICROPY_HW_SPI0_SCK (29)
#define MICROPY_HW_SPI0_MOSI (25)
#define MICROPY_HW_SPI0_MISO (28)
#define MICROPY_HW_SPI0_SCK_PORT (0)
#define MICROPY_HW_SPI0_MISO_PORT (0)
#define MICROPY_HW_SPI0_MOSI_PORT (0)
#define MICROPY_HW_SPI0_SCK (pin_A29)
#define MICROPY_HW_SPI0_MOSI (pin_A25)
#define MICROPY_HW_SPI0_MISO (pin_A28)
#define HELP_TEXT_BOARD_LED "1,2,3,4"

View File

@ -53,23 +53,16 @@
#define MICROPY_HW_LED_BLUE (23) // BLUE
// UART config
#define MICROPY_HW_UART1_RX (11)
#define MICROPY_HW_UART1_TX (9)
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (8)
#define MICROPY_HW_UART1_RX_PORT (0)
#define MICROPY_HW_UART1_TX_PORT (0)
#define MICROPY_HW_UART1_CTS_PORT (0)
#define MICROPY_HW_UART1_RTS_PORT (0)
#define MICROPY_HW_UART1_RX (pin_A11)
#define MICROPY_HW_UART1_TX (pin_A9)
#define MICROPY_HW_UART1_CTS (pin_A10)
#define MICROPY_HW_UART1_RTS (pin_A8)
#define MICROPY_HW_UART1_HWFC (0)
// SPI0 config
#define MICROPY_HW_SPI0_NAME "SPI0"
#define MICROPY_HW_SPI0_SCK (15) // A15
#define MICROPY_HW_SPI0_MOSI (16) // A16
#define MICROPY_HW_SPI0_MISO (17) // A17
#define MICROPY_HW_SPI0_SCK_PORT (0)
#define MICROPY_HW_SPI0_MISO_PORT (0)
#define MICROPY_HW_SPI0_MOSI_PORT (0)
#define MICROPY_HW_SPI0_SCK (pin_A15)
#define MICROPY_HW_SPI0_MOSI (pin_A16)
#define MICROPY_HW_SPI0_MISO (pin_A17)
#define HELP_TEXT_BOARD_LED "1,2,3"

View File

@ -64,26 +64,17 @@
#define MICROPY_HW_LED4 (20) // LED4
// UART config
#define MICROPY_HW_UART1_RX (8)
#define MICROPY_HW_UART1_TX (6)
#define MICROPY_HW_UART1_CTS (7)
#define MICROPY_HW_UART1_RTS (5)
#define MICROPY_HW_UART1_RX_PORT (0)
#define MICROPY_HW_UART1_TX_PORT (0)
#define MICROPY_HW_UART1_CTS_PORT (0)
#define MICROPY_HW_UART1_RTS_PORT (0)
#define MICROPY_HW_UART1_RX (pin_A8)
#define MICROPY_HW_UART1_TX (pin_A6)
#define MICROPY_HW_UART1_CTS (pin_A7)
#define MICROPY_HW_UART1_RTS (pin_A5)
#define MICROPY_HW_UART1_HWFC (1)
// SPI0 config
#define MICROPY_HW_SPI0_NAME "SPI0"
#define MICROPY_HW_SPI0_SCK (25) // A25 (Arduino D13)
#define MICROPY_HW_SPI0_MOSI (23) // A23 (Arduino D11)
#define MICROPY_HW_SPI0_MISO (24) // A24 (Arduino D12)
#define MICROPY_HW_SPI0_SCK_PORT (0)
#define MICROPY_HW_SPI0_MOSI_PORT (0)
#define MICROPY_HW_SPI0_MISO_PORT (0)
#define MICROPY_HW_SPI0_SCK (pin_A25) // (Arduino D13)
#define MICROPY_HW_SPI0_MOSI (pin_A23) // (Arduino D11)
#define MICROPY_HW_SPI0_MISO (pin_A24) // (Arduino D12)
#define MICROPY_HW_PWM0_NAME "PWM0"
#define MICROPY_HW_PWM1_NAME "PWM1"