• R/O
  • SSH
  • HTTPS

panda-p: 提交


Commit MetaInfo

修訂14 (tree)
時間2012-10-01 22:59:20
作者tekken_boss

Log Message

000.001.014: 2012/10/01 22:55 : ROM code maintenance.

modification

* [SL811] Process wait added after start up and after reset. 500ms

(countermeasure for ROM code).

Confirmation

* Compilable.

Change Summary

差異

--- trunk/src/sl811.c (revision 13)
+++ trunk/src/sl811.c (revision 14)
@@ -310,6 +310,7 @@
310310
311311 sl811_wait_timer = 0;
312312 sl811_reg_wait_timer = 0;
313+ sl811_disable_timer = 500;
313314 sl811_proc = USB_REG_TEST;
314315 sl811_error = USB_ERR_NONE;
315316
@@ -431,6 +432,8 @@
431432 int i, data, result;
432433 unsigned char *p;
433434
435+ if( sl811_disable_timer ) return;
436+
434437 switch( sl811_proc ) {
435438 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
436439 // * Register read / write test *
@@ -557,6 +560,8 @@
557560 sl811_write_reg(SL811HS_INTENV, SL811HS_INTENV_BIT_USBA |
558561 SL811HS_INTENV_BIT_SOFTIMER|SL811HS_INTENV_BIT_INSRMV);
559562 sl811_proc = USB_DETECTION_01;
563+ sl811_disable_timer = 500;
564+
560565 #ifdef SL811HS_DEBUG_ON
561566 printf("[USB] Hi SPD detected.\r\n");
562567 #endif
--- trunk/src/srcver.h (revision 13)
+++ trunk/src/srcver.h (revision 14)
@@ -15,9 +15,10 @@
1515
1616 #define SRCVER_MAJOR 0
1717 #define SRCVER_MINOR 1
18-#define SRCVER_BUILD 13
18+#define SRCVER_BUILD 14
1919
2020 /* --------------------------------------------------------------------
21+000.001.014: 2012/10/01 22:55 : ROM code maintenance.
2122 000.001.013: 2012/08/24 16:31 : Memory check sequence is added.
2223 000.001.012: 2012/08/22 16:59 : Single chip mode is implemented.
2324 000.001.011: 2012/06/18 09:21 : enduser mode is ready. (still not default)
--- trunk/src/start.s (revision 13)
+++ trunk/src/start.s (revision 14)
@@ -19,6 +19,7 @@
1919
2020 _start:
21+ mov.l #_stack_end,sp
2122 jmp _main ; Goto main()
2223
2324 _sleep:
--- trunk/src/main.c (revision 13)
+++ trunk/src/main.c (revision 14)
@@ -60,7 +60,7 @@
6060 // Main routine
6161 // -------------------------------------------
6262 int main(void) {
63-/*
63+
6464 BSC.ABWCR.BYTE = 0xff; // CS0-CS7:8bitバス
6565 BSC.ASTCR.BYTE = 0xff; // CS0-CS7:3ステートアクセス
6666 BSC.BCR.BYTE = 0xc6; //
@@ -72,7 +72,7 @@
7272 RTMCSR=0x27;
7373 DRCRB=0x98;
7474 DRCRA=0x78;
75-*/
75+
7676 // uCom initialize
7777 port_initialize();
7878 register_initialize();
Show on old repository browser