|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Classes | |
| struct | board_sleep_info_t |
Functions | |
| bool | board_sleep_init (void) |
| uint32_t | board_sleep (uint32_t ms, bool(*wake_now)(void)) |
| const board_sleep_info_t * | board_sleep_info (void) |
| uint32_t board_sleep | ( | uint32_t | ms, |
| bool(* | wake_now )(void) ) |
Definition at line 68 of file board_sleep.c.
References __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, HAL_PWREx_EnterSTOPMode(), HAL_ResumeTick(), HAL_RTC_WaitForSynchro(), HAL_RTCEx_DeactivateWakeUpTimer(), HAL_RTCEx_SetWakeUpTimer_IT(), HAL_SuspendTick(), hrtc, info, pdMS_TO_TICKS, PWR_D1_DOMAIN, PWR_D3_DOMAIN, PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI, rtc_fired, rtc_stamp(), RTC_WAKEUPCLOCK_RTCCLK_DIV16, sleep_elapsed_ms(), sleep_wut_reload(), SystemClock_Config(), SysTick, SysTick_CTRL_ENABLE_Msk, usb_configured(), vTaskSuspendAll(), xTaskCatchUpTicks(), and xTaskResumeAll().
Referenced by idle_task().
| const board_sleep_info_t * board_sleep_info | ( | void | ) |
Definition at line 64 of file board_sleep.c.
References info.
| bool board_sleep_init | ( | void | ) |
Definition at line 52 of file board_sleep.c.
References CoreDebug, CoreDebug_DHCSR_C_DEBUGEN_Msk, DBGMCU, DBGMCU_CR_DBG_SLEEPD1, DBGMCU_CR_DBG_STOPD1, DBGMCU_CR_DBG_STOPD3, FLASH, FLASH_OPTSR_NRST_STOP_D1, info, measure_lsi(), and SET_BIT.
Referenced by idle_task().