BEEP-8 SDK 1.0.0
|
Timer functions for the BEEP-8 system. More...
Go to the source code of this file.
Functions | |
int | b8TmrSetup (u32 tmr_ch, u32 cycval) |
Set up a timer with a specified cycle value. | |
int | b8TmrWait (u32 tmr_ch) |
Wait for a timer interrupt. | |
Timer functions for the BEEP-8 system.
This file provides function prototypes for timer setup and wait operations in the BEEP-8 system. It includes functions to configure and wait for timer interrupts.
Functions provided:
b8TmrSetup
: Set up a timer with a specified cycle valueb8TmrWait
: Wait for a timer interruptExample usage (prints 10 characteres every second):
For more detailed information, please refer to the BEEP-8 data sheet.
|
extern |
Set up a timer with a specified cycle value.
This function configures the specified timer channel with the given cycle value. It sets the timer mode to periodic, initializes the counter and period registers, and enables the timer. Additionally, it sets up an IRQ wait handler for the timer.
tmr_ch | The timer channel to set up. |
cycval | The cycle value for the timer. |
|
extern |
Wait for a timer interrupt.
This function waits for an interrupt from the specified timer channel. It blocks until the timer interrupt occurs.
tmr_ch | The timer channel to wait for. |