pinetime: update the target file

* Rename pinetime-devkit0 to pinetime because the production device is
    almost the same hardware (the only noticeable difference is a
    different accelerometer, which isn't part of the board file).
  * Remove the UART and set serial to none. The UART uses a lot of
    current by default, so it seems better to disable it.

This is a breaking change, but honestly I think I'm the only one who has
ever actually used TinyGo for the PineTime and I'm fine with this
change :)
This commit is contained in:
Ayke van Laethem
2023-05-07 21:00:37 +02:00
committed by Ron Evans
parent 14fed59827
commit 20fdbc1f9d
3 changed files with 7 additions and 10 deletions
@@ -1,4 +1,4 @@
//go:build pinetime_devkit0
//go:build pinetime
package machine
@@ -17,13 +17,10 @@ const (
LED = LED1
)
var DefaultUART = UART0
// UART pins for PineTime. Note that RX is set to NoPin as RXD is not listed in
// the PineTime schematic 1.0:
// http://files.pine64.org/doc/PineTime/PineTime%20Port%20Assignment%20rev1.0.pdf
// The PineTime doesn't have a UART output.
// Additionally, leaving the UART on results in a pretty big current drain.
const (
UART_TX_PIN Pin = 11 // TP29 (TXD)
UART_TX_PIN Pin = NoPin
UART_RX_PIN Pin = NoPin
)