| 
 
| static  void  AppTaskStart (void *p_arg) {
 CPU_INT32U  i;
 CPU_INT32U  j;
 
 
 (void)p_arg;
 
 BSP_Init();                                                 /* Initialize BSP functions                                 */
 
 #if (OS_TASK_STAT_EN > 0)
 OSStatInit();                                               /* Determine CPU capacity                                   */
 #endif
 
 #if (uC_PROBE_COM_MODULE > 0)
 ProbeCom_Init();                                            /* Initialize the uC/Probe communications module            */
 ProbeRS232_Init(115200);
 ProbeRS232_RxIntEn();
 #endif
 
 #if (uC_PROBE_OS_PLUGIN > 0)
 #if (uC_PROBE_COM_MODULE   > 0) &&
 (PROBE_COM_STAT_EN     > 0)
 Probe_RS232RxSpd       = 0;
 Probe_RS232TxSpd       = 0;
 Probe_ComRxPktSpd      = 0;
 Probe_ComTxPktSpd      = 0;
 Probe_ComTxSymSpd      = 0;
 Probe_ComTxSymByteSpd  = 0;
 
 Probe_RS232RxLast      = 0;
 Probe_RS232TxLast      = 0;
 Probe_ComRxPktLast     = 0;
 Probe_ComTxPktLast     = 0;
 Probe_ComTxSymLast     = 0;
 Probe_ComTxSymByteLast = 0;
 
 Probe_ComCtrLast       = 0;
 #endif
 
 OSProbe_Init();
 OSProbe_SetCallback(AppProbeCallback);
 OSProbe_SetDelay(50);
 #endif
 
 AppUserIFMbox = OSMboxCreate((void *)0);                    /* Create MBOX for communication between Kbd and UserIF     */
 
 AppTaskCreate();                                            /* Create application tasks                                 */
 
 while (DEF_TRUE) {                                          /* Task body, always written as an infinite loop.           */
 for (j = 0; j < 4; j++) {
 for (i = 1; i <= 4; i++) {
 LED_On(i);
 OSTimeDlyHMSM(0, 0, 1, 50);
 LED_Off(i);
 OSTimeDlyHMSM(0, 0, 1, 50);
 }
 
 for (i = 3; i >= 2; i--) {
 LED_On(i);
 OSTimeDlyHMSM(0, 0, 1, 50);
 LED_Off(i);
 OSTimeDlyHMSM(0, 0, 2, 50);
 }
 }
 
 for (i = 0; i < 4; i++) {
 LED_On(0);
 OSTimeDlyHMSM(0, 0, 0, 200);
 LED_Off(0);
 OSTimeDlyHMSM(0, 0, 0, 200);
 }
 }
 }
 
 | 
 |