mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
M&Mチップに対応させるため、NWMのFWロード完了後にWMの初期化を行うように変更。
* TwlSDK r7054以降に対応 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1807 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
6e95effbe4
commit
715443c3a3
@ -25,7 +25,7 @@
|
||||
#include <nitro/std.h>
|
||||
#include <nitro/snd.h>
|
||||
#include <nitro/wvr.h>
|
||||
#include <twl/nwm.h>
|
||||
#include <twl/nwm/ARM7/ForLauncher/nwm_sp_init_for_launcher.h>
|
||||
#include <twl/camera.h>
|
||||
#include <twl/rtc.h>
|
||||
#include <nitro/hw/common/lcd.h>
|
||||
@ -233,8 +233,7 @@ TwlSpMain(void)
|
||||
// RTC <20>‰Šú‰»
|
||||
RTC_Init(THREAD_PRIO_RTC);
|
||||
|
||||
// ‹Œ–³<E28093>ü<EFBFBD>‰Šú‰»
|
||||
WVR_Begin(wramHeapHandle);
|
||||
// (旧無線初期化はmain loopで行う。)
|
||||
|
||||
// SPI <20>‰Šú‰»
|
||||
SPI_Init(THREAD_PRIO_SPI);
|
||||
@ -274,6 +273,12 @@ TwlSpMain(void)
|
||||
while (TRUE)
|
||||
{
|
||||
OS_Halt();
|
||||
// 無線ファームのロード完了後に旧無線を初期化する。
|
||||
if (TRUE == NWMSPi_CheckInstalledNotification())
|
||||
{
|
||||
WVR_Begin(wramHeapHandle);
|
||||
NWMSPi_NotifyConfirmation();
|
||||
}
|
||||
BOOT_WaitStart();
|
||||
}
|
||||
}
|
||||
@ -410,7 +415,7 @@ InitializeNwm(OSHeapHandle drvHeapHandle, OSHeapHandle wpaHeapHandle)
|
||||
nwmInit.wpaHeap.id = OS_ARENA_MAIN_SUBPRIV; /* [TODO] */
|
||||
nwmInit.wpaHeap.handle = wpaHeapHandle;
|
||||
|
||||
NWMSP_Init(&nwmInit);
|
||||
NWMSP_InitForLauncher(&nwmInit);
|
||||
|
||||
}
|
||||
#include <twl/ltdwram_end.h>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user