YSTest: Main.cpp 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

YSTest/DS_ARM7/source/Main.cpp
浏览该文件的文档.
1 /*
2 © 2009-2013, 2018 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #include <nds.h>
29 // #include <dswifi7.h>
30 // #include <maxmod7.h>
31
32 int
33 main()
34 {
35 ::irqInit();
36 ::fifoInit();
37 ::touchInit();
38
39 //从固件中读取用户设置。
40 ::readUserSettings();
41
42 // 开始使用 RTC 跟踪 IRQ 。
43 ::initClockIRQ();
44
45 ::SetYtrigger(80);
46
47 //installWifiFIFO();
48 ::installSoundFIFO();
49
50 //::mmInstall(FIFO_MAXMOD);
51
52 ::installSystemFIFO();
53
54 ::irqSet(IRQ_VCOUNT, ::inputGetAndSend);
55 // ::irqSet(IRQ_VBLANK, Wifi_Update);
56
57 ::irqEnable(IRQ_VBLANK | IRQ_VCOUNT | IRQ_NETWORK);
58
59 //保持 ARM7 空闲状态。
60 while(true)
61 ::swiWaitForVBlank();
62 }
63
main
int main()
Definition: YSTest/DS_ARM7/source/Main.cpp:33