nrf: add nrf52840-mdk board

With the help of Chillance on GitHub.
This commit is contained in:
Ayke van Laethem
2018-10-06 13:53:58 +02:00
parent f9edf7cc5c
commit daf92226d8
8 changed files with 121 additions and 11 deletions
+25
View File
@@ -0,0 +1,25 @@
// +build nrf52840_mdk
package machine
const HasLowFrequencyCrystal = true
// LEDs on the nrf52840-mdk (nRF52840 dev board)
const (
LED = LED_GREEN
LED_GREEN = 22
LED_RED = 23
LED_BLUE = 24
)
// UART pins
const (
UART_TX_PIN = 20
UART_RX_PIN = 19
)
// I2C pins (unused)
const (
SDA_PIN = 0xff
SCL_PIN = 0xff
)