(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
92 lines
2.3 KiB
C
92 lines
2.3 KiB
C
/*****************************************************************************/
|
||
/* ここから */
|
||
/*****************************************************************************/
|
||
|
||
#include <stdio.h>
|
||
#include <stdlib.h>
|
||
|
||
#include "sys/bank.h"
|
||
|
||
#include "Wonx.h"
|
||
|
||
/*****************************************************************************/
|
||
/* 互換関数の定義 */
|
||
/*****************************************************************************/
|
||
|
||
/*
|
||
* Xサーバとの同期の整合性がとれなくなるなどの問題が考えられるので,
|
||
* 互換関数の内部は UNIXTimer_Pause(), UNIXTimer_Unpause() でくくり,
|
||
* タイマ割り込みを一時停止して処理を行う.また,unpause するまえに,
|
||
* かならず sync するようにする.
|
||
*/
|
||
|
||
/*
|
||
* タイマの一時停止の2重解除の問題が出てくるので,
|
||
* 互換関数から互換関数を呼んではいけない.
|
||
* (一時停止はネストされるが,いちおう)
|
||
* 似たような処理をする関数の場合は,必ず static な別関数に処理をまとめ,
|
||
* そっちを呼び出すようにすること.
|
||
* 引数の表示の問題もあるしね.
|
||
*/
|
||
|
||
void bank_set_map(int bank, int bank_num)
|
||
{
|
||
return;
|
||
}
|
||
|
||
int bank_get_map(int bank)
|
||
{
|
||
return (0);
|
||
}
|
||
|
||
unsigned char bank_read_byte(int bank, unsigned int offset)
|
||
{
|
||
return (0);
|
||
}
|
||
|
||
void bank_write_byte(int bank, unsigned int offset, unsigned int data)
|
||
{
|
||
return;
|
||
}
|
||
|
||
unsigned int bank_read_word(int bank, unsigned int offset)
|
||
{
|
||
return (0);
|
||
}
|
||
|
||
void bank_write_word(int bank, unsigned int offset, unsigned int data)
|
||
{
|
||
return;
|
||
}
|
||
|
||
void bank_read_block(int bank, unsigned int offset,
|
||
void * buffer, unsigned int size)
|
||
{
|
||
return;
|
||
}
|
||
|
||
void bank_write_block(int bank, unsigned int offset,
|
||
void * buffer, unsigned int size)
|
||
{
|
||
return;
|
||
}
|
||
|
||
void bank_fill_block(int bank, unsigned int offset,
|
||
unsigned int size, unsigned int data)
|
||
{
|
||
return;
|
||
}
|
||
|
||
void bank_erase_flash(int bank)
|
||
{
|
||
return;
|
||
}
|
||
|
||
/*****************************************************************************/
|
||
/* ここまで */
|
||
/*****************************************************************************/
|
||
|
||
/*****************************************************************************/
|
||
/* End of File. */
|
||
/*****************************************************************************/
|