libws libws
WSwan hardware library for the Wonderful toolchain
Loading...
Searching...
No Matches
timer.h File Reference
#include <stdint.h>
#include <wonderful.h>
#include "ports.h"
#include "util.h"
#include "system.h"
#include "display.h"

Go to the source code of this file.

Macros

#define WS_TIMER_HBLANK_HZ_TO_TICKS(hz)
 Convert a frequency in hertz to horizontal blank timer ticks.
#define WS_TIMER_VBLANK_HZ_TO_TICKS(hz)
 Convert a frequency in hertz to vertical blank timer ticks.

Functions

static void ws_timer_hblank_disable (void)
static void ws_timer_vblank_disable (void)
static void ws_timer_hblank_start_once (uint16_t ticks)
 Request a one-shot horizontal blank timer.
static void ws_timer_vblank_start_once (uint16_t ticks)
 Request a one-shot vertical blank timer.
static void ws_timer_hblank_start_repeat (uint16_t ticks)
 Request a repeating horizontal blank timer.
static void ws_timer_vblank_start_repeat (uint16_t ticks)
 Request a repeating vertical blank timer.

Detailed Description

Functionality related to timers.

Definition in file timer.h.