・カード読み最中にエラーがあった場合、3回までカード読みをリトライするように修正。

・chattering counterの値を0x1988(100ms)に修正。
・counter-Aの値を0x264c(150ms)に設定。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1679 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
(no author) 2008-06-24 11:59:52 +00:00
parent 68bacde107
commit 36943ad2eb
2 changed files with 18 additions and 3 deletions

View File

@ -270,6 +270,8 @@ typedef union BootSegmentData
// カードブート時に必要な変数一式をまとめた構造体
typedef struct CardBootData{
u8 retry;
u32 vae;
u32 vbi;
u32 vd;

View File

@ -31,10 +31,15 @@
//#define HOWSW_ENABLE_DEEP_SLEEP_WHILE_INSERT_CARD
// define -------------------------------------------------------------------
#define CHATTERING_COUNTER 0x264c // 150ms•ª (0x264C * 15.3us = 150001us)
#define COUNTER_A 0x1988 // 100ms•ª (0x1988 * 15.3us = 100000us)
#define CHATTERING_COUNTER 0x1988 // 100ms分 (0x1988 * 15.3us = 100000us)
//#define CHATTERING_COUNTER 0x264c // 150ms分 (0x264c * 15.3us = 150001us)
//#define CHATTERING_COUNTER 0x3310 // 200ms分 (0x3310 * 15.3us = 200001us)
//#define CHATTERING_COUNTER 0x4c98 // 300ms分 (0x4c98 * 15.3us = 300002us)
#define COUNTER_A 0x264c // 150ms分 (0x264c * 15.3us = 150001us)
#define CARD_EXIST_CHECK_INTERVAL 100
#define CARD_READ_RETRY_NUM 3 // リードミス時のリトライ回数
#define UNDEF_CODE 0xe7ffdeff // 未定義コード
#define ENCRYPT_DEF_SIZE 0x800 // 2KB ※ ARM9常駐モジュール先頭2KB
@ -1625,7 +1630,15 @@ static void HotSwThread(void *arg)
ClearCardFlgs();
McPowerOff();
break;
// リトライ
if(s_cbData.retry >= CARD_READ_RETRY_NUM){
break;
}
else{
s_isPulledOut = TRUE;
}
s_cbData.retry++;
}
}