PSG14a emulator V1.00
PSG14a emulator for stating GTD350 engine
|
Contains functions for clock system Project uses HSI without PLL. Clock is ~8Mhz for core and buses. More...
Functions | |
void | Clock_HSI_Init (void) |
inits HSI as a main clock. PLL will not be used. Core/systick frequency is ~8Mhz | |
void | Systick_Init (const Systick_Callback_t CallBack) |
Inits systick timer interrupt for 1ms period. | |
void | SysTick_Handler (void) |
void | ResetTimer (uint32_t *const Timer) |
Resets software timer. | |
uint8_t | IsExpiredTimer (uint32_t *const Timer, const uint32_t Timeout) |
Checks if timer timeout has expired. | |
uint32_t | ReadTimer (uint32_t *const Timer) |
void | Reset_Main_Counter (void) |
Contains functions for clock system Project uses HSI without PLL. Clock is ~8Mhz for core and buses.
mikl7.nosp@m.4@ya.nosp@m.hoo.c.nosp@m.om
void Clock_HSI_Init | ( | void | ) |
inits HSI as a main clock. PLL will not be used. Core/systick frequency is ~8Mhz
Referenced by main().
uint8_t IsExpiredTimer | ( | uint32_t *const | Timer, |
const uint32_t | Timeout ) |
Checks if timer timeout has expired.
Timer | Timer variable |
Timeout | Timeout value in ms |
Referenced by Blink_Led(), Buttons_Get_State(), main(), and mainCyclePreRun().
uint32_t ReadTimer | ( | uint32_t *const | Timer | ) |
Referenced by Control_Outs().
void Reset_Main_Counter | ( | void | ) |
void ResetTimer | ( | uint32_t *const | Timer | ) |
Resets software timer.
Timer | timer variable |
Referenced by Blink_Led(), Buttons_Get_State(), Control_Outs(), main(), and mainCyclePreRun().
void SysTick_Handler | ( | void | ) |
void Systick_Init | ( | const Systick_Callback_t | CallBack | ) |
Inits systick timer interrupt for 1ms period.
References CORE_FREQ, and SYSTICK_FREQ.
Referenced by main().