hsk-libs-dev
270
High Speed Karlsruhe XC878 library collection
|
HSK Timer 0/1 headers. More...
#include "hsk_timer01.isr"
Go to the source code of this file.
Functions | |
void | hsk_timer0_setup (const uword interval, const void(*const callback)(void)) |
Setup timer 0 to tick at a given interval. More... | |
void | hsk_timer0_enable (void) |
Enables the timer 0 and its interrupt. More... | |
void | hsk_timer0_disable (void) |
Disables timer 0 and its interrupt. More... | |
void | hsk_timer1_setup (const uword interval, const void(*const callback)(void)) |
Setup timer 1 to tick at a given interval. More... | |
void | hsk_timer1_enable (void) |
Enables the timer 1 and its interrupt. More... | |
void | hsk_timer1_disable (void) |
Disables timer 1 and its interrupt. More... | |
HSK Timer 0/1 headers.
Provides access to the timers 0 and 1. Each timer can be provided with a callback function that will be called by the timers ISR.
void hsk_timer0_disable | ( | void | ) |
Disables timer 0 and its interrupt.
void hsk_timer0_enable | ( | void | ) |
Enables the timer 0 and its interrupt.
void hsk_timer0_setup | ( | const uword | interval, |
const void(*)(void) | callback | ||
) |
Setup timer 0 to tick at a given interval.
The callback function will be called by the interrupt once the interrupt has been enabled. Note that the callback function is entered with the current page unknown.
This works on the assumption, that PCLK is set to 24MHz.
interval | The ticking interval in µs, don't go beyond 5461. |
callback | A function pointer to a callback function. |
void hsk_timer1_disable | ( | void | ) |
Disables timer 1 and its interrupt.
void hsk_timer1_enable | ( | void | ) |
Enables the timer 1 and its interrupt.
void hsk_timer1_setup | ( | const uword | interval, |
const void(*)(void) | callback | ||
) |
Setup timer 1 to tick at a given interval.
The callback function will be called by the interrupt once the interrupt has been enabled. Note that the callback function is entered with the current page unknown.
This works on the assumption, that PCLK is set to 24MHz.
interval | The ticking interval in µs, don't go beyond 5461. |
callback | A function pointer to a callback function. |