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

Go to the source code of this file.

Macros

#define WS_HZ_TO_DIVIDER(hz, clock_hz)
 Convert a frequency in Hertz to a clock divider value.

Functions

void ws_portcpy (uint16_t port, const void __far *src, uint16_t count)
 Copy memory data to I/O ports, in order.
void ws_delay_us (uint16_t us)
 Delay for a set number of microseconds.
void ws_delay_ms (uint16_t ms)
 Delay for a set number of milliseconds.

Detailed Description

Various utility functions for working with the WonderSwan hardware.

Definition in file util.h.