Beispiel #1
0
void SYS_Tasks ( void )
{
    /* Maintain system services */
    /* SYS_COMMAND layer tasks routine */ 
    SYS_CMD_Tasks();
    SYS_CONSOLE_Tasks(sysObj.sysConsole0);
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    /* SYS_TMR Device layer tasks routine */ 
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */

    /* Maintain Middleware & Other Libraries */
    /* Maintain the TCP/IP Stack*/
    TCPIP_STACK_Task(sysObj.tcpip);

 
    /* USB HS Driver Task Routine */ 
     DRV_USBHS_Tasks(sysObj.drvUSBObject);
     
    /* USB Device layer tasks routine */ 
    USB_DEVICE_Tasks(sysObj.usbDevObject0);
 

    /* Maintain the application's state machine. */
    APP_Tasks();
}
static void ConsoleFlush(void)
{
    do {
        SYS_DEVCON_Tasks(sysObj.sysDevcon);
        SYS_CONSOLE_Tasks(sysObj.sysConsole0);
    } while (SYS_CONSOLE_Status(sysObj.sysConsole0) != SYS_STATUS_READY);
}
void _SYS_Tasks(void)
{
    while(1)
    {
    /* Maintain system services */
    /* Maintain the DEVCON system state machine. */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);

    /* Maintain Device Drivers */
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }
}
void SYS_Tasks ( void )
{
    /* Maintain the state machines of all library modules executing polled in
    the system. */

    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);

    /* Maintain Device Drivers */

    /* Maintain the application's state machine. */
    APP_Tasks();
}
Beispiel #5
0
static void _SYS_Tasks ( void )
{
    while(1)
    {
        /* Maintain system services */
        SYS_DEVCON_Tasks(sysObj.sysDevcon);

        /* Maintain Device Drivers */

        /* Maintain Middleware */

        /* Task Delay */
    }
}
Beispiel #6
0
void SYS_Tasks ( void )
{
    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */
        DRV_TMR_Tasks(sysObj.drvTmr0);

    /* Maintain Middleware & Other Libraries */


    /* Maintain the application's state machine. */
    APP_Tasks();
}
Beispiel #7
0
static void _SYS_Tasks ( void )
{
    while(1)
    {
        /* Maintain system services */
        SYS_DEVCON_Tasks(sysObj.sysDevcon);

        /* Maintain Device Drivers */

        /* Maintain Middleware */

        /* Task Delay */
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }
}
Beispiel #8
0
void SYS_Tasks ( void )
{
    /* Maintain the state machines of all library modules executing polled in
    the system. */

    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    SYS_CONSOLE_Tasks(sysObj.sysConsole0);

    /* Maintain Device Drivers */
    /* USB Device layer tasks routine */ 
    USB_DEVICE_Tasks(sysObj.usbDevObject0);

    /* Maintain the application's state machine. */
    APP_Tasks();
}
 void _SYS_Tasks(void)
{
    while(1)
    {
        /* Maintain system services */
        /* Maintain the DEVCON system state machine. */
        SYS_DEVCON_Tasks(sysObj.sysDevcon);

        //For Debugging
        //SYS_PORTS_PinSet(PORTS_ID_0, PORT_CHANNEL_G, PORTS_BIT_POS_8);
        /* Maintain Device Drivers */
        /* USB Device layer tasks routine */
        USB_DEVICE_Tasks(sysObj.usbDevObject0);
        //For Debugging
        //SYS_PORTS_PinClear(PORTS_ID_0, PORT_CHANNEL_G, PORTS_BIT_POS_8);
    }
}
static void _SYS_Tasks ( void )
{
    while(1)
    {
        /* Maintain system services */
        SYS_DEVCON_Tasks(sysObj.sysDevcon);

        /* Maintain Device Drivers */
    DRV_USART_TasksTransmit(sysObj.drvUsart0);
    DRV_USART_TasksReceive(sysObj.drvUsart0);
    DRV_USART_TasksError (sysObj.drvUsart0);

        /* Maintain Middleware */

        /* Task Delay */
    }
}
static void _SYS_Tasks ( void )
{
    while(1)
    {
        /* Maintain system services */
        SYS_DEVCON_Tasks(sysObj.sysDevcon);
        /* Maintain the DMA system state machine. */
        SYS_DMA_Tasks(sysObj.sysDma);

        /* Maintain Device Drivers */
        DRV_TMR_Tasks(sysObj.drvTmr0);

        /* Maintain Middleware */

        /* Task Delay */
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }
}
Beispiel #12
0
void SYS_Tasks ( void )
{
    /* Maintain the state machines of all library modules executing polled in
    the system. */

    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */
    DRV_TMR_Tasks(sysObj.drvTmr0);
    /* Maintain the TCPIP Native Command Stack */
    SYS_CMD_Tasks();
    /* Maintain the TCP/IP Stack*/
    TCPIP_STACK_Task(sysObj.tcpip);

    /* Maintain the application's state machine. */
    APP_Tasks();
}
Beispiel #13
0
void SYS_Tasks ( void )
{
    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    SYS_CONSOLE_Tasks(sysObj.sysConsole0);
    SYS_CMD_Tasks();
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */
        DRV_TMR_Tasks(sysObj.drvTmr0);

    /* Maintain Middleware & Other Libraries */
    /* Maintain the TCP/IP Stack*/
    TCPIP_STACK_Task(sysObj.tcpip);


    /* Maintain the application's state machine. */
    APP_Tasks();
}
void SYS_Tasks ( void )
{
    /* Maintain the state machines of all library modules executing polled in
    the system. */

    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */
    DRV_TMR_Tasks(sysObj.drvTmr0);


    /* Maintain USB Stack */
    /* Device layer tasks routine */ 
    USB_DEVICE_Tasks(sysObj.usbDevObject0);

    /* Maintain the application's state machine. */
    APP_Tasks();
}
Beispiel #15
0
void SYS_Tasks ( void )
{
    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    /* Maintain the DMA system state machine. */
    SYS_DMA_Tasks(sysObj.sysDma);
    SYS_TMR_Tasks(sysObj.sysTmr);
    SYS_TOUCH_Tasks(sysObj.sysTouchObject0);

    /* Maintain Device Drivers */
    DRV_TMR_Tasks(sysObj.drvTmr0);
    DRV_TOUCH_ADC10BIT_Tasks(sysObj.drvAdc10bit);

    /* Maintain Middleware & Other Libraries */
    /* Maintain the gfx state machine. */
    GFX_Tasks(sysObj.gfxObject0);


    /* Maintain the application's state machine. */
    APP_Tasks();
}
Beispiel #16
0
void SYS_Tasks ( void )
{
    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */
        DRV_TMR_Tasks(sysObj.drvTmr0);

    /* Maintain Middleware & Other Libraries */
 
    /* USB HS Driver Task Routine */ 
     DRV_USBHS_Tasks(sysObj.drvUSBObject);
     
    /* USB Device layer tasks routine */ 
    USB_DEVICE_Tasks(sysObj.usbDevObject0);

    /* Maintain HGC generated graphics state machine. */

    /* Maintain the application's state machine. */
    APP_Tasks();
}
Beispiel #17
0
void SYS_Tasks ( void )
{
    /* Maintain system services */
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
    /* Maintain the DMA system state machine. */
    SYS_DMA_Tasks(sysObj.sysDma);
    SYS_FS_Tasks();
    SYS_TMR_Tasks(sysObj.sysTmr);

    /* Maintain Device Drivers */
        DRV_TMR_Tasks(sysObj.drvTmr0);
        DRV_TMR_Tasks(sysObj.drvTmr1);
    DRV_SPI_Tasks(sysObj.spiObjectIdx1);

    /* Maintain Middleware & Other Libraries */
    /* Maintain the TCP/IP Stack*/
    TCPIP_STACK_Task(sysObj.tcpip);


    /* Maintain the application's state machine. */
    TCPIPSTACK_Tasks();
    LEDSCROLLER_Tasks();
}
Beispiel #18
0
/*******************************************************************************
  Function:
    void _SYS_Tasks ( void )

  Summary:
    Maintains state machines of system modules.
*/
static void _SYS_Tasks ( void)
{
    TIMEOUT_THREAD_0_START;
    while(1)
    {
        /* Maintain system services */
        SYS_DEVCON_Tasks(sysObj.sysDevcon);
        /* Maintain the file system state machine. */
        SYS_FS_Tasks();
        SYS_CONSOLE_Tasks(sysObj.sysConsole0);
        /* SYS_COMMAND layer tasks routine */ 
        SYS_CMD_Tasks();
        /* SYS_TMR Device layer tasks routine */ 
        SYS_TMR_Tasks(sysObj.sysTmr);

        /* Maintain Device Drivers */
        DRV_SST25VF064C_Tasks(sysObj.drvSst25vf064c0);
        DRV_SDCARD_Tasks(sysObj.drvSDCard);

        /* Maintain Middleware */
        NET_PRES_Tasks(sysObj.netPres);
        /* Maintain the TCP/IP Stack*/

        wdt_arm_thread_0();
        wdt_kick();
        if(TIMEOUT_THREAD_0(10))
        {
            TIMEOUT_THREAD_0_START;
            SYS_DEBUG(SYS_ERROR_INFO, "MON: SYS Stack size: %d\r\n",uxTaskGetStackHighWaterMark(NULL));
            size_t libc_heap_usage_total = TrackHeap_TotalUsage();
            size_t libc_heap_usage_max = TrackHeap_MaxUsage();
            SYS_DEBUG(SYS_ERROR_INFO, "MON: heap usage: %dKB (%dKB), free: %dKB\r\n", libc_heap_usage_total / 1024, libc_heap_usage_max / 1024,xPortGetFreeHeapSize() / 1024);
        }
        /* Task Delay */
        vTaskDelay(1 / portTICK_PERIOD_MS);
    }
}