🐛 HAL refactor followup (#23354)

This commit is contained in:
Robby Candra 2021-12-26 10:36:09 +07:00 committed by GitHub
parent 57315f02cb
commit a47f559db1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -186,7 +186,7 @@ public:
static void adc_init();
// Called by Temperature::init for each sensor at startup
static void adc_enable(const uint8_t ch);
static inline void adc_enable(const uint8_t ch) {}
// Begin ADC sampling on the given channel
static void adc_start(const pin_t pin);

View file

@ -104,7 +104,7 @@ static SPISettings spiConfig;
uint8_t spiRec() {
hal.isr_off(); // No interrupts during byte receive
const uint8_t data = HAL_SPI_STM32_SpiTransfer_Mode_3(0xFF);
hal.isr_off(); // Enable interrupts
hal.isr_on(); // Enable interrupts
return data;
}

View file

@ -280,7 +280,7 @@ public:
static void adc_init();
// Called by Temperature::init for each sensor at startup
static void adc_enable(const pin_t pin);
static inline void adc_enable(const pin_t pin) { pinMode(pin, INPUT_ANALOG); }
// Begin ADC sampling on the given channel
static void adc_start(const pin_t pin);

View file

@ -163,7 +163,7 @@ public:
static void adc_init();
// Called by Temperature::init for each sensor at startup
static void adc_enable(const pin_t ch);
static inline void adc_enable(const pin_t ch) {}
// Begin ADC sampling on the given channel
static void adc_start(const pin_t ch);

View file

@ -192,7 +192,7 @@ public:
static void adc_init();
// Called by Temperature::init for each sensor at startup
static void adc_enable(const pin_t pin);
static inline void adc_enable(const pin_t pin) {}
// Begin ADC sampling on the given channel
static void adc_start(const pin_t pin);