mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
nrf: implement UART interface
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
committed by
Ayke van Laethem
parent
3540fd9638
commit
ef2ac09561
@@ -31,6 +31,7 @@ func initUART() {
|
||||
nrf.UART0.BAUDRATE = nrf.UART_BAUDRATE_BAUDRATE_Baud115200
|
||||
nrf.UART0.TASKS_STARTTX = 1
|
||||
nrf.UART0.PSELTXD = 6 // pin 6 for NRF52840-DK
|
||||
nrf.UART0.PSELRXD = 8 // pin 8 for NRF52840-DK
|
||||
}
|
||||
|
||||
func initLFCLK() {
|
||||
|
||||
Reference in New Issue
Block a user