|
|
|
@ -117,7 +117,7 @@ void HAL_idletask(void) {
|
|
|
|
|
|
|
|
|
|
void HAL_clear_reset_source(void) { }
|
|
|
|
|
|
|
|
|
|
uint8_t HAL_get_reset_source (void) {
|
|
|
|
|
uint8_t HAL_get_reset_source(void) {
|
|
|
|
|
return rtc_get_reset_reason(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -154,7 +154,7 @@ void HAL_adc_init() {
|
|
|
|
|
esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, V_REF, &characteristics);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HAL_adc_start_conversion (uint8_t adc_pin) {
|
|
|
|
|
void HAL_adc_start_conversion(uint8_t adc_pin) {
|
|
|
|
|
uint32_t mv;
|
|
|
|
|
esp_adc_cal_get_voltage((adc_channel_t)get_channel(adc_pin), &characteristics, &mv);
|
|
|
|
|
|
|
|
|
|