PSG14a emulator V1.00
PSG14a emulator for stating GTD350 engine
|
Contains clocks and timer functions prototypes. More...
Go to the source code of this file.
Macros | |
#define | SYSTICK_FREQ 1000 |
#define | CORE_FREQ 8000000 |
Typedefs | |
typedef void(* | Systick_Callback_t) (void) |
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 Systick_Callback) |
Inits systick timer interrupt for 1ms period. | |
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. | |
void | Reset_Main_Counter (void) |
uint32_t | ReadTimer (uint32_t *const Timer) |
Contains clocks and timer functions prototypes.
mikl7.nosp@m.4@ya.nosp@m.hoo.c.nosp@m.om
#define CORE_FREQ 8000000 |
Referenced by Systick_Init().
#define SYSTICK_FREQ 1000 |
Referenced by Systick_Init().
typedef void(* Systick_Callback_t) (void) |
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_Init | ( | const Systick_Callback_t | Systick_Callback | ) |
Inits systick timer interrupt for 1ms period.
References CORE_FREQ, and SYSTICK_FREQ.
Referenced by main().