mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
Fix the formatting
This commit is contained in:
committed by
Daniel Esteban
parent
f0fd24e7ba
commit
e29379ce3a
@@ -51,14 +51,14 @@ const (
|
|||||||
|
|
||||||
// u-blox coprocessor
|
// u-blox coprocessor
|
||||||
const (
|
const (
|
||||||
UBLOX_TXD_PIN = 37
|
UBLOX_TXD_PIN = 37
|
||||||
UBLOX_RXD_PIN = 36
|
UBLOX_RXD_PIN = 36
|
||||||
UBLOX_CTS_PIN = 38
|
UBLOX_CTS_PIN = 38
|
||||||
UBLOX_RTS_PIN = 39
|
UBLOX_RTS_PIN = 39
|
||||||
UBLOX_RESET_PIN = 16
|
UBLOX_RESET_PIN = 16
|
||||||
UBLOX_POWER_ON_PIN = 24
|
UBLOX_POWER_ON_PIN = 24
|
||||||
UBLOX_BUFF_EN_PIN = 25
|
UBLOX_BUFF_EN_PIN = 25
|
||||||
UBLOX_VINT_PIN = 2
|
UBLOX_VINT_PIN = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
// Other periferals
|
// Other periferals
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ func (uart UART) Configure(config UARTConfig) {
|
|||||||
uart.setPins(config.TX, config.RX)
|
uart.setPins(config.TX, config.RX)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
nrf.UART0.ENABLE.Set(nrf.UART_ENABLE_ENABLE_Enabled)
|
nrf.UART0.ENABLE.Set(nrf.UART_ENABLE_ENABLE_Enabled)
|
||||||
nrf.UART0.TASKS_STARTTX.Set(1)
|
nrf.UART0.TASKS_STARTTX.Set(1)
|
||||||
nrf.UART0.TASKS_STARTRX.Set(1)
|
nrf.UART0.TASKS_STARTRX.Set(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user