mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-23 13:59:02 +00:00
machine, targets: ninafw support for arduino-nano33 and nano-rp2040 boards
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -93,6 +93,12 @@ const (
|
||||
NINA_RTS Pin = GPIO11
|
||||
)
|
||||
|
||||
// NINA-W102 settings
|
||||
const (
|
||||
NINA_BAUDRATE = 115200
|
||||
NINA_RESET_INVERTED = true
|
||||
)
|
||||
|
||||
// Onboard crystal oscillator frequency, in MHz.
|
||||
const (
|
||||
xoscFreq = 12 // MHz
|
||||
@@ -131,6 +137,9 @@ var (
|
||||
Buffer: NewRingBuffer(),
|
||||
Bus: rp.UART1,
|
||||
}
|
||||
|
||||
// UART_NINA on the Arduino Nano RP2040 connects to the NINA HCI.
|
||||
UART_NINA = UART1
|
||||
)
|
||||
|
||||
var DefaultUART = UART0
|
||||
|
||||
Reference in New Issue
Block a user