example_config.h 611 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #pragma once
  7. #include "hal/adc_types.h"
  8. #define EXAMPLE_ADC_CHANNEL ADC_CHANNEL_7
  9. #define EXAMPLE_ADC_UNIT ADC_UNIT_1
  10. #define EXAMPLE_ADC_ATTEN ADC_ATTEN_DB_11
  11. #define EXAMPLE_ADC_WIDTH ADC_BITWIDTH_DEFAULT
  12. /* Set high threshold, approx. 1.75V*/
  13. #define EXAMPLE_ADC_TRESHOLD 1000//4095//1000
  14. extern int32_t wakeup_result;
  15. // extern uint32_t ulp_charge_is_success;
  16. // extern uint32_t ulp_charge_is_running;
  17. void sleep_init();