avr: fix build for Arduino

I'm afraid I broke this while merging the I2S changes...
This commit is contained in:
Ayke van Laethem
2018-09-25 14:32:02 +02:00
parent 8f661d25a9
commit 69f2cec045
2 changed files with 2 additions and 12 deletions
+2 -2
View File
@@ -13,6 +13,6 @@ const (
ADC1 = 1
ADC2 = 2
ADC3 = 3
ADC4 = 4
ADC5 = 5
ADC4 = 4 // Used by TWI for SDA
ADC5 = 5 // Used by TWI for SCL
)
-10
View File
@@ -122,16 +122,6 @@ func (pwm PWM) Set(value uint16) {
}
}
// ADC on the Arduino
const (
ADC0 = 0
ADC1 = 1
ADC2 = 2
ADC3 = 3
ADC4 = 4 // Used by TWI for SDA
ADC5 = 5 // Used by TWI for SCL
)
// InitADC initializes the registers needed for ADC.
func InitADC() {
// set a2d prescaler so we are inside the desired 50-200 KHz range at 16MHz.