58 #include "HL_system.h"
66 #define MCU_RTI_CNT0_CPUC0_REG (0x00000001U)
69 #define MCU_US_WAIT_TIMEOUT (10000U)
100 const uint32_t rti_nrOfCounts_us = (uint32_t)(((
float)
mcu_frcClock_Hz) / 1e6f);
105 uint32_t timeOut = 0;
113 if ((checkValue - startValue) >= (delay_us * rti_nrOfCounts_us)) {
126 const uint32_t rti_nrOfCounts_us = (uint32_t)(((
float)
mcu_frcClock_Hz) / 1e6f);
127 return count / rti_nrOfCounts_us;
uint32_t MCU_GetFreeRunningCount(void)
Get the current value of the Free Running Counter 0 (FRC0)
uint32_t MCU_ConvertFrcDifferenceToTimespan_us(uint32_t count)
Convert the counter value FRC0 to a time in microseconds.
void MCU_Delay_us(uint32_t delay_us)
Wait blocking a certain time in microseconds.
#define MCU_US_WAIT_TIMEOUT
#define MCU_RTI_CNT0_CPUC0_REG
static const uint32_t mcu_frcClock_Hz
frequency of the FRC0 counter
Headers for the driver for the MCU module.
#define MCU_RTI_CNT0_FRC0_REG