Smart Remote 3 nRF52 v1.2
Introduction
API Reference
Modules
Data Structures
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
app_config.h
1
/*$$$LICENCE_NORDIC_STANDARD<2017>$$$*/
2
3
#ifndef APP_CONFIG_H
4
#define APP_CONFIG_H
5
#include "sr3_config.h"
6
7
// nRF_BLE_Services
8
//==========================================================
9
10
// Battery service
11
#define BLE_BAS_ENABLED (CONFIG_BATT_MEAS_ENABLED)
12
13
// Nordic UART Service
14
#define BLE_NUS_ENABLED (CONFIG_CLI_BLE_ENABLED)
15
16
// Immediate Alert Service
17
#define BLE_IAS_ENABLED (CONFIG_LED_SIGNAL_IMMEDIATE_ALERT || CONFIG_BUZZER_ENABLED)
18
19
// nRF_Core
20
//==========================================================
21
22
// Enable CLI commands for MPU module
23
#define NRF_MPU_CLI_CMDS (CONFIG_CLI_ENABLED)
24
25
// Module for Protecting Stack
26
#define NRF_STACK_GUARD_ENABLED (CONFIG_STACK_GUARD_ENABLED)
27
28
// Size of stack guard
29
#define NRF_STACK_GUARD_CONFIG_SIZE (CONFIG_STACK_GUARD_CONFIG_SIZE)
30
31
// nRF_Crypto
32
//==========================================================
33
34
// Cryptography library
35
#define NRF_CRYPTO_ENABLED (CONFIG_SEC_LESC_PAIRING)
36
37
// nRF_Drivers
38
//==========================================================
39
40
// PDM peripheral driver
41
#define PDM_ENABLED (CONFIG_AUDIO_ENABLED)
42
43
// PPI peripheral driver
44
#define PPI_ENABLED (CONFIG_PA_LNA_ENABLED)
45
46
// PWM peripheral driver
47
#define PWM_ENABLED (CONFIG_PWM0_ENABLED || CONFIG_PWM1_ENABLED)
48
// Enable PWM0 instance
49
#define PWM0_ENABLED (CONFIG_PWM0_ENABLED)
50
// Enable PWM1 instance
51
#define PWM1_ENABLED (CONFIG_PWM1_ENABLED)
52
53
// SAADC peripheral driver
54
#define SAADC_ENABLED (CONFIG_BATT_MEAS_ENABLED)
55
56
// TWI/TWIM peripheral driver
57
#define TWI_ENABLED (CONFIG_TWI0_ENABLED || CONFIG_TWI1_ENABLED)
58
// Enable TWI0 instance
59
#define TWI0_ENABLE (CONFIG_TWI0_ENABLED)
60
// Enable TWI1 instance
61
#define TWI1_ENABLE (CONFIG_TWI1_ENABLED)
62
63
// Enable UART
64
#define UART_ENABLED (CONFIG_LOG_UART_ENABLED || CONFIG_CLI_UART_ENABLED)
65
// Enable hardware flow control
66
#define UART_DEFAULT_CONFIG_HWFC (CONFIG_CL_UART_HWFC)
67
// Set parity
68
#define UART_DEFAULT_CONFIG_PARITY (CONFIG_CL_UART_PARITY)
69
//Set baudrate
70
#define UART_DEFAULT_CONFIG_BAUDRATE (CONFIG_CL_UART_BAUDRATE)
71
// <o> Default Baudrate
72
73
// WDT peripheral driver
74
#define WDT_ENABLED (CONFIG_WATCHDOG_ENABLED)
75
76
// RNG driver
77
#define RNG_ENABLED (CONFIG_NFC_ENABLED || CONFIG_SEC_LESC_PAIRING)
78
79
// nRF_Libraries
80
//==========================================================
81
82
// TWI transaction manager
83
#define NRF_TWI_MNGR_ENABLED (TWI_ENABLED)
84
85
// Bypass the GDB problem with multiple stack pointers backtrace
86
#define HARDFAULT_HANDLER_GDB_PSP_BACKTRACE (CONFIG_DEBUG_ENABLED)
87
88
// Dynamic memory allocator
89
#define MEM_MANAGER_ENABLED (NRF_CRYPTO_ENABLED)
90
91
// Block allocator module
92
#define NRF_BALLOC_CONFIG_DEBUG_ENABLED (CONFIG_DEBUG_ENABLED)
93
94
// ble_uart command line interface transport
95
#define NRF_CLI_BLE_UART_ENABLED (CONFIG_CLI_BLE_ENABLED)
96
97
// uart command line interface transport
98
#define NRF_CLI_UART_ENABLED (CONFIG_CLI_UART_ENABLED)
99
100
// fprintf function
101
#define NRF_FPRINTF_ENABLED (CONFIG_LOG_ENABLED || CONFIG_CLI_ENABLED)
102
103
// Linked memory allocator module
104
#define NRF_MEMOBJ_ENABLED (CONFIG_LOG_ENABLED)
105
106
// Power management module
107
#define NRF_PWR_MGMT_ENABLED (CONFIG_PWR_MGMT_ENABLED)
108
109
// Standby timeout (in seconds)
110
#define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S (CONFIG_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S)
111
112
// CPU usage monitor
113
#define NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED (CONFIG_PWR_MGMT_CPU_USAGE_MONITOR_ENABLED)
114
115
// Selected pin will be set when CPU is in sleep mode.
116
#define NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED ((CONFIG_DEBUG_PIN_ENABLED) && (IS_IO_VALID(CONFIG_IO_DBG_SLEEP)))
117
118
// Pin number
119
#define NRF_PWR_MGMT_SLEEP_DEBUG_PIN (CONFIG_IO_DBG_SLEEP)
120
121
// Power management module log level
122
#define NRF_PWR_MGMT_CONFIG_LOG_LEVEL (CONFIG_PWR_MGMT_MODULE_LOG_LEVEL)
123
124
// Enable CLI commands for Task Manager module
125
#define TASK_MANAGER_CLI_CMDS (CONFIG_CLI_ENABLED)
126
127
// Maximum number of tasks which can be created
128
#define TASK_MANAGER_CONFIG_MAX_TASKS (CONFIG_CLI_BLE_ENABLED + CONFIG_CLI_RTT_ENABLED + CONFIG_CLI_UART_ENABLED)
129
// Enable task manager
130
#define TASK_MANAGER_ENABLED (TASK_MANAGER_CONFIG_MAX_TASKS > 0)
131
// Stack size for every task
132
#define TASK_MANAGER_CONFIG_STACK_SIZE (CONFIG_TASK_MANAGER_CONFIG_STACK_SIZE)
133
// Configures stack guard
134
#define TASK_MANAGER_CONFIG_STACK_GUARD (CONFIG_TASK_MANAGER_CONFIG_STACK_GUARD)
135
136
// Command line interface.
137
#define NRF_CLI_ENABLED (CONFIG_CLI_ENABLED)
138
// Enable logger backend interface
139
#define NRF_CLI_LOG_BACKEND (CONFIG_LOG_CLI_ENABLED)
140
// Enable/disable CLI RTT module.
141
#define NRF_CLI_RTT_ENABLED (CONFIG_CLI_RTT_ENABLED)
142
143
// nRF_Log
144
//==========================================================
145
146
// Enable CLI commands for Logger module
147
#define NRF_LOG_CLI_CMDS (CONFIG_CLI_ENABLED)
148
// Logging module for nRF5 SDK
149
#define NRF_LOG_ENABLED (CONFIG_LOG_ENABLED)
150
// Default Severity level
151
#define NRF_LOG_DEFAULT_LEVEL (CONFIG_LOG_COMPILED_IN_LEVEL)
152
153
// Enable RTT as logger backend
154
#define NRF_LOG_BACKEND_RTT_ENABLED (CONFIG_LOG_RTT_ENABLED)
155
// Enable UART as logger backend
156
#define NRF_LOG_BACKEND_UART_ENABLED (CONFIG_LOG_UART_ENABLED)
157
// Set UART TX pin
158
#define NRF_LOG_BACKEND_UART_TX_PIN (CONFIG_UART_TX_PIN)
159
160
// nRF_NFC
161
//==========================================================
162
163
// Encoding the advertising data and/or scan response data which is specific for OOB pairing
164
#define NFC_BLE_OOB_ADVDATA_ENABLED (CONFIG_NFC_ENABLED)
165
// Hardware Abstraction Layer for NFC library
166
#define NFC_HAL_ENABLED (CONFIG_NFC_ENABLED)
167
// NFC NDEF Message generator module
168
#define NFC_NDEF_MSG_ENABLED (CONFIG_NFC_ENABLED)
169
// Encoding message in NFC NDEF format for Bluetooth LE pairing over NFC
170
#define NFC_BLE_PAIR_MSG_ENABLED (CONFIG_NFC_ENABLED)
171
// Common data for Connection Handover and Connection Handover Parse modules
172
#define NFC_CH_COMMON_ENABLED (CONFIG_NFC_ENABLED)
173
// Declaring record in NFC NDEF format for Bluetooth EP pairing over NFC
174
#define NFC_EP_OOB_REC_ENABLED (CONFIG_NFC_ENABLED)
175
// Declaring record in NFC NDEF format for Bluetooth LE pairing over NFC
176
#define NFC_LE_OOB_REC_ENABLED (CONFIG_NFC_ENABLED)
177
// Declaration of NFC NDEF Handover Select record
178
#define NFC_HS_REC_ENABLED (CONFIG_NFC_ENABLED)
179
180
// <h> nRF_Segger_RTT
181
//==========================================================
182
// <h> segger_rtt - SEGGER RTT
183
184
// <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Size of upstream buffer.
185
#if CONFIG_AUDIO_PROBE_ENABLED
186
#define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS (CONFIG_AUDIO_PROBE_RTT_CHANNEL_FIRST + CONFIG_AUDIO_PROBE_RTT_CHANNELS_UP)
187
#endif
188
189
// <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Size of downstream buffer.
190
#if CONFIG_AUDIO_PROBE_ENABLED
191
#define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS (CONFIG_AUDIO_PROBE_RTT_CHANNEL_FIRST + CONFIG_AUDIO_PROBE_RTT_CHANNELS_DOWN)
192
#endif
193
194
// <h> nRF_SoftDevice
195
//==========================================================
196
// Static maximum MTU size.
197
#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE (CONFIG_BLE_GATT_MAX_MTU_SIZE)
198
// Attribute Table size in bytes. The size must be a multiple of 4.
199
#define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE (CONFIG_BLE_GATTS_ATTR_TAB_SIZE)
200
// Include the Service Changed characteristic in the Attribute Table.
201
#define NRF_SDH_BLE_SERVICE_CHANGED (CONFIG_DFU_ENABLED)
202
203
#endif
/* APP_CONFIG_H */
Documentation feedback
|
Developer Zone
|
Subscribe
| Updated