nrf: implement UART interface

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2018-09-27 17:26:23 +02:00
committed by Ayke van Laethem
parent 3540fd9638
commit ef2ac09561
5 changed files with 156 additions and 85 deletions
+1
View File
@@ -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() {