portBASE_TYPE xPortStartScheduler( void ) { if (flag == 0) { /* Start the timer that generates the tick ISR. Interrupts are disabled here already. */ prvSetupTimerInterrupt(); vApplicationSetupHardware(); flag = 1; /* Start the first task. */ vPortISRStartFirstTask(); /* Should not get here! */ return 0; } else { vPortExitTask(); return 0; } }
portBASE_TYPE xPortStartScheduler( void ) { /* Start the timer that generates the tick ISR. Interrupts are disabled here already. */ prvSetupTimerInterrupt(); /* Start the first task. */ vPortISRStartFirstTask(); /* Should not get here! */ return 0; }
portBASE_TYPE xPortStartScheduler( void ) { /* Start the timer that generates the tick ISR. */ prvSetupTimerInterrupt(); /* Start the first task. This is done from portISR.c as ARM mode must be used. */ vPortISRStartFirstTask(); /* Should not get here! */ return 0; }
portBASE_TYPE xPortStartScheduler( void ) { /* Start the timer that generates the tick ISR. Interrupts are disabled here already. */ prvSetupTimerInterrupt(); //loop_led(); // simpan sini LANCAR /* Start the first task. */ vPortISRStartFirstTask(); // --> portRESTORE_CONTEXT(); // ada di file source/portable/GCC/ARM7_LPC23xx/portISR.c //loop_led(); // simpan sini MATI /* Should not get here! */ return 0; }