libws libws
WSwan hardware library for the Wonderful toolchain
Loading...
Searching...
No Matches
Hardware defines - Timer control I/O ports

Macros

#define WS_TIMER_CTRL_PORT   0xA2
#define WS_TIMER_CTRL_VBL_DISABLE   0x00
#define WS_TIMER_CTRL_VBL_ONESHOT   0x04
#define WS_TIMER_CTRL_VBL_REPEAT   0x0C
#define WS_TIMER_CTRL_VBL_SHIFT   2
#define WS_TIMER_CTRL_VBL_MASK   0x0C
#define WS_TIMER_CTRL_VBL_REPEAT_BIT   0x08
#define WS_TIMER_CTRL_VBL_ENABLE_BIT   0x04
#define WS_TIMER_CTRL_HBL_DISABLE   0x00
#define WS_TIMER_CTRL_HBL_ONESHOT   0x01
#define WS_TIMER_CTRL_HBL_REPEAT   0x03
#define WS_TIMER_CTRL_HBL_SHIFT   0
#define WS_TIMER_CTRL_HBL_MASK   0x03
#define WS_TIMER_CTRL_HBL_REPEAT_BIT   0x02
#define WS_TIMER_CTRL_HBL_ENABLE_BIT   0x01
#define WS_TIMER_HBL_RELOAD_PORT   0xA4
#define WS_TIMER_VBL_RELOAD_PORT   0xA6
#define WS_TIMER_HBL_COUNTER_PORT   0xA8
#define WS_TIMER_VBL_COUNTER_PORT   0xAA

Detailed Description

Macro Definition Documentation

◆ WS_TIMER_CTRL_HBL_DISABLE

#define WS_TIMER_CTRL_HBL_DISABLE   0x00

Disable horizontal blank timer.

Definition at line 1062 of file ports.h.

◆ WS_TIMER_CTRL_HBL_ENABLE_BIT

#define WS_TIMER_CTRL_HBL_ENABLE_BIT   0x01

Definition at line 1074 of file ports.h.

◆ WS_TIMER_CTRL_HBL_MASK

#define WS_TIMER_CTRL_HBL_MASK   0x03

Definition at line 1072 of file ports.h.

◆ WS_TIMER_CTRL_HBL_ONESHOT

#define WS_TIMER_CTRL_HBL_ONESHOT   0x01

Enable horizontal blank timer; trigger once, then stop.

Definition at line 1066 of file ports.h.

◆ WS_TIMER_CTRL_HBL_REPEAT

#define WS_TIMER_CTRL_HBL_REPEAT   0x03

Enable horizontal blank timer; repeat continuously.

Definition at line 1070 of file ports.h.

◆ WS_TIMER_CTRL_HBL_REPEAT_BIT

#define WS_TIMER_CTRL_HBL_REPEAT_BIT   0x02

Definition at line 1073 of file ports.h.

◆ WS_TIMER_CTRL_HBL_SHIFT

#define WS_TIMER_CTRL_HBL_SHIFT   0

Definition at line 1071 of file ports.h.

◆ WS_TIMER_CTRL_PORT

#define WS_TIMER_CTRL_PORT   0xA2

Definition at line 1042 of file ports.h.

◆ WS_TIMER_CTRL_VBL_DISABLE

#define WS_TIMER_CTRL_VBL_DISABLE   0x00

Disable vertical blank timer.

Definition at line 1046 of file ports.h.

◆ WS_TIMER_CTRL_VBL_ENABLE_BIT

#define WS_TIMER_CTRL_VBL_ENABLE_BIT   0x04

Definition at line 1058 of file ports.h.

◆ WS_TIMER_CTRL_VBL_MASK

#define WS_TIMER_CTRL_VBL_MASK   0x0C

Definition at line 1056 of file ports.h.

◆ WS_TIMER_CTRL_VBL_ONESHOT

#define WS_TIMER_CTRL_VBL_ONESHOT   0x04

Enable vertical blank timer; trigger once, then stop.

Definition at line 1050 of file ports.h.

◆ WS_TIMER_CTRL_VBL_REPEAT

#define WS_TIMER_CTRL_VBL_REPEAT   0x0C

Enable vertical blank timer; repeat continuously.

Definition at line 1054 of file ports.h.

◆ WS_TIMER_CTRL_VBL_REPEAT_BIT

#define WS_TIMER_CTRL_VBL_REPEAT_BIT   0x08

Definition at line 1057 of file ports.h.

◆ WS_TIMER_CTRL_VBL_SHIFT

#define WS_TIMER_CTRL_VBL_SHIFT   2

Definition at line 1055 of file ports.h.

◆ WS_TIMER_HBL_COUNTER_PORT

#define WS_TIMER_HBL_COUNTER_PORT   0xA8

Current counter value for horizontal blank timer.

Definition at line 1089 of file ports.h.

◆ WS_TIMER_HBL_RELOAD_PORT

#define WS_TIMER_HBL_RELOAD_PORT   0xA4

Reload value for horizontal blank timer.

Definition at line 1079 of file ports.h.

◆ WS_TIMER_VBL_COUNTER_PORT

#define WS_TIMER_VBL_COUNTER_PORT   0xAA

Current counter value for vertical blank timer.

Definition at line 1094 of file ports.h.

◆ WS_TIMER_VBL_RELOAD_PORT

#define WS_TIMER_VBL_RELOAD_PORT   0xA6

Reload value for vertical blank timer.

Definition at line 1084 of file ports.h.