added trigger for wifi timer (every 0x3F03 cycles, ~1us)

This commit is contained in:
mightymax 2007-01-13 19:12:12 +00:00
parent b7185b48b0
commit 5b3cadc8c6
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include "SPU.h"
#include "mem.h"
#include "wifi.h"
#ifdef __cplusplus
extern "C" {
@ -200,6 +201,12 @@ int NDS_LoadFirmware(const char *filename);
//nds.ARM9Cycle += NDS_ARM9.exec();
nds.ARM9Cycle += armcpu_exec(&NDS_ARM9);
}
if((nds.ARM7Cycle % 0x3F03) == 0)
{
/* 3F03 arm7 cyles = ~1usec */
WIFI_usTrigger(&wifiMac) ;
}
if(nds.ARM7Cycle<=nds.cycles)
{
#ifdef LOG_ARM7