Added interrupt handling. Timer interrupt support.
(UNIXTimer, WWInterrupt, WWTimer, WonxSystem addition) According to interrupt support, compatibility functions are replaced with UNIXTimer_Pause (), UNIXTimer_Unpause () It hung around. UNIXTimer, WWTimer, WonxSystem's callback functions, It is necessary to check finely whether there are bugs peculiar to interrupts. (The setting of the interrupt in the callback function may change, or from the callback function It is necessary to check whether the callback function is called or not) Version 0.2 beta - from wonx-b02.tar.gz
This commit is contained in:
53
WonxSystem.h
Normal file
53
WonxSystem.h
Normal file
@@ -0,0 +1,53 @@
|
||||
#ifndef _WonxSystem_h_INCLUDED_
|
||||
#define _WonxSystem_h_INCLUDED_
|
||||
|
||||
/*****************************************************************************/
|
||||
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||||
/*****************************************************************************/
|
||||
|
||||
#include "WWInterrupt.h"
|
||||
#include "WWTimer.h"
|
||||
#include "UNIXTimer.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* <20><><EFBFBD>饹<EFBFBD><E9A5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef struct _WonxSystem * WonxSystem;
|
||||
|
||||
/*****************************************************************************/
|
||||
/* <20><><EFBFBD><EFBFBD><EFBFBD>дؿ<D0B4><D8BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||||
/*****************************************************************************/
|
||||
|
||||
WWInterrupt WonxSystem_GetWWInterrupt(WonxSystem wonx_system);
|
||||
WWInterrupt WonxSystem_SetWWInterrupt(WonxSystem wonx_system,
|
||||
WWInterrupt ww_interrupt);
|
||||
|
||||
WWTimer WonxSystem_GetWWTimer(WonxSystem wonx_system, int type);
|
||||
WWTimer WonxSystem_SetWWTimer(WonxSystem wonx_system, int type, WWTimer t);
|
||||
|
||||
WWTimer WonxSystem_GetWWVBlankTimer(WonxSystem wonx_system);
|
||||
WWTimer WonxSystem_SetWWVBlankTimer(WonxSystem wonx_system, WWTimer t);
|
||||
|
||||
WWTimer WonxSystem_GetWWVBlankCountUpTimer(WonxSystem wonx_system);
|
||||
WWTimer WonxSystem_SetWWVBlankCountUpTimer(WonxSystem wonx_system, WWTimer t);
|
||||
|
||||
WWTimer WonxSystem_GetWWHBlankCountUpTimer(WonxSystem wonx_system);
|
||||
WWTimer WonxSystem_SetWWHBlankCountUpTimer(WonxSystem wonx_system, WWTimer t);
|
||||
|
||||
UNIXTimer WonxSystem_GetUNIXTimer(WonxSystem wonx_system);
|
||||
UNIXTimer WonxSystem_SetUNIXTimer(WonxSystem wonx_system,
|
||||
UNIXTimer unix_timer);
|
||||
|
||||
WonxSystem WonxSystem_Create();
|
||||
WonxSystem WonxSystem_Destroy(WonxSystem wonx_system);
|
||||
|
||||
/*****************************************************************************/
|
||||
/* <20><><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD> */
|
||||
/*****************************************************************************/
|
||||
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
/* End of File. */
|
||||
/*****************************************************************************/
|
||||
Reference in New Issue
Block a user