libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
BIOS - INT 16h - Timer

Macros

#define RTC_YEAR   0x00
 
#define RTC_MONTH   0x01
 
#define RTC_DATE   0x02
 
#define RTC_DAY_OF_WEEK   0x03
 
#define RTC_HOUR   0x04
 
#define RTC_MIN   0x05
 
#define RTC_SEC   0x06
 
#define TIMER_HBLANK   0
 
#define TIMER_VBLANK   1
 
#define TIMER_ONESHOT   0
 
#define TIMER_AUTOPRESET   1
 

Functions

void rtc_set_datetime (uint16_t field, uint16_t value)
 
static void rtc_set_year (uint16_t value)
 
static void rtc_set_month (uint16_t value)
 
static void rtc_set_date (uint16_t value)
 
static void rtc_set_day_of_week (uint16_t value)
 
static void rtc_set_hour (uint16_t value)
 
static void rtc_set_minute (uint16_t value)
 
static void rtc_set_second (uint16_t value)
 
uint16_t rtc_get_datetime (uint16_t field)
 
static uint16_t rtc_get_year (void)
 
static uint16_t rtc_get_month (void)
 
static uint16_t rtc_get_date (void)
 
static uint16_t rtc_get_day_of_week (void)
 
static uint16_t rtc_get_hour (void)
 
static uint16_t rtc_get_minute (void)
 
static uint16_t rtc_get_second (void)
 
void rtc_enable_alarm (uint8_t hour, uint8_t minute)
 
void rtc_disable_alarm (void)
 
void timer_enable (uint8_t type, uint16_t reload, uint16_t count)
 
void timer_disable (uint8_t type)
 
uint16_t timer_get_count (uint8_t type)
 

Detailed Description

Macro Definition Documentation

◆ RTC_DATE

#define RTC_DATE   0x02

Definition at line 39 of file timer.h.

◆ RTC_DAY_OF_WEEK

#define RTC_DAY_OF_WEEK   0x03

Definition at line 40 of file timer.h.

◆ RTC_HOUR

#define RTC_HOUR   0x04

Definition at line 41 of file timer.h.

◆ RTC_MIN

#define RTC_MIN   0x05

Definition at line 42 of file timer.h.

◆ RTC_MONTH

#define RTC_MONTH   0x01

Definition at line 38 of file timer.h.

◆ RTC_SEC

#define RTC_SEC   0x06

Definition at line 43 of file timer.h.

◆ RTC_YEAR

#define RTC_YEAR   0x00

Definition at line 37 of file timer.h.

◆ TIMER_AUTOPRESET

#define TIMER_AUTOPRESET   1

Definition at line 111 of file timer.h.

◆ TIMER_HBLANK

#define TIMER_HBLANK   0

Definition at line 108 of file timer.h.

◆ TIMER_ONESHOT

#define TIMER_ONESHOT   0

Definition at line 110 of file timer.h.

◆ TIMER_VBLANK

#define TIMER_VBLANK   1

Definition at line 109 of file timer.h.

Function Documentation

◆ rtc_disable_alarm()

void rtc_disable_alarm ( void )

◆ rtc_enable_alarm()

void rtc_enable_alarm ( uint8_t hour,
uint8_t minute )

◆ rtc_get_date()

static uint16_t rtc_get_date ( void )
inlinestatic

Definition at line 85 of file timer.h.

◆ rtc_get_datetime()

uint16_t rtc_get_datetime ( uint16_t field)

◆ rtc_get_day_of_week()

static uint16_t rtc_get_day_of_week ( void )
inlinestatic

Definition at line 89 of file timer.h.

◆ rtc_get_hour()

static uint16_t rtc_get_hour ( void )
inlinestatic

Definition at line 93 of file timer.h.

◆ rtc_get_minute()

static uint16_t rtc_get_minute ( void )
inlinestatic

Definition at line 97 of file timer.h.

◆ rtc_get_month()

static uint16_t rtc_get_month ( void )
inlinestatic

Definition at line 81 of file timer.h.

◆ rtc_get_second()

static uint16_t rtc_get_second ( void )
inlinestatic

Definition at line 101 of file timer.h.

◆ rtc_get_year()

static uint16_t rtc_get_year ( void )
inlinestatic

Definition at line 77 of file timer.h.

◆ rtc_set_date()

static void rtc_set_date ( uint16_t value)
inlinestatic

Definition at line 55 of file timer.h.

◆ rtc_set_datetime()

void rtc_set_datetime ( uint16_t field,
uint16_t value )

◆ rtc_set_day_of_week()

static void rtc_set_day_of_week ( uint16_t value)
inlinestatic

Definition at line 59 of file timer.h.

◆ rtc_set_hour()

static void rtc_set_hour ( uint16_t value)
inlinestatic

Definition at line 63 of file timer.h.

◆ rtc_set_minute()

static void rtc_set_minute ( uint16_t value)
inlinestatic

Definition at line 67 of file timer.h.

◆ rtc_set_month()

static void rtc_set_month ( uint16_t value)
inlinestatic

Definition at line 51 of file timer.h.

◆ rtc_set_second()

static void rtc_set_second ( uint16_t value)
inlinestatic

Definition at line 71 of file timer.h.

◆ rtc_set_year()

static void rtc_set_year ( uint16_t value)
inlinestatic

Definition at line 47 of file timer.h.

◆ timer_disable()

void timer_disable ( uint8_t type)

◆ timer_enable()

void timer_enable ( uint8_t type,
uint16_t reload,
uint16_t count )

◆ timer_get_count()

uint16_t timer_get_count ( uint8_t type)