Statistics
| Branch: | Tag: | Revision:

mongoose / examples / PIC32 / http_server / firmware / src / system_config / pic32mx_eth_sk2_encx24j600 / system_definitions.h @ eaef5bd1

History | View | Annotate | Download (4.91 KB)

1
/* clang-format off */
2
/*******************************************************************************
3
  System Definitions
4

5
  File Name:
6
    system_definitions.h
7

8
  Summary:
9
    MPLAB Harmony project system definitions.
10

11
  Description:
12
    This file contains the system-wide prototypes and definitions for an MPLAB
13
    Harmony project.
14
 *******************************************************************************/
15

    
16
//DOM-IGNORE-BEGIN
17
/*******************************************************************************
18
Copyright (c) 2013-2014 released Microchip Technology Inc.  All rights reserved.
19

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

25
You should refer to the license agreement accompanying this Software for
26
additional information regarding your rights and obligations.
27

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

    
41
#ifndef _SYS_DEFINITIONS_H
42
#define _SYS_DEFINITIONS_H
43

    
44

    
45
// *****************************************************************************
46
// *****************************************************************************
47
// Section: Included Files
48
// *****************************************************************************
49
// *****************************************************************************
50

    
51
#include <stdint.h>
52
#include <stddef.h>
53
#include <stdbool.h>
54
#include "system/common/sys_common.h"
55
#include "system/common/sys_module.h"
56
#include "system/clk/sys_clk.h"
57
#include "system/clk/sys_clk_static.h"
58
#include "system/devcon/sys_devcon.h"
59
#include "system/int/sys_int.h"
60
#include "system/console/sys_console.h"
61
#include "system/random/sys_random.h"
62
#include "system/tmr/sys_tmr.h"
63
#include "system/reset/sys_reset.h"
64
#include "driver/tmr/drv_tmr.h"
65
#include "driver/usart/drv_usart.h"
66
#include "system/ports/sys_ports.h"
67
#include "driver/spi/drv_spi.h"
68
#include "driver/encx24j600/drv_encx24j600.h"
69
#include "system/debug/sys_debug.h"
70
#include "system/command/sys_command.h"
71

    
72

    
73

    
74
#include "tcpip/tcpip.h"
75
#include "driver/ethmac/drv_ethmac.h"
76
#include "app.h"
77

    
78

    
79
// DOM-IGNORE-BEGIN
80
#ifdef __cplusplus  // Provide C++ Compatibility
81

    
82
extern "C" {
83

    
84
#endif
85
// DOM-IGNORE-END
86

    
87
// *****************************************************************************
88
// *****************************************************************************
89
// Section: Type Definitions
90
// *****************************************************************************
91
// *****************************************************************************
92

    
93
// *****************************************************************************
94
/* System Objects
95

96
  Summary:
97
    Structure holding the system's object handles
98

99
  Description:
100
    This structure contains the object handles for all objects in the
101
    MPLAB Harmony project's system configuration.
102

103
  Remarks:
104
    These handles are returned from the "Initialize" functions for each module
105
    and must be passed into the "Tasks" function for each module.
106
*/
107

    
108
typedef struct
109
{
110
    SYS_MODULE_OBJ  sysDevcon;
111
    SYS_MODULE_OBJ  sysTmr;
112
    SYS_MODULE_OBJ  drvTmr0;
113
    SYS_MODULE_OBJ  drvUsart0;
114
    SYS_MODULE_OBJ  sysDebug;
115
    SYS_MODULE_OBJ  sysConsole0;
116

    
117
    /*** SPI Object for Index 0 ***/
118
    SYS_MODULE_OBJ                                spiObjectIdx0;
119
    SYS_MODULE_OBJ  tcpip;
120

    
121
} SYSTEM_OBJECTS;
122

    
123

    
124
// *****************************************************************************
125
// *****************************************************************************
126
// Section: extern declarations
127
// *****************************************************************************
128
// *****************************************************************************
129

    
130
extern SYSTEM_OBJECTS sysObj;
131

    
132

    
133
//DOM-IGNORE-BEGIN
134
#ifdef __cplusplus
135
}
136
#endif
137
//DOM-IGNORE-END
138

    
139
#endif /* _SYS_DEFINITIONS_H */
140
/*******************************************************************************
141
 End of File
142
*/
143