 |
WebRadioApp
0.1
|
Go to the documentation of this file.
44 #ifndef EW_BSP_CLOCK_H
45 #define EW_BSP_CLOCK_H
51 #if EW_CPU_LOAD_MEASURING == 1
52 #define CPU_LOAD_SET_IDLE() EwBspClockCpuLoadSetIdle()
53 #define CPU_LOAD_SET_ACTIVE() EwBspClockCpuLoadSetActive()
55 #define CPU_LOAD_SET_IDLE()
56 #define CPU_LOAD_SET_ACTIVE()
#define RtcTicksPerDay
Definition: ew_bsp_clock.c:62
const unsigned long DaysToMonthInLeapYear[]
Definition: ew_bsp_clock.c:67
static RTC_HandleTypeDef RtcHandle
Definition: ew_bsp_clock.c:74
#define RtcTicksPerHour
Definition: ew_bsp_clock.c:61
void EwBspClockSetTime(unsigned long aTime)
Sets the given time in seconds since 01.01.1970 at real time clock (RTC).
Definition: ew_bsp_clock.c:303
unsigned long EwBspClockGetTicks(void)
The function EwBspClockGetTicks returns the current ticks counter value.
Definition: ew_bsp_clock.c:245
const unsigned long DaysToMonth[]
Definition: ew_bsp_clock.c:64
volatile int XTAL_Min
Definition: main.cpp:48
void HAL_RTC_MspInit(RTC_HandleTypeDef *hrtc)
RTC MSP Initialization This function configures the hardware resources used in this example.
Definition: ew_bsp_clock.c:153
void EwBspClockInit(void)
Initialises the system clock and the real time clock.
Definition: ew_bsp_clock.c:200
#define RTC_ASYNCH_PREDIV
Definition: ew_bsp_clock.c:50
int EwBspClockGetCpuLoad(void)
Returns the current CPU load as percent value.
Definition: ew_bsp_clock.c:395
volatile int XTAL_Sec
Definition: ew_bsp_clock.c:76
uint32_t SystemCoreClock
Definition: system_stm32h7xx.c:119
volatile int XTAL_Day
Definition: ew_bsp_clock.c:76
unsigned long EwBspClockGetTime(void)
Returns the current time in seconds since 01.01.1970.
Definition: ew_bsp_clock.c:257
static RCC_PeriphCLKInitTypeDef PeriphClkInitStruct
Definition: ew_bsp_display.c:94
void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc)
RTC MSP De-Initialization This function frees the hardware resources used in this example:
Definition: ew_bsp_clock.c:188
This file contains general configuration settings for the target system, like memory ranges and displ...
static volatile unsigned long EmWiSystemTicks
Definition: ew_bsp_clock.c:71
void EwBspClockCpuLoadSetActive(void)
Starts the CPU load counting. Call this function whenever CPU processing is needed.
Definition: ew_bsp_clock.c:422
void EwBspClockTickIncrement(void)
The function EwBspClockTickIncrement increments the millisecond counter, which is used by the Runtime...
Definition: ew_bsp_clock.c:232
volatile int XTAL_Month
Definition: ew_bsp_clock.c:76
void EwBspClockCpuLoadSetIdle(void)
Stops the CPU load counting. Call this function whenever CPU processing is currently not needed since...
Definition: ew_bsp_clock.c:445
volatile int XTAL_Hour
Definition: ew_bsp_clock.c:76
#define RTC_SYNCH_PREDIV
Definition: ew_bsp_clock.c:51
volatile int XTAL_Year
Definition: ew_bsp_clock.c:77
#define RtcTicksPerMinute
Definition: ew_bsp_clock.c:60