bsp_pwr.c 246 B

123456789101112131415
  1. #include "bsp_pwr.h"
  2. void PWR_EnterSleep(void)
  3. {
  4. //Function for running power management. Should run in the main loop.
  5. nrf_pwr_mgmt_run();
  6. }
  7. void PWR_Init(void)
  8. {
  9. ret_code_t ret_code = nrf_pwr_mgmt_init();
  10. APP_ERROR_CHECK(ret_code);
  11. }