Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.1 KB)

1
/* clang-format off */
2
/*******************************************************************************
3
  MPLAB Harmony System Configuration Header
4

5
  File Name:
6
    system_config.h
7

8
  Summary:
9
    Build-time configuration header for the system defined by this MPLAB Harmony
10
    project.
11

12
  Description:
13
    An MPLAB Project may have multiple configurations.  This file defines the
14
    build-time options for a single configuration.
15

16
  Remarks:
17
    This configuration header must not define any prototypes or data
18
    definitions (or include any files that do).  It only provides macro
19
    definitions for build-time configuration options that are not instantiated
20
    until used by another MPLAB Harmony module or application.
21

22
    Created with MPLAB Harmony Version 1.08.01
23
*******************************************************************************/
24

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

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

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

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

    
50
#ifndef _SYSTEM_CONFIG_H
51
#define _SYSTEM_CONFIG_H
52

    
53
// *****************************************************************************
54
// *****************************************************************************
55
// Section: Included Files
56
// *****************************************************************************
57
// *****************************************************************************
58
/*  This section Includes other configuration headers necessary to completely
59
    define this configuration.
60
*/
61

    
62
// DOM-IGNORE-BEGIN
63
#ifdef __cplusplus  // Provide C++ Compatibility
64

    
65
extern "C" {
66

    
67
#endif
68
// DOM-IGNORE-END
69

    
70
// *****************************************************************************
71
// *****************************************************************************
72
// Section: System Service Configuration
73
// *****************************************************************************
74
// *****************************************************************************
75
// *****************************************************************************
76
/* Common System Service Configuration Options
77
*/
78
#define SYS_VERSION_STR           "1.08.01"
79
#define SYS_VERSION               10801
80

    
81
// *****************************************************************************
82
/* Clock System Service Configuration Options
83
*/
84
#define SYS_CLK_FREQ                        80000000ul
85
#define SYS_CLK_BUS_PERIPHERAL_1            80000000ul
86
#define SYS_CLK_UPLL_BEFORE_DIV2_FREQ       48000000ul
87
#define SYS_CLK_CONFIG_PRIMARY_XTAL         8000000ul
88
#define SYS_CLK_CONFIG_SECONDARY_XTAL       0ul
89
   
90
/*** Interrupt System Service Configuration ***/
91
#define SYS_INT                     true
92

    
93
/*** Ports System Service Configuration ***/
94
#define SYS_PORT_AD1PCFG        ~0xffff
95
#define SYS_PORT_CNPUE          0x0
96
#define SYS_PORT_CNEN           0x200000
97

    
98
#define SYS_PORT_D_TRIS         0xbfef
99
#define SYS_PORT_D_LAT          0x0
100
#define SYS_PORT_D_ODC          0x0
101
#define SYS_CONSOLE_DEVICE_MAX_INSTANCES        1
102
#define SYS_CONSOLE_INSTANCES_NUMBER            1
103

    
104

    
105
/*** Debug System Service Configuration ***/
106
#define SYS_DEBUG_ENABLE
107
#define DEBUG_PRINT_BUFFER_SIZE       8192
108
#define SYS_DEBUG_BUFFER_DMA_READY
109
#define SYS_DEBUG_USE_CONSOLE
110

    
111
// *****************************************************************************
112
// *****************************************************************************
113
// Section: Driver Configuration
114
// *****************************************************************************
115
// *****************************************************************************
116
// *****************************************************************************
117
/* USART Driver Configuration Options
118
*/
119
#define DRV_USART_INSTANCES_NUMBER                  1
120
#define DRV_USART_CLIENTS_NUMBER                    1
121
#define DRV_USART_INTERRUPT_MODE                    true
122
#define DRV_USART_BYTE_MODEL_SUPPORT                true
123
#define DRV_USART_READ_WRITE_MODEL_SUPPORT          false
124
#define DRV_USART_BUFFER_QUEUE_SUPPORT              false
125
#define DRV_USART_SUPPORT_TRANSMIT_DMA              false
126
#define DRV_USART_SUPPORT_RECEIVE_DMA               false
127

    
128
/*** SPI Driver Configuration ***/
129
#define DRV_SPI_NUMBER_OF_MODULES                4
130
/*** Driver Compilation and static configuration options. ***/
131
/*** Select SPI compilation units.***/
132
#define DRV_SPI_POLLED                                 1
133
#define DRV_SPI_ISR                                 0
134
#define DRV_SPI_MASTER                                 1
135
#define DRV_SPI_SLAVE                                 0
136
#define DRV_SPI_RM                                         1
137
#define DRV_SPI_EBM                                 0
138
#define DRV_SPI_8BIT                                 1
139
#define DRV_SPI_16BIT                                 0
140
#define DRV_SPI_32BIT                                 0
141
#define DRV_SPI_DMA                                 0
142

    
143
/*** SPI Driver Static Allocation Options ***/
144
#define DRV_SPI_INSTANCES_NUMBER                 1
145
#define DRV_SPI_CLIENTS_NUMBER                         1
146
#define DRV_SPI_ELEMENTS_PER_QUEUE                 10
147

    
148
// *****************************************************************************
149
// *****************************************************************************
150
// Section: Middleware & Other Library Configuration
151
// *****************************************************************************
152
// *****************************************************************************
153

    
154

    
155

    
156
// *****************************************************************************
157
// *****************************************************************************
158
// Section: Application Configuration
159
// *****************************************************************************
160
// *****************************************************************************
161

    
162
/*** Application Instance 0 Configuration ***/
163

    
164
//DOM-IGNORE-BEGIN
165
#ifdef __cplusplus
166
}
167
#endif
168
//DOM-IGNORE-END
169

    
170

    
171
#endif // _SYSTEM_CONFIG_H
172
/*******************************************************************************
173
 End of File
174
*/
175