liberis
|
00001 /* 00002 liberis -- A set of libraries for controlling the NEC PC-FX 00003 00004 Copyright (C) 2011 Alex Marshall "trap15" <trap15@raidenii.net> 00005 00006 # This code is licensed to you under the terms of the MIT license; 00007 # see file LICENSE or http://www.opensource.org/licenses/mit-license.php 00008 */ 00009 00014 #ifndef _LIBERIS_TIMER_H_ 00015 #define _LIBERIS_TIMER_H_ 00016 00017 #include <eris/types.h> 00018 00021 void eris_timer_init(void); 00028 void eris_timer_set_period(int period); 00033 int eris_timer_read_counter(void); 00036 void eris_timer_ack_irq(void); 00041 u16 eris_timer_read_control(void); 00046 void eris_timer_write_control(int cr); 00051 void eris_timer_start(int irq); 00054 void eris_timer_stop(void); 00055 00056 #endif 00057