avr: fix build for Arduino
I'm afraid I broke this while merging the I2S changes...
Этот коммит содержится в:
родитель
8f661d25a9
коммит
69f2cec045
2 изменённых файлов: 2 добавлений и 12 удалений
|
@ -13,6 +13,6 @@ const (
|
||||||
ADC1 = 1
|
ADC1 = 1
|
||||||
ADC2 = 2
|
ADC2 = 2
|
||||||
ADC3 = 3
|
ADC3 = 3
|
||||||
ADC4 = 4
|
ADC4 = 4 // Used by TWI for SDA
|
||||||
ADC5 = 5
|
ADC5 = 5 // Used by TWI for SCL
|
||||||
)
|
)
|
||||||
|
|
|
@ -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.
|
// InitADC initializes the registers needed for ADC.
|
||||||
func InitADC() {
|
func InitADC() {
|
||||||
// set a2d prescaler so we are inside the desired 50-200 KHz range at 16MHz.
|
// set a2d prescaler so we are inside the desired 50-200 KHz range at 16MHz.
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче