Revisión | 14 (tree) |
---|---|
Tiempo | 2012-10-01 22:59:20 |
Autor | tekken_boss |
000.001.014: 2012/10/01 22:55 : ROM code maintenance.
* [SL811] Process wait added after start up and after reset. 500ms
* Compilable.
@@ -310,6 +310,7 @@ | ||
310 | 310 | |
311 | 311 | sl811_wait_timer = 0; |
312 | 312 | sl811_reg_wait_timer = 0; |
313 | + sl811_disable_timer = 500; | |
313 | 314 | sl811_proc = USB_REG_TEST; |
314 | 315 | sl811_error = USB_ERR_NONE; |
315 | 316 |
@@ -431,6 +432,8 @@ | ||
431 | 432 | int i, data, result; |
432 | 433 | unsigned char *p; |
433 | 434 | |
435 | + if( sl811_disable_timer ) return; | |
436 | + | |
434 | 437 | switch( sl811_proc ) { |
435 | 438 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
436 | 439 | // * Register read / write test * |
@@ -557,6 +560,8 @@ | ||
557 | 560 | sl811_write_reg(SL811HS_INTENV, SL811HS_INTENV_BIT_USBA | |
558 | 561 | SL811HS_INTENV_BIT_SOFTIMER|SL811HS_INTENV_BIT_INSRMV); |
559 | 562 | sl811_proc = USB_DETECTION_01; |
563 | + sl811_disable_timer = 500; | |
564 | + | |
560 | 565 | #ifdef SL811HS_DEBUG_ON |
561 | 566 | printf("[USB] Hi SPD detected.\r\n"); |
562 | 567 | #endif |
@@ -15,9 +15,10 @@ | ||
15 | 15 | |
16 | 16 | #define SRCVER_MAJOR 0 |
17 | 17 | #define SRCVER_MINOR 1 |
18 | -#define SRCVER_BUILD 13 | |
18 | +#define SRCVER_BUILD 14 | |
19 | 19 | |
20 | 20 | /* -------------------------------------------------------------------- |
21 | +000.001.014: 2012/10/01 22:55 : ROM code maintenance. | |
21 | 22 | 000.001.013: 2012/08/24 16:31 : Memory check sequence is added. |
22 | 23 | 000.001.012: 2012/08/22 16:59 : Single chip mode is implemented. |
23 | 24 | 000.001.011: 2012/06/18 09:21 : enduser mode is ready. (still not default) |
@@ -19,6 +19,7 @@ | ||
19 | 19 | |
20 | 20 | _start: |
21 | + mov.l #_stack_end,sp | |
21 | 22 | jmp _main ; Goto main() |
22 | 23 | |
23 | 24 | _sleep: |
@@ -60,7 +60,7 @@ | ||
60 | 60 | // Main routine |
61 | 61 | // ------------------------------------------- |
62 | 62 | int main(void) { |
63 | -/* | |
63 | + | |
64 | 64 | BSC.ABWCR.BYTE = 0xff; // CS0-CS7:8bitバス |
65 | 65 | BSC.ASTCR.BYTE = 0xff; // CS0-CS7:3ステートアクセス |
66 | 66 | BSC.BCR.BYTE = 0xc6; // |
@@ -72,7 +72,7 @@ | ||
72 | 72 | RTMCSR=0x27; |
73 | 73 | DRCRB=0x98; |
74 | 74 | DRCRA=0x78; |
75 | -*/ | |
75 | + | |
76 | 76 | // uCom initialize |
77 | 77 | port_initialize(); |
78 | 78 | register_initialize(); |