mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
targets: add ninafw pins and settings to Adafruit Metro M4 Airlift board
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -62,6 +62,15 @@ var (
|
||||
UART2 = &sercomUSART0
|
||||
|
||||
DefaultUART = UART1
|
||||
|
||||
UART_NINA = UART2
|
||||
)
|
||||
|
||||
// NINA-W102 settings
|
||||
const (
|
||||
NINA_BAUDRATE = 115200
|
||||
NINA_RESET_INVERTED = true
|
||||
NINA_SOFT_FLOWCONTROL = true
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -70,9 +79,12 @@ const (
|
||||
NINA_GPIO0 = PB01
|
||||
NINA_RESETN = PB05
|
||||
|
||||
// pins used for the ESP32 connection do not allow hardware
|
||||
// flow control, which is required. have to emulate with software.
|
||||
NINA_TX = PA04
|
||||
NINA_RX = PA07
|
||||
NINA_RTS = PB23
|
||||
NINA_CTS = NINA_ACK
|
||||
NINA_RTS = NINA_GPIO0
|
||||
)
|
||||
|
||||
// I2C pins
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"inherits": ["atsamd51j19a"],
|
||||
"build-tags": ["metro_m4_airlift"],
|
||||
"build-tags": ["metro_m4_airlift", "ninafw"],
|
||||
"serial": "usb",
|
||||
"serial-port": ["239A:8037"],
|
||||
"flash-1200-bps-reset": "true",
|
||||
|
||||
Reference in New Issue
Block a user