Statistics
| Branch: | Tag: | Revision:

mongoose / examples / PIC32 / http_server / firmware / src / system_config / pic32mx_eth_sk2_encx24j600 / system_tasks.c @ eaef5bd1

History | View | Annotate | Download (4.09 KB)

1
/* clang-format off */
2
/*******************************************************************************
3
 System Tasks File
4

5
  File Name:
6
    system_tasks.c
7

8
  Summary:
9
    This file contains source code necessary to maintain system's polled state
10
    machines.
11

12
  Description:
13
    This file contains source code necessary to maintain system's polled state
14
    machines.  It implements the "SYS_Tasks" function that calls the individual
15
    "Tasks" functions for all polled MPLAB Harmony modules in the system.
16

17
  Remarks:
18
    This file requires access to the systemObjects global data structure that
19
    contains the object handles to all MPLAB Harmony module objects executing
20
    polled in the system.  These handles are passed into the individual module
21
    "Tasks" functions to identify the instance of the module to maintain.
22
 *******************************************************************************/
23

    
24
// DOM-IGNORE-BEGIN
25
/*******************************************************************************
26
Copyright (c) 2013-2015 released Microchip Technology Inc.  All rights reserved.
27

28
Microchip licenses to you the right to use, modify, copy and distribute
29
Software only when embedded on a Microchip microcontroller or digital signal
30
controller that is integrated into your product or third party product
31
(pursuant to the sublicense terms in the accompanying license agreement).
32

33
You should refer to the license agreement accompanying this Software for
34
additional information regarding your rights and obligations.
35

36
SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
37
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
38
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
39
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
40
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
41
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
42
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
43
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
44
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
45
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
46
 *******************************************************************************/
47
// DOM-IGNORE-END
48

    
49
// *****************************************************************************
50
// *****************************************************************************
51
// Section: Included Files
52
// *****************************************************************************
53
// *****************************************************************************
54

    
55
#include "system_config.h"
56
#include "system_definitions.h"
57

    
58

    
59
// *****************************************************************************
60
// *****************************************************************************
61
// Section: System "Tasks" Routine
62
// *****************************************************************************
63
// *****************************************************************************
64

    
65
/*******************************************************************************
66
  Function:
67
    void SYS_Tasks ( void )
68

69
  Remarks:
70
    See prototype in system/common/sys_module.h.
71
*/
72

    
73
void SYS_Tasks ( void )
74
{
75
    /* Maintain system services */
76
    /* SYS_COMMAND layer tasks routine */
77
    SYS_CMD_Tasks();
78
    SYS_CONSOLE_Tasks(sysObj.sysConsole0);
79
    SYS_DEVCON_Tasks(sysObj.sysDevcon);
80
    /* SYS_TMR Device layer tasks routine */
81
    SYS_TMR_Tasks(sysObj.sysTmr);
82

    
83
    /* Maintain Device Drivers */
84
    DRV_USART_TasksTransmit(sysObj.drvUsart0);
85
    DRV_USART_TasksReceive(sysObj.drvUsart0);
86
    DRV_USART_TasksError (sysObj.drvUsart0);
87

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

    
92
    /* Maintain the application's state machine. */
93
    APP_Tasks();
94
}
95

    
96

    
97
/*******************************************************************************
98
 End of File
99
 */
100