libww libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
system.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Macros

#define SYS_INT_SENDREADY   0
 
#define SYS_INT_KEY   1
 
#define SYS_INT_CASETTE   2
 
#define SYS_INT_RECEIVEREADY   3
 
#define SYS_INT_DISPLINE   4
 
#define SYS_INT_TIMER_COUNTUP   5
 
#define SYS_INT_VBLANK   6
 
#define SYS_INT_HBLANK_COUNTUP   7
 

Functions

void sys_interrupt_set_hook (uint8_t id, intvector_t __far *new_vector, intvector_t __far *old_vector)
 
void sys_interrupt_reset_hook (uint8_t id, intvector_t __far *old_vector)
 
static void sys_wait (uint16_t ticks)
 
static uint16_t sys_get_tick_count (void)
 
static void sys_sleep (void)
 
static void sys_set_sleep_time (uint16_t value)
 
static uint16_t sys_get_sleep_time (void)
 
static void sys_set_awake_key (uint16_t value)
 
static uint16_t sys_get_awake_key (void)
 
static void sys_set_keepalive_int (uint16_t value)
 
void sys_get_ownerinfo (uint16_t size, void __far *data)
 
static void sys_set_remote (uint8_t value)
 
static uint8_t sys_get_remote (void)
 
static void __wf_iram * sys_alloc_iram (void *ptr, uint16_t size)
 
static void sys_free_iram (void __wf_iram *ptr)
 
static void __wf_iram * sys_get_my_iram (void)
 
static uint16_t sys_get_version (void)
 
static void sys_set_resume (uint16_t value)
 
static uint16_t sys_get_resume (void)
 

Macro Definition Documentation

◆ SYS_INT_CASETTE

#define SYS_INT_CASETTE   2

Definition at line 14 of file system.h.

◆ SYS_INT_DISPLINE

#define SYS_INT_DISPLINE   4

Definition at line 18 of file system.h.

◆ SYS_INT_HBLANK_COUNTUP

#define SYS_INT_HBLANK_COUNTUP   7

Definition at line 24 of file system.h.

◆ SYS_INT_KEY

#define SYS_INT_KEY   1

Definition at line 12 of file system.h.

◆ SYS_INT_RECEIVEREADY

#define SYS_INT_RECEIVEREADY   3

Definition at line 16 of file system.h.

◆ SYS_INT_SENDREADY

#define SYS_INT_SENDREADY   0

Definition at line 10 of file system.h.

◆ SYS_INT_TIMER_COUNTUP

#define SYS_INT_TIMER_COUNTUP   5

Definition at line 20 of file system.h.

◆ SYS_INT_VBLANK

#define SYS_INT_VBLANK   6

Definition at line 22 of file system.h.

Function Documentation

◆ sys_alloc_iram()

static void __wf_iram * sys_alloc_iram ( void * ptr,
uint16_t size )
inlinestatic

Definition at line 136 of file system.h.

◆ sys_free_iram()

static void sys_free_iram ( void __wf_iram * ptr)
inlinestatic

Definition at line 147 of file system.h.

◆ sys_get_awake_key()

static uint16_t sys_get_awake_key ( void )
inlinestatic

Definition at line 92 of file system.h.

◆ sys_get_my_iram()

static void __wf_iram * sys_get_my_iram ( void )
inlinestatic

Definition at line 157 of file system.h.

◆ sys_get_ownerinfo()

void sys_get_ownerinfo ( uint16_t size,
void __far * data )

◆ sys_get_remote()

static uint8_t sys_get_remote ( void )
inlinestatic

Definition at line 125 of file system.h.

◆ sys_get_resume()

static uint16_t sys_get_resume ( void )
inlinestatic

Definition at line 189 of file system.h.

◆ sys_get_sleep_time()

static uint16_t sys_get_sleep_time ( void )
inlinestatic

Definition at line 71 of file system.h.

◆ sys_get_tick_count()

static uint16_t sys_get_tick_count ( void )
inlinestatic

Definition at line 40 of file system.h.

◆ sys_get_version()

static uint16_t sys_get_version ( void )
inlinestatic

Definition at line 168 of file system.h.

◆ sys_interrupt_reset_hook()

void sys_interrupt_reset_hook ( uint8_t id,
intvector_t __far * old_vector )

◆ sys_interrupt_set_hook()

void sys_interrupt_set_hook ( uint8_t id,
intvector_t __far * new_vector,
intvector_t __far * old_vector )

◆ sys_set_awake_key()

static void sys_set_awake_key ( uint16_t value)
inlinestatic

Definition at line 82 of file system.h.

◆ sys_set_keepalive_int()

static void sys_set_keepalive_int ( uint16_t value)
inlinestatic

Definition at line 103 of file system.h.

◆ sys_set_remote()

static void sys_set_remote ( uint8_t value)
inlinestatic

Definition at line 115 of file system.h.

◆ sys_set_resume()

static void sys_set_resume ( uint16_t value)
inlinestatic

Definition at line 179 of file system.h.

◆ sys_set_sleep_time()

static void sys_set_sleep_time ( uint16_t value)
inlinestatic

Definition at line 61 of file system.h.

◆ sys_sleep()

static void sys_sleep ( void )
inlinestatic

Definition at line 51 of file system.h.

◆ sys_wait()

static void sys_wait ( uint16_t ticks)
inlinestatic

Definition at line 30 of file system.h.