![]() |
NEORV32 API Reference
The NEORV32 RISC-V Processor
|
General purpose timer (GPTMR) HW driver source file. More...
#include <neorv32.h>Functions | |
| int | neorv32_gptmr_available (void) |
| void | neorv32_gptmr_setup (int prsc, uint32_t threshold) |
| void | neorv32_gptmr_disable (void) |
| void | neorv32_gptmr_enable (void) |
| void | neorv32_gptmr_irq_ack (void) |
General purpose timer (GPTMR) HW driver source file.
| int neorv32_gptmr_available | ( | void | ) |
Check if general purpose timer unit was synthesized.
| void neorv32_gptmr_disable | ( | void | ) |
Disable general purpose timer.
| void neorv32_gptmr_enable | ( | void | ) |
Enable general purpose timer.
| void neorv32_gptmr_irq_ack | ( | void | ) |
Clear pending timer interrupt.
| void neorv32_gptmr_setup | ( | int | prsc, |
| uint32_t | threshold ) |
Reset, enable and configure general purpose timer.
| [in] | prsc | Clock prescaler select (0..7). See NEORV32_CLOCK_PRSC_enum. |
| [in] | threshold | Threshold value, counter will reset to zero when reaching this. |