wavelength 1.0.0
Loading...
Searching...
No Matches
periodictimer.h File Reference

Go to the source code of this file.

Classes

class  PeriodicTimer
 A hardware timer that wakes one thread at a fixed interval. More...

Functions

int CreateThreadWithPriority (void(*entry)(), int priority)
 Create a dormant C thread with a 2 KiB stack.
void StartTickThread (void(*entry)())
 Start a thread the tick timer wakes every 6 milliseconds.
void StopTickThread ()
 Stop and release the tick timer, and delete the lock.

Function Documentation

◆ CreateThreadWithPriority()

int CreateThreadWithPriority ( void(* entry )(),
int priority )

Create a dormant C thread with a 2 KiB stack.

Parameters
entryEntry point.
priorityStarting priority.
Returns
The thread identifier, or a negative error code.
Ghidra address:
NTSC-U/C: 0x00000e38
Ghidra address:
PAL: 0x00000e38

◆ StartTickThread()

void StartTickThread ( void(* entry )())

Start a thread the tick timer wakes every 6 milliseconds.

The routine has no caller.

Parameters
entryEntry point of the thread.
Ghidra address:
NTSC-U/C: 0x00000f74
Ghidra address:
PAL: 0x00000f74

◆ StopTickThread()

void StopTickThread ( )

Stop and release the tick timer, and delete the lock.

The routine has no caller.

Ghidra address:
NTSC-U/C: 0x00000fc8
Ghidra address:
PAL: 0x00000fc8