hsk-libs-dev  270
High Speed Karlsruhe XC878 library collection
Functions
hsk_timer01.h File Reference

HSK Timer 0/1 headers. More...

#include "hsk_timer01.isr"
Include dependency graph for hsk_timer01.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.

Author
kami

Function Documentation

§ hsk_timer0_disable()

void hsk_timer0_disable ( void  )

Disables timer 0 and its interrupt.

§ hsk_timer0_enable()

void hsk_timer0_enable ( void  )

Enables the timer 0 and its interrupt.

§ hsk_timer0_setup()

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.

Parameters
intervalThe ticking interval in µs, don't go beyond 5461.
callbackA function pointer to a callback function.
Here is the call graph for this function:

§ hsk_timer1_disable()

void hsk_timer1_disable ( void  )

Disables timer 1 and its interrupt.

§ hsk_timer1_enable()

void hsk_timer1_enable ( void  )

Enables the timer 1 and its interrupt.

§ hsk_timer1_setup()

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.

Parameters
intervalThe ticking interval in µs, don't go beyond 5461.
callbackA function pointer to a callback function.
Here is the call graph for this function: