Subversion Repositories freemyipod

Rev

Rev 126 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 126 Rev 132
Line 20... Line 20...
20
//
20
//
21
//
21
//
22
 
22
 
23
 
23
 
24
#include "global.h"
24
#include "global.h"
-
 
25
#include "clickwheel.h"
25
 
26
 
26
 
27
 
27
#define nor ((uint8_t*)0x24000000)
28
#define nor ((uint8_t*)0x24000000)
28
#define norword ((uint32_t*)0x24000000)
29
#define norword ((uint32_t*)0x24000000)
29
#define sysi ((uint8_t*)0x2202bdf0)
30
#define sysi ((uint8_t*)0x2202bdf0)
Line 32... Line 33...
32
 
33
 
33
void targetinit_late()
34
void targetinit_late()
34
{
35
{
35
    int i;
36
    int i;
36
 
37
 
-
 
38
    clickwheel_init();
-
 
39
 
37
    uint32_t scfg_size = norword[0x401];
40
    uint32_t scfg_size = norword[0x401];
38
    uint32_t scfg_entrycount = norword[0x405];
41
    uint32_t scfg_entrycount = norword[0x405];
39
    if (norword[0x400] == 0x53436667 && scfg_size <= 0x1000
42
    if (norword[0x400] == 0x53436667 && scfg_size <= 0x1000
40
     && scfg_entrycount * 0x14 + 0x18 == scfg_size)
43
     && scfg_entrycount * 0x14 + 0x18 == scfg_size)
41
    {
44
    {