machine/nrf52840: add support for ADC and PWM interfaces

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2018-12-02 19:00:33 +01:00
parent 06ab3a836f
commit 7857c7235b
2 changed files with 157 additions and 0 deletions
+10
View File
@@ -28,6 +28,16 @@ const (
UART_RX_PIN = 8
)
// ADC pins
const (
ADC0 = 3
ADC1 = 4
ADC2 = 28
ADC3 = 29
ADC4 = 30
ADC5 = 31
)
// I2C pins
const (
SDA_PIN = 26 // P0.26