![]() |
NEORV32 - Software Framework Documentation
|
General purpose timer (GPTMR) HW driver header file. More...
Go to the source code of this file.
Functions | |
int | neorv32_gptmr_available (void) |
void | neorv32_gptmr_setup (uint8_t prsc, uint8_t mode, uint32_t threshold) |
void | neorv32_gptmr_disable (void) |
void | neorv32_gptmr_enable (void) |
void | neorv32_gptmr_restart (void) |
General purpose timer (GPTMR) HW driver header file.
int neorv32_gptmr_available | ( | void | ) |
Check if GPTMR unit was synthesized.
void neorv32_gptmr_disable | ( | void | ) |
Disable GP timer.
void neorv32_gptmr_enable | ( | void | ) |
Enable GP timer.
void neorv32_gptmr_restart | ( | void | ) |
Reset GP timer's counter register.
void neorv32_gptmr_setup | ( | uint8_t | prsc, |
uint8_t | mode, | ||
uint32_t | threshold | ||
) |
Enable and configure GP timer.
[in] | prsc | Clock prescaler select (0..7). See NEORV32_CLOCK_PRSC_enum. |
[in] | mode | 0=single-shot mode, 1=continuous mode |
[in] | threshold | Threshold value to trigger interrupt. |