55 #ifndef FOXBMS__MCU_H_
56 #define FOXBMS__MCU_H_
69 #define MCU_LARGEST_PIN_NUMBER (31u)
75 #define MCU_ADC1_MAX_NR_CHANNELS (32u)
77 #ifndef UNITY_UNIT_TEST
79 #define MCU_RTI_CNT0_FRC0_REG (*((volatile uint32_t *)0xFFFFFC10u))
130 #ifdef UNITY_UNIT_TEST
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_RTI_CNT0_FRC0_REG
bool MCU_IsTimeElapsed(uint32_t startCounter, uint32_t timeout_us)
Checks if a timeout in microseconds has elapsed.