Statistics
| Branch: | Tag: | Revision:

mongoose / examples / PIC32 / mqtt_client / firmware / src / system_config / mx795_CC3100_e16 / system_definitions.h @ eaef5bd1

History | View | Annotate | Download (4.64 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 "driver/usart/drv_usart_static.h"
62
#include "system/ports/sys_ports.h"
63
#include "driver/spi/static/drv_spi_static.h"
64
#include "system/debug/sys_debug.h"
65

    
66

    
67

    
68
#include "driver/rtcc/drv_rtcc_static.h"
69
#include "peripheral/devcon/plib_devcon.h"
70
#include "app.h"
71

    
72

    
73
// DOM-IGNORE-BEGIN
74
#ifdef __cplusplus  // Provide C++ Compatibility
75

    
76
extern "C" {
77

    
78
#endif
79
// DOM-IGNORE-END 
80

    
81
// *****************************************************************************
82
// *****************************************************************************
83
// Section: Type Definitions
84
// *****************************************************************************
85
// *****************************************************************************
86

    
87
// *****************************************************************************
88
/* System Objects
89

90
  Summary:
91
    Structure holding the system's object handles
92

93
  Description:
94
    This structure contains the object handles for all objects in the
95
    MPLAB Harmony project's system configuration.
96

97
  Remarks:
98
    These handles are returned from the "Initialize" functions for each module
99
    and must be passed into the "Tasks" function for each module.
100
*/
101

    
102
typedef struct
103
{
104
    SYS_MODULE_OBJ  sysDevcon;
105
    SYS_MODULE_OBJ  drvUsart0;
106
    SYS_MODULE_OBJ  sysDebug;
107
    SYS_MODULE_OBJ  sysConsole0;
108

    
109
    /*** SPI Object for Index 0 ***/
110
    SYS_MODULE_OBJ                                spiObjectIdx0;
111

    
112
} SYSTEM_OBJECTS;
113

    
114

    
115
// *****************************************************************************
116
// *****************************************************************************
117
// Section: extern declarations
118
// *****************************************************************************
119
// *****************************************************************************
120

    
121
extern SYSTEM_OBJECTS sysObj;
122

    
123

    
124
//DOM-IGNORE-BEGIN
125
#ifdef __cplusplus
126
}
127
#endif
128
//DOM-IGNORE-END
129

    
130
#endif /* _SYS_DEFINITIONS_H */
131
/*******************************************************************************
132
 End of File
133
*/
134