From e29379ce3a57e672aaa4afe73f10a0ff2dc36430 Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Sun, 16 Feb 2020 19:04:22 +0100 Subject: [PATCH] Fix the formatting --- src/machine/board_particle_argon.go | 2 +- src/machine/board_particle_boron.go | 18 +++++++++--------- src/machine/board_particle_xenon.go | 2 +- src/machine/machine_nrf.go | 1 - 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/machine/board_particle_argon.go b/src/machine/board_particle_argon.go index bdefee68e..ac36015a7 100644 --- a/src/machine/board_particle_argon.go +++ b/src/machine/board_particle_argon.go @@ -64,4 +64,4 @@ const ( EXTERNAL_UFL_PIN Pin = 25 NFC1_PIN Pin = 9 NFC2_PIN Pin = 10 -) \ No newline at end of file +) diff --git a/src/machine/board_particle_boron.go b/src/machine/board_particle_boron.go index 099f6a42b..85dfdc1bc 100644 --- a/src/machine/board_particle_boron.go +++ b/src/machine/board_particle_boron.go @@ -51,14 +51,14 @@ const ( // u-blox coprocessor const ( - UBLOX_TXD_PIN = 37 - UBLOX_RXD_PIN = 36 - UBLOX_CTS_PIN = 38 - UBLOX_RTS_PIN = 39 - UBLOX_RESET_PIN = 16 - UBLOX_POWER_ON_PIN = 24 - UBLOX_BUFF_EN_PIN = 25 - UBLOX_VINT_PIN = 2 + UBLOX_TXD_PIN = 37 + UBLOX_RXD_PIN = 36 + UBLOX_CTS_PIN = 38 + UBLOX_RTS_PIN = 39 + UBLOX_RESET_PIN = 16 + UBLOX_POWER_ON_PIN = 24 + UBLOX_BUFF_EN_PIN = 25 + UBLOX_VINT_PIN = 2 ) // Other periferals @@ -70,4 +70,4 @@ const ( EXTERNAL_UFL_PIN = 25 NFC1_PIN = 9 NFC2_PIN = 10 -) \ No newline at end of file +) diff --git a/src/machine/board_particle_xenon.go b/src/machine/board_particle_xenon.go index 89c34a375..637c44697 100644 --- a/src/machine/board_particle_xenon.go +++ b/src/machine/board_particle_xenon.go @@ -53,4 +53,4 @@ const ( EXTERNAL_UFL_PIN = 25 NFC1_PIN = 9 NFC2_PIN = 10 -) \ No newline at end of file +) diff --git a/src/machine/machine_nrf.go b/src/machine/machine_nrf.go index 6c927d8f8..663bf0240 100644 --- a/src/machine/machine_nrf.go +++ b/src/machine/machine_nrf.go @@ -86,7 +86,6 @@ func (uart UART) Configure(config UARTConfig) { } else { uart.setPins(config.TX, config.RX) } - nrf.UART0.ENABLE.Set(nrf.UART_ENABLE_ENABLE_Enabled) nrf.UART0.TASKS_STARTTX.Set(1)