nrf: add micro:bit board

This commit is contained in:
Ayke van Laethem
2018-10-05 14:14:32 +02:00
parent e4fa1a8288
commit bc9210b674
10 changed files with 139 additions and 22 deletions
+10
View File
@@ -7,6 +7,16 @@ import (
"unsafe"
)
// Get peripheral and pin number for this GPIO pin.
func (p GPIO) getPortPin() (*nrf.GPIO_Type, uint8) {
return nrf.P0, p.Pin
}
//go:export UARTE0_UART0_IRQHandler
func handleUART0() {
UART0.handleInterrupt()
}
// InitADC initializes the registers needed for ADC.
func InitADC() {
return // no specific setup on nrf52 machine.