...
 
Commits (2)
...@@ -34,19 +34,6 @@ uint32_t bm_analogRead( uint32_t pin ) ...@@ -34,19 +34,6 @@ uint32_t bm_analogRead( uint32_t pin )
// initADC(); // initADC();
//} //}
#if defined(REMAP_ANALOG_PIN_ID)
REMAP_ANALOG_PIN_ID(pin);
#endif
#if (SAMC21 || SAMD51)
Adc* ADC;
if ( (g_APinDescription[pin].ulPeripheralAttribute & PER_ATTR_ADC_MASK) == PER_ATTR_ADC_ALT ) {
ADC = ADC1;
} else {
ADC = ADC0;
}
#endif
// pinPeripheral now handles disabling the DAC (if active) // pinPeripheral now handles disabling the DAC (if active)
if ( pinPeripheral(pin, PIO_ANALOG_ADC) == RET_STATUS_OK ) if ( pinPeripheral(pin, PIO_ANALOG_ADC) == RET_STATUS_OK )
{ {
......