You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #include <stdio.h>
  3. #include "nrf_drv_saadc.h"
  4. #include "sys.h"
  5. /*******************************************************************************
  6. * DEBUG_LIGHT *
  7. *******************************************************************************/
  8. void debug_light_init(int io_index);
  9. /*******************************************************************************
  10. * zbsp_enter_sleep *
  11. *******************************************************************************/
  12. /**
  13. * @brief
  14. *
  15. * @param after_ms
  16. * @param wakeup_io_index
  17. */
  18. void zbsp_enter_sleep(int32_t after_ms, int32_t wakeup_io_index, bool mirror);
  19. /*******************************************************************************
  20. * gpio_io_state_monitor *
  21. *******************************************************************************/
  22. void zbsp_gpio_state_monitor(int dumpstate_period, uint8_t* io_index, int32_t nio);
  23. void zbsp_gpio_state_monitor_without_initio(int dumpstate_period, uint8_t* io_index, int32_t nio);
  24. void board_init();
  25. /*******************************************************************************
  26. * ADC *
  27. *******************************************************************************/
  28. void adc_module_init();
  29. void adc_module_battery_channel_init(nrf_saadc_input_t channelpin);
  30. int16_t adc_module_battery_channel_read_val();
  31. void adc_module_heart_elect_channel_init(nrf_saadc_input_t channelpin);
  32. int16_t adc_module_heart_elect_channel_read_val();