Mouse code for the MacroRat
mbed-dev/targets/TARGET_NORDIC/TARGET_NRF5_SDK13/TARGET_MCU_NRF52840/sdk/sdk_config.h@46:b156ef445742, 2017-06-03 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sat Jun 03 00:22:44 2017 +0000
- Revision:
- 46:b156ef445742
- Parent:
- 18:6a4db94011d3
Final code for internal battlebot competition.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | |
sahilmgandhi | 18:6a4db94011d3 | 2 | |
sahilmgandhi | 18:6a4db94011d3 | 3 | #ifndef SDK_CONFIG_H |
sahilmgandhi | 18:6a4db94011d3 | 4 | #define SDK_CONFIG_H |
sahilmgandhi | 18:6a4db94011d3 | 5 | // <<< Use Configuration Wizard in Context Menu >>>\n |
sahilmgandhi | 18:6a4db94011d3 | 6 | #ifdef USE_APP_CONFIG |
sahilmgandhi | 18:6a4db94011d3 | 7 | #include "app_config.h" |
sahilmgandhi | 18:6a4db94011d3 | 8 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 9 | // <h> Application |
sahilmgandhi | 18:6a4db94011d3 | 10 | |
sahilmgandhi | 18:6a4db94011d3 | 11 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 12 | // <o> NRF_BLE_CENTRAL_LINK_COUNT - Number of central links |
sahilmgandhi | 18:6a4db94011d3 | 13 | #ifndef NRF_BLE_CENTRAL_LINK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 14 | #define NRF_BLE_CENTRAL_LINK_COUNT 0 |
sahilmgandhi | 18:6a4db94011d3 | 15 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 16 | |
sahilmgandhi | 18:6a4db94011d3 | 17 | // <o> NRF_BLE_CENTRAL_LINK_COUNT - Number of central links |
sahilmgandhi | 18:6a4db94011d3 | 18 | #ifndef NRF_BLE_CENTRAL_LINK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 19 | #define NRF_BLE_CENTRAL_LINK_COUNT 0 |
sahilmgandhi | 18:6a4db94011d3 | 20 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 21 | |
sahilmgandhi | 18:6a4db94011d3 | 22 | // <o> NRF_BLE_PERIPHERAL_LINK_COUNT - Number of peripheral links |
sahilmgandhi | 18:6a4db94011d3 | 23 | #ifndef NRF_BLE_PERIPHERAL_LINK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 24 | #define NRF_BLE_PERIPHERAL_LINK_COUNT 1 |
sahilmgandhi | 18:6a4db94011d3 | 25 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 26 | |
sahilmgandhi | 18:6a4db94011d3 | 27 | // <o> NRF_BLE_PERIPHERAL_LINK_COUNT - Number of peripheral links |
sahilmgandhi | 18:6a4db94011d3 | 28 | #ifndef NRF_BLE_PERIPHERAL_LINK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 29 | #define NRF_BLE_PERIPHERAL_LINK_COUNT 1 |
sahilmgandhi | 18:6a4db94011d3 | 30 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 31 | |
sahilmgandhi | 18:6a4db94011d3 | 32 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 33 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 34 | |
sahilmgandhi | 18:6a4db94011d3 | 35 | // <h> nRF_BLE |
sahilmgandhi | 18:6a4db94011d3 | 36 | |
sahilmgandhi | 18:6a4db94011d3 | 37 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 38 | // <q> BLE_ADVERTISING_ENABLED - ble_advertising - Advertising module |
sahilmgandhi | 18:6a4db94011d3 | 39 | |
sahilmgandhi | 18:6a4db94011d3 | 40 | |
sahilmgandhi | 18:6a4db94011d3 | 41 | #ifndef BLE_ADVERTISING_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 42 | #define BLE_ADVERTISING_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 43 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 44 | |
sahilmgandhi | 18:6a4db94011d3 | 45 | // <q> BLE_DTM_ENABLED - ble_dtm - Module for testing RF/PHY using DTM commands |
sahilmgandhi | 18:6a4db94011d3 | 46 | |
sahilmgandhi | 18:6a4db94011d3 | 47 | |
sahilmgandhi | 18:6a4db94011d3 | 48 | #ifndef BLE_DTM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 49 | #define BLE_DTM_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 50 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 51 | |
sahilmgandhi | 18:6a4db94011d3 | 52 | // <q> BLE_RACP_ENABLED - ble_racp - Record Access Control Point library |
sahilmgandhi | 18:6a4db94011d3 | 53 | |
sahilmgandhi | 18:6a4db94011d3 | 54 | |
sahilmgandhi | 18:6a4db94011d3 | 55 | #ifndef BLE_RACP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 56 | #define BLE_RACP_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 57 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 58 | |
sahilmgandhi | 18:6a4db94011d3 | 59 | // <e> NRF_BLE_GATT_ENABLED - nrf_ble_gatt - GATT module |
sahilmgandhi | 18:6a4db94011d3 | 60 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 61 | #ifndef NRF_BLE_GATT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 62 | #define NRF_BLE_GATT_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 63 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 64 | #if NRF_BLE_GATT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 65 | // <o> NRF_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size that is passed to the @ref sd_ble_enable function. |
sahilmgandhi | 18:6a4db94011d3 | 66 | #ifndef NRF_BLE_GATT_MAX_MTU_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 67 | #define NRF_BLE_GATT_MAX_MTU_SIZE 158 |
sahilmgandhi | 18:6a4db94011d3 | 68 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 69 | |
sahilmgandhi | 18:6a4db94011d3 | 70 | #endif //NRF_BLE_GATT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 71 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 72 | |
sahilmgandhi | 18:6a4db94011d3 | 73 | // <q> NRF_BLE_QWR_ENABLED - nrf_ble_qwr - Queued writes support module (prepare/execute write) |
sahilmgandhi | 18:6a4db94011d3 | 74 | |
sahilmgandhi | 18:6a4db94011d3 | 75 | |
sahilmgandhi | 18:6a4db94011d3 | 76 | #ifndef NRF_BLE_QWR_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 77 | #define NRF_BLE_QWR_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 78 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 79 | |
sahilmgandhi | 18:6a4db94011d3 | 80 | // <q> PEER_MANAGER_ENABLED - peer_manager - Peer Manager |
sahilmgandhi | 18:6a4db94011d3 | 81 | |
sahilmgandhi | 18:6a4db94011d3 | 82 | |
sahilmgandhi | 18:6a4db94011d3 | 83 | #ifndef PEER_MANAGER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 84 | #define PEER_MANAGER_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 85 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 86 | |
sahilmgandhi | 18:6a4db94011d3 | 87 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 88 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 89 | |
sahilmgandhi | 18:6a4db94011d3 | 90 | // <h> nRF_Drivers |
sahilmgandhi | 18:6a4db94011d3 | 91 | |
sahilmgandhi | 18:6a4db94011d3 | 92 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 93 | // <e> APP_USBD_ENABLED - app_usbd - USB Device library |
sahilmgandhi | 18:6a4db94011d3 | 94 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 95 | #ifndef APP_USBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 96 | #define APP_USBD_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 97 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 98 | #if APP_USBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 99 | // <s> APP_USBD_VID - Vendor ID |
sahilmgandhi | 18:6a4db94011d3 | 100 | |
sahilmgandhi | 18:6a4db94011d3 | 101 | // <i> Vendor ID ordered from USB IF: http://www.usb.org/developers/vendor/ |
sahilmgandhi | 18:6a4db94011d3 | 102 | #ifndef APP_USBD_VID |
sahilmgandhi | 18:6a4db94011d3 | 103 | #define APP_USBD_VID 0x1915 |
sahilmgandhi | 18:6a4db94011d3 | 104 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 105 | |
sahilmgandhi | 18:6a4db94011d3 | 106 | // <s> APP_USBD_PID - Product ID |
sahilmgandhi | 18:6a4db94011d3 | 107 | |
sahilmgandhi | 18:6a4db94011d3 | 108 | // <i> Selected Product ID |
sahilmgandhi | 18:6a4db94011d3 | 109 | #ifndef APP_USBD_PID |
sahilmgandhi | 18:6a4db94011d3 | 110 | #define APP_USBD_PID 0x520C |
sahilmgandhi | 18:6a4db94011d3 | 111 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 112 | |
sahilmgandhi | 18:6a4db94011d3 | 113 | // <o> APP_USBD_DEVICE_VER_MAJOR - Device version, major part <0-99> |
sahilmgandhi | 18:6a4db94011d3 | 114 | |
sahilmgandhi | 18:6a4db94011d3 | 115 | |
sahilmgandhi | 18:6a4db94011d3 | 116 | // <i> Device version, will be converted automatically to BCD notation. Use just decimal values. |
sahilmgandhi | 18:6a4db94011d3 | 117 | |
sahilmgandhi | 18:6a4db94011d3 | 118 | #ifndef APP_USBD_DEVICE_VER_MAJOR |
sahilmgandhi | 18:6a4db94011d3 | 119 | #define APP_USBD_DEVICE_VER_MAJOR 1 |
sahilmgandhi | 18:6a4db94011d3 | 120 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 121 | |
sahilmgandhi | 18:6a4db94011d3 | 122 | // <o> APP_USBD_DEVICE_VER_MINOR - Device version, minor part <0-99> |
sahilmgandhi | 18:6a4db94011d3 | 123 | |
sahilmgandhi | 18:6a4db94011d3 | 124 | |
sahilmgandhi | 18:6a4db94011d3 | 125 | // <i> Device version, will be converted automatically to BCD notation. Use just decimal values. |
sahilmgandhi | 18:6a4db94011d3 | 126 | |
sahilmgandhi | 18:6a4db94011d3 | 127 | #ifndef APP_USBD_DEVICE_VER_MINOR |
sahilmgandhi | 18:6a4db94011d3 | 128 | #define APP_USBD_DEVICE_VER_MINOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 129 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 130 | |
sahilmgandhi | 18:6a4db94011d3 | 131 | #endif //APP_USBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 132 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 133 | |
sahilmgandhi | 18:6a4db94011d3 | 134 | // <e> CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 135 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 136 | #ifndef CLOCK_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 137 | #define CLOCK_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 138 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 139 | #if CLOCK_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 140 | // <o> CLOCK_CONFIG_XTAL_FREQ - HF XTAL Frequency |
sahilmgandhi | 18:6a4db94011d3 | 141 | |
sahilmgandhi | 18:6a4db94011d3 | 142 | // <0=> Default (64 MHz) |
sahilmgandhi | 18:6a4db94011d3 | 143 | |
sahilmgandhi | 18:6a4db94011d3 | 144 | #ifndef CLOCK_CONFIG_XTAL_FREQ |
sahilmgandhi | 18:6a4db94011d3 | 145 | #define CLOCK_CONFIG_XTAL_FREQ 0 |
sahilmgandhi | 18:6a4db94011d3 | 146 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 147 | |
sahilmgandhi | 18:6a4db94011d3 | 148 | // <o> CLOCK_CONFIG_LF_SRC - LF Clock Source |
sahilmgandhi | 18:6a4db94011d3 | 149 | |
sahilmgandhi | 18:6a4db94011d3 | 150 | // <0=> RC |
sahilmgandhi | 18:6a4db94011d3 | 151 | // <1=> XTAL |
sahilmgandhi | 18:6a4db94011d3 | 152 | // <2=> Synth |
sahilmgandhi | 18:6a4db94011d3 | 153 | |
sahilmgandhi | 18:6a4db94011d3 | 154 | #ifndef CLOCK_CONFIG_LF_SRC |
sahilmgandhi | 18:6a4db94011d3 | 155 | #define CLOCK_CONFIG_LF_SRC 1 |
sahilmgandhi | 18:6a4db94011d3 | 156 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 157 | |
sahilmgandhi | 18:6a4db94011d3 | 158 | // <o> CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 159 | |
sahilmgandhi | 18:6a4db94011d3 | 160 | |
sahilmgandhi | 18:6a4db94011d3 | 161 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 162 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 163 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 164 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 165 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 166 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 167 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 168 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 169 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 170 | |
sahilmgandhi | 18:6a4db94011d3 | 171 | #ifndef CLOCK_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 172 | #define CLOCK_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 173 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 174 | |
sahilmgandhi | 18:6a4db94011d3 | 175 | // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 176 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 177 | #ifndef CLOCK_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 178 | #define CLOCK_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 179 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 180 | #if CLOCK_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 181 | // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 182 | |
sahilmgandhi | 18:6a4db94011d3 | 183 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 184 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 185 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 186 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 187 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 188 | |
sahilmgandhi | 18:6a4db94011d3 | 189 | #ifndef CLOCK_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 190 | #define CLOCK_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 191 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 192 | |
sahilmgandhi | 18:6a4db94011d3 | 193 | // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 194 | |
sahilmgandhi | 18:6a4db94011d3 | 195 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 196 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 197 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 198 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 199 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 200 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 201 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 202 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 203 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 204 | |
sahilmgandhi | 18:6a4db94011d3 | 205 | #ifndef CLOCK_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 206 | #define CLOCK_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 207 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 208 | |
sahilmgandhi | 18:6a4db94011d3 | 209 | // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 210 | |
sahilmgandhi | 18:6a4db94011d3 | 211 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 212 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 213 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 214 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 215 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 216 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 217 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 218 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 219 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 220 | |
sahilmgandhi | 18:6a4db94011d3 | 221 | #ifndef CLOCK_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 222 | #define CLOCK_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 223 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 224 | |
sahilmgandhi | 18:6a4db94011d3 | 225 | #endif //CLOCK_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 226 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 227 | |
sahilmgandhi | 18:6a4db94011d3 | 228 | #endif //CLOCK_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 229 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 230 | |
sahilmgandhi | 18:6a4db94011d3 | 231 | // <e> COMP_ENABLED - nrf_drv_comp - COMP peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 232 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 233 | #ifndef COMP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 234 | #define COMP_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 235 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 236 | #if COMP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 237 | // <o> COMP_CONFIG_REF - Reference voltage |
sahilmgandhi | 18:6a4db94011d3 | 238 | |
sahilmgandhi | 18:6a4db94011d3 | 239 | // <0=> Internal 1.2V |
sahilmgandhi | 18:6a4db94011d3 | 240 | // <1=> Internal 1.8V |
sahilmgandhi | 18:6a4db94011d3 | 241 | // <2=> Internal 2.4V |
sahilmgandhi | 18:6a4db94011d3 | 242 | // <4=> VDD |
sahilmgandhi | 18:6a4db94011d3 | 243 | // <7=> ARef |
sahilmgandhi | 18:6a4db94011d3 | 244 | |
sahilmgandhi | 18:6a4db94011d3 | 245 | #ifndef COMP_CONFIG_REF |
sahilmgandhi | 18:6a4db94011d3 | 246 | #define COMP_CONFIG_REF 1 |
sahilmgandhi | 18:6a4db94011d3 | 247 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 248 | |
sahilmgandhi | 18:6a4db94011d3 | 249 | // <o> COMP_CONFIG_MAIN_MODE - Main mode |
sahilmgandhi | 18:6a4db94011d3 | 250 | |
sahilmgandhi | 18:6a4db94011d3 | 251 | // <0=> Single ended |
sahilmgandhi | 18:6a4db94011d3 | 252 | // <1=> Differential |
sahilmgandhi | 18:6a4db94011d3 | 253 | |
sahilmgandhi | 18:6a4db94011d3 | 254 | #ifndef COMP_CONFIG_MAIN_MODE |
sahilmgandhi | 18:6a4db94011d3 | 255 | #define COMP_CONFIG_MAIN_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 256 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 257 | |
sahilmgandhi | 18:6a4db94011d3 | 258 | // <o> COMP_CONFIG_SPEED_MODE - Speed mode |
sahilmgandhi | 18:6a4db94011d3 | 259 | |
sahilmgandhi | 18:6a4db94011d3 | 260 | // <0=> Low power |
sahilmgandhi | 18:6a4db94011d3 | 261 | // <1=> Normal |
sahilmgandhi | 18:6a4db94011d3 | 262 | // <2=> High speed |
sahilmgandhi | 18:6a4db94011d3 | 263 | |
sahilmgandhi | 18:6a4db94011d3 | 264 | #ifndef COMP_CONFIG_SPEED_MODE |
sahilmgandhi | 18:6a4db94011d3 | 265 | #define COMP_CONFIG_SPEED_MODE 2 |
sahilmgandhi | 18:6a4db94011d3 | 266 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 267 | |
sahilmgandhi | 18:6a4db94011d3 | 268 | // <o> COMP_CONFIG_HYST - Hystheresis |
sahilmgandhi | 18:6a4db94011d3 | 269 | |
sahilmgandhi | 18:6a4db94011d3 | 270 | // <0=> No |
sahilmgandhi | 18:6a4db94011d3 | 271 | // <1=> 50mV |
sahilmgandhi | 18:6a4db94011d3 | 272 | |
sahilmgandhi | 18:6a4db94011d3 | 273 | #ifndef COMP_CONFIG_HYST |
sahilmgandhi | 18:6a4db94011d3 | 274 | #define COMP_CONFIG_HYST 0 |
sahilmgandhi | 18:6a4db94011d3 | 275 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 276 | |
sahilmgandhi | 18:6a4db94011d3 | 277 | // <o> COMP_CONFIG_ISOURCE - Current Source |
sahilmgandhi | 18:6a4db94011d3 | 278 | |
sahilmgandhi | 18:6a4db94011d3 | 279 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 280 | // <1=> 2.5 uA |
sahilmgandhi | 18:6a4db94011d3 | 281 | // <2=> 5 uA |
sahilmgandhi | 18:6a4db94011d3 | 282 | // <3=> 10 uA |
sahilmgandhi | 18:6a4db94011d3 | 283 | |
sahilmgandhi | 18:6a4db94011d3 | 284 | #ifndef COMP_CONFIG_ISOURCE |
sahilmgandhi | 18:6a4db94011d3 | 285 | #define COMP_CONFIG_ISOURCE 0 |
sahilmgandhi | 18:6a4db94011d3 | 286 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 287 | |
sahilmgandhi | 18:6a4db94011d3 | 288 | // <o> COMP_CONFIG_INPUT - Analog input |
sahilmgandhi | 18:6a4db94011d3 | 289 | |
sahilmgandhi | 18:6a4db94011d3 | 290 | // <0=> 0 |
sahilmgandhi | 18:6a4db94011d3 | 291 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 292 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 293 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 294 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 295 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 296 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 297 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 298 | |
sahilmgandhi | 18:6a4db94011d3 | 299 | #ifndef COMP_CONFIG_INPUT |
sahilmgandhi | 18:6a4db94011d3 | 300 | #define COMP_CONFIG_INPUT 0 |
sahilmgandhi | 18:6a4db94011d3 | 301 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 302 | |
sahilmgandhi | 18:6a4db94011d3 | 303 | // <o> COMP_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 304 | |
sahilmgandhi | 18:6a4db94011d3 | 305 | |
sahilmgandhi | 18:6a4db94011d3 | 306 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 307 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 308 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 309 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 310 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 311 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 312 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 313 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 314 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 315 | |
sahilmgandhi | 18:6a4db94011d3 | 316 | #ifndef COMP_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 317 | #define COMP_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 318 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 319 | |
sahilmgandhi | 18:6a4db94011d3 | 320 | // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 321 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 322 | #ifndef COMP_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 323 | #define COMP_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 324 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 325 | #if COMP_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 326 | // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 327 | |
sahilmgandhi | 18:6a4db94011d3 | 328 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 329 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 330 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 331 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 332 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 333 | |
sahilmgandhi | 18:6a4db94011d3 | 334 | #ifndef COMP_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 335 | #define COMP_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 336 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 337 | |
sahilmgandhi | 18:6a4db94011d3 | 338 | // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 339 | |
sahilmgandhi | 18:6a4db94011d3 | 340 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 341 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 342 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 343 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 344 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 345 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 346 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 347 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 348 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 349 | |
sahilmgandhi | 18:6a4db94011d3 | 350 | #ifndef COMP_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 351 | #define COMP_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 352 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 353 | |
sahilmgandhi | 18:6a4db94011d3 | 354 | // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 355 | |
sahilmgandhi | 18:6a4db94011d3 | 356 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 357 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 358 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 359 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 360 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 361 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 362 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 363 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 364 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 365 | |
sahilmgandhi | 18:6a4db94011d3 | 366 | #ifndef COMP_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 367 | #define COMP_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 368 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 369 | |
sahilmgandhi | 18:6a4db94011d3 | 370 | #endif //COMP_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 371 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 372 | |
sahilmgandhi | 18:6a4db94011d3 | 373 | #endif //COMP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 374 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 375 | |
sahilmgandhi | 18:6a4db94011d3 | 376 | // <e> EGU_ENABLED - nrf_drv_swi - SWI(EGU) peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 377 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 378 | #ifndef EGU_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 379 | #define EGU_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 380 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 381 | #if EGU_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 382 | // <e> SWI_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 383 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 384 | #ifndef SWI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 385 | #define SWI_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 386 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 387 | #if SWI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 388 | // <o> SWI_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 389 | |
sahilmgandhi | 18:6a4db94011d3 | 390 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 391 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 392 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 393 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 394 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 395 | |
sahilmgandhi | 18:6a4db94011d3 | 396 | #ifndef SWI_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 397 | #define SWI_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 398 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 399 | |
sahilmgandhi | 18:6a4db94011d3 | 400 | // <o> SWI_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 401 | |
sahilmgandhi | 18:6a4db94011d3 | 402 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 403 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 404 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 405 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 406 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 407 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 408 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 409 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 410 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 411 | |
sahilmgandhi | 18:6a4db94011d3 | 412 | #ifndef SWI_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 413 | #define SWI_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 414 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 415 | |
sahilmgandhi | 18:6a4db94011d3 | 416 | // <o> SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 417 | |
sahilmgandhi | 18:6a4db94011d3 | 418 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 419 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 420 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 421 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 422 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 423 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 424 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 425 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 426 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 427 | |
sahilmgandhi | 18:6a4db94011d3 | 428 | #ifndef SWI_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 429 | #define SWI_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 430 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 431 | |
sahilmgandhi | 18:6a4db94011d3 | 432 | #endif //SWI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 433 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 434 | |
sahilmgandhi | 18:6a4db94011d3 | 435 | #endif //EGU_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 436 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 437 | |
sahilmgandhi | 18:6a4db94011d3 | 438 | // <e> GPIOTE_ENABLED - nrf_drv_gpiote - GPIOTE peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 439 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 440 | #ifndef GPIOTE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 441 | #define GPIOTE_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 442 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 443 | #if GPIOTE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 444 | // <o> GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins |
sahilmgandhi | 18:6a4db94011d3 | 445 | #ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS |
sahilmgandhi | 18:6a4db94011d3 | 446 | #define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 4 |
sahilmgandhi | 18:6a4db94011d3 | 447 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 448 | |
sahilmgandhi | 18:6a4db94011d3 | 449 | // <o> GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 450 | |
sahilmgandhi | 18:6a4db94011d3 | 451 | |
sahilmgandhi | 18:6a4db94011d3 | 452 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 453 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 454 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 455 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 456 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 457 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 458 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 459 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 460 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 461 | |
sahilmgandhi | 18:6a4db94011d3 | 462 | #ifndef GPIOTE_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 463 | #define GPIOTE_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 464 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 465 | |
sahilmgandhi | 18:6a4db94011d3 | 466 | // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 467 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 468 | #ifndef GPIOTE_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 469 | #define GPIOTE_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 470 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 471 | #if GPIOTE_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 472 | // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 473 | |
sahilmgandhi | 18:6a4db94011d3 | 474 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 475 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 476 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 477 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 478 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 479 | |
sahilmgandhi | 18:6a4db94011d3 | 480 | #ifndef GPIOTE_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 481 | #define GPIOTE_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 482 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 483 | |
sahilmgandhi | 18:6a4db94011d3 | 484 | // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 485 | |
sahilmgandhi | 18:6a4db94011d3 | 486 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 487 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 488 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 489 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 490 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 491 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 492 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 493 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 494 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 495 | |
sahilmgandhi | 18:6a4db94011d3 | 496 | #ifndef GPIOTE_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 497 | #define GPIOTE_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 498 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 499 | |
sahilmgandhi | 18:6a4db94011d3 | 500 | // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 501 | |
sahilmgandhi | 18:6a4db94011d3 | 502 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 503 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 504 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 505 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 506 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 507 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 508 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 509 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 510 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 511 | |
sahilmgandhi | 18:6a4db94011d3 | 512 | #ifndef GPIOTE_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 513 | #define GPIOTE_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 514 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 515 | |
sahilmgandhi | 18:6a4db94011d3 | 516 | #endif //GPIOTE_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 517 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 518 | |
sahilmgandhi | 18:6a4db94011d3 | 519 | #endif //GPIOTE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 520 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 521 | |
sahilmgandhi | 18:6a4db94011d3 | 522 | // <e> I2S_ENABLED - nrf_drv_i2s - I2S peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 523 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 524 | #ifndef I2S_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 525 | #define I2S_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 526 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 527 | #if I2S_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 528 | // <o> I2S_CONFIG_SCK_PIN - SCK pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 529 | |
sahilmgandhi | 18:6a4db94011d3 | 530 | |
sahilmgandhi | 18:6a4db94011d3 | 531 | #ifndef I2S_CONFIG_SCK_PIN |
sahilmgandhi | 18:6a4db94011d3 | 532 | #define I2S_CONFIG_SCK_PIN 31 |
sahilmgandhi | 18:6a4db94011d3 | 533 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 534 | |
sahilmgandhi | 18:6a4db94011d3 | 535 | // <o> I2S_CONFIG_LRCK_PIN - LRCK pin <1-31> |
sahilmgandhi | 18:6a4db94011d3 | 536 | |
sahilmgandhi | 18:6a4db94011d3 | 537 | |
sahilmgandhi | 18:6a4db94011d3 | 538 | #ifndef I2S_CONFIG_LRCK_PIN |
sahilmgandhi | 18:6a4db94011d3 | 539 | #define I2S_CONFIG_LRCK_PIN 30 |
sahilmgandhi | 18:6a4db94011d3 | 540 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 541 | |
sahilmgandhi | 18:6a4db94011d3 | 542 | // <o> I2S_CONFIG_MCK_PIN - MCK pin |
sahilmgandhi | 18:6a4db94011d3 | 543 | #ifndef I2S_CONFIG_MCK_PIN |
sahilmgandhi | 18:6a4db94011d3 | 544 | #define I2S_CONFIG_MCK_PIN 255 |
sahilmgandhi | 18:6a4db94011d3 | 545 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 546 | |
sahilmgandhi | 18:6a4db94011d3 | 547 | // <o> I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 548 | |
sahilmgandhi | 18:6a4db94011d3 | 549 | |
sahilmgandhi | 18:6a4db94011d3 | 550 | #ifndef I2S_CONFIG_SDOUT_PIN |
sahilmgandhi | 18:6a4db94011d3 | 551 | #define I2S_CONFIG_SDOUT_PIN 29 |
sahilmgandhi | 18:6a4db94011d3 | 552 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 553 | |
sahilmgandhi | 18:6a4db94011d3 | 554 | // <o> I2S_CONFIG_SDIN_PIN - SDIN pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 555 | |
sahilmgandhi | 18:6a4db94011d3 | 556 | |
sahilmgandhi | 18:6a4db94011d3 | 557 | #ifndef I2S_CONFIG_SDIN_PIN |
sahilmgandhi | 18:6a4db94011d3 | 558 | #define I2S_CONFIG_SDIN_PIN 28 |
sahilmgandhi | 18:6a4db94011d3 | 559 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 560 | |
sahilmgandhi | 18:6a4db94011d3 | 561 | // <o> I2S_CONFIG_MASTER - Mode |
sahilmgandhi | 18:6a4db94011d3 | 562 | |
sahilmgandhi | 18:6a4db94011d3 | 563 | // <0=> Master |
sahilmgandhi | 18:6a4db94011d3 | 564 | // <1=> Slave |
sahilmgandhi | 18:6a4db94011d3 | 565 | |
sahilmgandhi | 18:6a4db94011d3 | 566 | #ifndef I2S_CONFIG_MASTER |
sahilmgandhi | 18:6a4db94011d3 | 567 | #define I2S_CONFIG_MASTER 0 |
sahilmgandhi | 18:6a4db94011d3 | 568 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 569 | |
sahilmgandhi | 18:6a4db94011d3 | 570 | // <o> I2S_CONFIG_FORMAT - Format |
sahilmgandhi | 18:6a4db94011d3 | 571 | |
sahilmgandhi | 18:6a4db94011d3 | 572 | // <0=> I2S |
sahilmgandhi | 18:6a4db94011d3 | 573 | // <1=> Aligned |
sahilmgandhi | 18:6a4db94011d3 | 574 | |
sahilmgandhi | 18:6a4db94011d3 | 575 | #ifndef I2S_CONFIG_FORMAT |
sahilmgandhi | 18:6a4db94011d3 | 576 | #define I2S_CONFIG_FORMAT 0 |
sahilmgandhi | 18:6a4db94011d3 | 577 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 578 | |
sahilmgandhi | 18:6a4db94011d3 | 579 | // <o> I2S_CONFIG_ALIGN - Alignment |
sahilmgandhi | 18:6a4db94011d3 | 580 | |
sahilmgandhi | 18:6a4db94011d3 | 581 | // <0=> Left |
sahilmgandhi | 18:6a4db94011d3 | 582 | // <1=> Right |
sahilmgandhi | 18:6a4db94011d3 | 583 | |
sahilmgandhi | 18:6a4db94011d3 | 584 | #ifndef I2S_CONFIG_ALIGN |
sahilmgandhi | 18:6a4db94011d3 | 585 | #define I2S_CONFIG_ALIGN 0 |
sahilmgandhi | 18:6a4db94011d3 | 586 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 587 | |
sahilmgandhi | 18:6a4db94011d3 | 588 | // <o> I2S_CONFIG_SWIDTH - Sample width (bits) |
sahilmgandhi | 18:6a4db94011d3 | 589 | |
sahilmgandhi | 18:6a4db94011d3 | 590 | // <0=> 8 |
sahilmgandhi | 18:6a4db94011d3 | 591 | // <1=> 16 |
sahilmgandhi | 18:6a4db94011d3 | 592 | // <2=> 24 |
sahilmgandhi | 18:6a4db94011d3 | 593 | |
sahilmgandhi | 18:6a4db94011d3 | 594 | #ifndef I2S_CONFIG_SWIDTH |
sahilmgandhi | 18:6a4db94011d3 | 595 | #define I2S_CONFIG_SWIDTH 1 |
sahilmgandhi | 18:6a4db94011d3 | 596 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 597 | |
sahilmgandhi | 18:6a4db94011d3 | 598 | // <o> I2S_CONFIG_CHANNELS - Channels |
sahilmgandhi | 18:6a4db94011d3 | 599 | |
sahilmgandhi | 18:6a4db94011d3 | 600 | // <0=> Stereo |
sahilmgandhi | 18:6a4db94011d3 | 601 | // <1=> Left |
sahilmgandhi | 18:6a4db94011d3 | 602 | // <2=> Right |
sahilmgandhi | 18:6a4db94011d3 | 603 | |
sahilmgandhi | 18:6a4db94011d3 | 604 | #ifndef I2S_CONFIG_CHANNELS |
sahilmgandhi | 18:6a4db94011d3 | 605 | #define I2S_CONFIG_CHANNELS 1 |
sahilmgandhi | 18:6a4db94011d3 | 606 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 607 | |
sahilmgandhi | 18:6a4db94011d3 | 608 | // <o> I2S_CONFIG_MCK_SETUP - MCK behavior |
sahilmgandhi | 18:6a4db94011d3 | 609 | |
sahilmgandhi | 18:6a4db94011d3 | 610 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 611 | // <2147483648=> 32MHz/2 |
sahilmgandhi | 18:6a4db94011d3 | 612 | // <1342177280=> 32MHz/3 |
sahilmgandhi | 18:6a4db94011d3 | 613 | // <1073741824=> 32MHz/4 |
sahilmgandhi | 18:6a4db94011d3 | 614 | // <805306368=> 32MHz/5 |
sahilmgandhi | 18:6a4db94011d3 | 615 | // <671088640=> 32MHz/6 |
sahilmgandhi | 18:6a4db94011d3 | 616 | // <536870912=> 32MHz/8 |
sahilmgandhi | 18:6a4db94011d3 | 617 | // <402653184=> 32MHz/10 |
sahilmgandhi | 18:6a4db94011d3 | 618 | // <369098752=> 32MHz/11 |
sahilmgandhi | 18:6a4db94011d3 | 619 | // <285212672=> 32MHz/15 |
sahilmgandhi | 18:6a4db94011d3 | 620 | // <268435456=> 32MHz/16 |
sahilmgandhi | 18:6a4db94011d3 | 621 | // <201326592=> 32MHz/21 |
sahilmgandhi | 18:6a4db94011d3 | 622 | // <184549376=> 32MHz/23 |
sahilmgandhi | 18:6a4db94011d3 | 623 | // <142606336=> 32MHz/30 |
sahilmgandhi | 18:6a4db94011d3 | 624 | // <138412032=> 32MHz/31 |
sahilmgandhi | 18:6a4db94011d3 | 625 | // <134217728=> 32MHz/32 |
sahilmgandhi | 18:6a4db94011d3 | 626 | // <100663296=> 32MHz/42 |
sahilmgandhi | 18:6a4db94011d3 | 627 | // <68157440=> 32MHz/63 |
sahilmgandhi | 18:6a4db94011d3 | 628 | // <34340864=> 32MHz/125 |
sahilmgandhi | 18:6a4db94011d3 | 629 | |
sahilmgandhi | 18:6a4db94011d3 | 630 | #ifndef I2S_CONFIG_MCK_SETUP |
sahilmgandhi | 18:6a4db94011d3 | 631 | #define I2S_CONFIG_MCK_SETUP 536870912 |
sahilmgandhi | 18:6a4db94011d3 | 632 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 633 | |
sahilmgandhi | 18:6a4db94011d3 | 634 | // <o> I2S_CONFIG_RATIO - MCK/LRCK ratio |
sahilmgandhi | 18:6a4db94011d3 | 635 | |
sahilmgandhi | 18:6a4db94011d3 | 636 | // <0=> 32x |
sahilmgandhi | 18:6a4db94011d3 | 637 | // <1=> 48x |
sahilmgandhi | 18:6a4db94011d3 | 638 | // <2=> 64x |
sahilmgandhi | 18:6a4db94011d3 | 639 | // <3=> 96x |
sahilmgandhi | 18:6a4db94011d3 | 640 | // <4=> 128x |
sahilmgandhi | 18:6a4db94011d3 | 641 | // <5=> 192x |
sahilmgandhi | 18:6a4db94011d3 | 642 | // <6=> 256x |
sahilmgandhi | 18:6a4db94011d3 | 643 | // <7=> 384x |
sahilmgandhi | 18:6a4db94011d3 | 644 | // <8=> 512x |
sahilmgandhi | 18:6a4db94011d3 | 645 | |
sahilmgandhi | 18:6a4db94011d3 | 646 | #ifndef I2S_CONFIG_RATIO |
sahilmgandhi | 18:6a4db94011d3 | 647 | #define I2S_CONFIG_RATIO 2000 |
sahilmgandhi | 18:6a4db94011d3 | 648 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 649 | |
sahilmgandhi | 18:6a4db94011d3 | 650 | // <o> I2S_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 651 | |
sahilmgandhi | 18:6a4db94011d3 | 652 | |
sahilmgandhi | 18:6a4db94011d3 | 653 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 654 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 655 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 656 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 657 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 658 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 659 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 660 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 661 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 662 | |
sahilmgandhi | 18:6a4db94011d3 | 663 | #ifndef I2S_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 664 | #define I2S_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 665 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 666 | |
sahilmgandhi | 18:6a4db94011d3 | 667 | // <e> I2S_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 668 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 669 | #ifndef I2S_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 670 | #define I2S_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 671 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 672 | #if I2S_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 673 | // <o> I2S_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 674 | |
sahilmgandhi | 18:6a4db94011d3 | 675 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 676 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 677 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 678 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 679 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 680 | |
sahilmgandhi | 18:6a4db94011d3 | 681 | #ifndef I2S_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 682 | #define I2S_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 683 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 684 | |
sahilmgandhi | 18:6a4db94011d3 | 685 | // <o> I2S_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 686 | |
sahilmgandhi | 18:6a4db94011d3 | 687 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 688 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 689 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 690 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 691 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 692 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 693 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 694 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 695 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 696 | |
sahilmgandhi | 18:6a4db94011d3 | 697 | #ifndef I2S_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 698 | #define I2S_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 699 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 700 | |
sahilmgandhi | 18:6a4db94011d3 | 701 | // <o> I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 702 | |
sahilmgandhi | 18:6a4db94011d3 | 703 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 704 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 705 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 706 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 707 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 708 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 709 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 710 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 711 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 712 | |
sahilmgandhi | 18:6a4db94011d3 | 713 | #ifndef I2S_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 714 | #define I2S_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 715 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 716 | |
sahilmgandhi | 18:6a4db94011d3 | 717 | #endif //I2S_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 718 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 719 | |
sahilmgandhi | 18:6a4db94011d3 | 720 | #endif //I2S_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 721 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 722 | |
sahilmgandhi | 18:6a4db94011d3 | 723 | // <e> LPCOMP_ENABLED - nrf_drv_lpcomp - LPCOMP peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 724 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 725 | #ifndef LPCOMP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 726 | #define LPCOMP_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 727 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 728 | #if LPCOMP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 729 | // <o> LPCOMP_CONFIG_REFERENCE - Reference voltage |
sahilmgandhi | 18:6a4db94011d3 | 730 | |
sahilmgandhi | 18:6a4db94011d3 | 731 | // <0=> Supply 1/8 |
sahilmgandhi | 18:6a4db94011d3 | 732 | // <1=> Supply 2/8 |
sahilmgandhi | 18:6a4db94011d3 | 733 | // <2=> Supply 3/8 |
sahilmgandhi | 18:6a4db94011d3 | 734 | // <3=> Supply 4/8 |
sahilmgandhi | 18:6a4db94011d3 | 735 | // <4=> Supply 5/8 |
sahilmgandhi | 18:6a4db94011d3 | 736 | // <5=> Supply 6/8 |
sahilmgandhi | 18:6a4db94011d3 | 737 | // <6=> Supply 7/8 |
sahilmgandhi | 18:6a4db94011d3 | 738 | // <8=> Supply 1/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 739 | // <9=> Supply 3/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 740 | // <10=> Supply 5/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 741 | // <11=> Supply 7/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 742 | // <12=> Supply 9/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 743 | // <13=> Supply 11/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 744 | // <14=> Supply 13/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 745 | // <15=> Supply 15/16 (nRF52) |
sahilmgandhi | 18:6a4db94011d3 | 746 | // <7=> External Ref 0 |
sahilmgandhi | 18:6a4db94011d3 | 747 | // <65543=> External Ref 1 |
sahilmgandhi | 18:6a4db94011d3 | 748 | |
sahilmgandhi | 18:6a4db94011d3 | 749 | #ifndef LPCOMP_CONFIG_REFERENCE |
sahilmgandhi | 18:6a4db94011d3 | 750 | #define LPCOMP_CONFIG_REFERENCE 3 |
sahilmgandhi | 18:6a4db94011d3 | 751 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 752 | |
sahilmgandhi | 18:6a4db94011d3 | 753 | // <o> LPCOMP_CONFIG_DETECTION - Detection |
sahilmgandhi | 18:6a4db94011d3 | 754 | |
sahilmgandhi | 18:6a4db94011d3 | 755 | // <0=> Crossing |
sahilmgandhi | 18:6a4db94011d3 | 756 | // <1=> Up |
sahilmgandhi | 18:6a4db94011d3 | 757 | // <2=> Down |
sahilmgandhi | 18:6a4db94011d3 | 758 | |
sahilmgandhi | 18:6a4db94011d3 | 759 | #ifndef LPCOMP_CONFIG_DETECTION |
sahilmgandhi | 18:6a4db94011d3 | 760 | #define LPCOMP_CONFIG_DETECTION 2 |
sahilmgandhi | 18:6a4db94011d3 | 761 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 762 | |
sahilmgandhi | 18:6a4db94011d3 | 763 | // <o> LPCOMP_CONFIG_INPUT - Analog input |
sahilmgandhi | 18:6a4db94011d3 | 764 | |
sahilmgandhi | 18:6a4db94011d3 | 765 | // <0=> 0 |
sahilmgandhi | 18:6a4db94011d3 | 766 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 767 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 768 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 769 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 770 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 771 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 772 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 773 | |
sahilmgandhi | 18:6a4db94011d3 | 774 | #ifndef LPCOMP_CONFIG_INPUT |
sahilmgandhi | 18:6a4db94011d3 | 775 | #define LPCOMP_CONFIG_INPUT 0 |
sahilmgandhi | 18:6a4db94011d3 | 776 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 777 | |
sahilmgandhi | 18:6a4db94011d3 | 778 | // <q> LPCOMP_CONFIG_HYST - Hysteresis |
sahilmgandhi | 18:6a4db94011d3 | 779 | |
sahilmgandhi | 18:6a4db94011d3 | 780 | |
sahilmgandhi | 18:6a4db94011d3 | 781 | #ifndef LPCOMP_CONFIG_HYST |
sahilmgandhi | 18:6a4db94011d3 | 782 | #define LPCOMP_CONFIG_HYST 0 |
sahilmgandhi | 18:6a4db94011d3 | 783 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 784 | |
sahilmgandhi | 18:6a4db94011d3 | 785 | // <o> LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 786 | |
sahilmgandhi | 18:6a4db94011d3 | 787 | |
sahilmgandhi | 18:6a4db94011d3 | 788 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 789 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 790 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 791 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 792 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 793 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 794 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 795 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 796 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 797 | |
sahilmgandhi | 18:6a4db94011d3 | 798 | #ifndef LPCOMP_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 799 | #define LPCOMP_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 800 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 801 | |
sahilmgandhi | 18:6a4db94011d3 | 802 | // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 803 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 804 | #ifndef LPCOMP_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 805 | #define LPCOMP_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 806 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 807 | #if LPCOMP_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 808 | // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 809 | |
sahilmgandhi | 18:6a4db94011d3 | 810 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 811 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 812 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 813 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 814 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 815 | |
sahilmgandhi | 18:6a4db94011d3 | 816 | #ifndef LPCOMP_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 817 | #define LPCOMP_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 818 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 819 | |
sahilmgandhi | 18:6a4db94011d3 | 820 | // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 821 | |
sahilmgandhi | 18:6a4db94011d3 | 822 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 823 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 824 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 825 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 826 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 827 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 828 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 829 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 830 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 831 | |
sahilmgandhi | 18:6a4db94011d3 | 832 | #ifndef LPCOMP_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 833 | #define LPCOMP_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 834 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 835 | |
sahilmgandhi | 18:6a4db94011d3 | 836 | // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 837 | |
sahilmgandhi | 18:6a4db94011d3 | 838 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 839 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 840 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 841 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 842 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 843 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 844 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 845 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 846 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 847 | |
sahilmgandhi | 18:6a4db94011d3 | 848 | #ifndef LPCOMP_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 849 | #define LPCOMP_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 850 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 851 | |
sahilmgandhi | 18:6a4db94011d3 | 852 | #endif //LPCOMP_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 853 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 854 | |
sahilmgandhi | 18:6a4db94011d3 | 855 | #endif //LPCOMP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 856 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 857 | |
sahilmgandhi | 18:6a4db94011d3 | 858 | // <e> PDM_ENABLED - nrf_drv_pdm - PDM peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 859 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 860 | #ifndef PDM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 861 | #define PDM_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 862 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 863 | #if PDM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 864 | // <o> PDM_CONFIG_MODE - Mode |
sahilmgandhi | 18:6a4db94011d3 | 865 | |
sahilmgandhi | 18:6a4db94011d3 | 866 | // <0=> Stereo |
sahilmgandhi | 18:6a4db94011d3 | 867 | // <1=> Mono |
sahilmgandhi | 18:6a4db94011d3 | 868 | |
sahilmgandhi | 18:6a4db94011d3 | 869 | #ifndef PDM_CONFIG_MODE |
sahilmgandhi | 18:6a4db94011d3 | 870 | #define PDM_CONFIG_MODE 1 |
sahilmgandhi | 18:6a4db94011d3 | 871 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 872 | |
sahilmgandhi | 18:6a4db94011d3 | 873 | // <o> PDM_CONFIG_EDGE - Edge |
sahilmgandhi | 18:6a4db94011d3 | 874 | |
sahilmgandhi | 18:6a4db94011d3 | 875 | // <0=> Left falling |
sahilmgandhi | 18:6a4db94011d3 | 876 | // <1=> Left rising |
sahilmgandhi | 18:6a4db94011d3 | 877 | |
sahilmgandhi | 18:6a4db94011d3 | 878 | #ifndef PDM_CONFIG_EDGE |
sahilmgandhi | 18:6a4db94011d3 | 879 | #define PDM_CONFIG_EDGE 0 |
sahilmgandhi | 18:6a4db94011d3 | 880 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 881 | |
sahilmgandhi | 18:6a4db94011d3 | 882 | // <o> PDM_CONFIG_CLOCK_FREQ - Clock frequency |
sahilmgandhi | 18:6a4db94011d3 | 883 | |
sahilmgandhi | 18:6a4db94011d3 | 884 | // <134217728=> 1000k |
sahilmgandhi | 18:6a4db94011d3 | 885 | // <138412032=> 1032k (default) |
sahilmgandhi | 18:6a4db94011d3 | 886 | // <142606336=> 1067k |
sahilmgandhi | 18:6a4db94011d3 | 887 | |
sahilmgandhi | 18:6a4db94011d3 | 888 | #ifndef PDM_CONFIG_CLOCK_FREQ |
sahilmgandhi | 18:6a4db94011d3 | 889 | #define PDM_CONFIG_CLOCK_FREQ 138412032 |
sahilmgandhi | 18:6a4db94011d3 | 890 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 891 | |
sahilmgandhi | 18:6a4db94011d3 | 892 | // <o> PDM_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 893 | |
sahilmgandhi | 18:6a4db94011d3 | 894 | |
sahilmgandhi | 18:6a4db94011d3 | 895 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 896 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 897 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 898 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 899 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 900 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 901 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 902 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 903 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 904 | |
sahilmgandhi | 18:6a4db94011d3 | 905 | #ifndef PDM_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 906 | #define PDM_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 907 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 908 | |
sahilmgandhi | 18:6a4db94011d3 | 909 | // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 910 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 911 | #ifndef PDM_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 912 | #define PDM_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 913 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 914 | #if PDM_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 915 | // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 916 | |
sahilmgandhi | 18:6a4db94011d3 | 917 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 918 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 919 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 920 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 921 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 922 | |
sahilmgandhi | 18:6a4db94011d3 | 923 | #ifndef PDM_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 924 | #define PDM_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 925 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 926 | |
sahilmgandhi | 18:6a4db94011d3 | 927 | // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 928 | |
sahilmgandhi | 18:6a4db94011d3 | 929 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 930 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 931 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 932 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 933 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 934 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 935 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 936 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 937 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 938 | |
sahilmgandhi | 18:6a4db94011d3 | 939 | #ifndef PDM_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 940 | #define PDM_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 941 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 942 | |
sahilmgandhi | 18:6a4db94011d3 | 943 | // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 944 | |
sahilmgandhi | 18:6a4db94011d3 | 945 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 946 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 947 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 948 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 949 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 950 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 951 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 952 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 953 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 954 | |
sahilmgandhi | 18:6a4db94011d3 | 955 | #ifndef PDM_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 956 | #define PDM_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 957 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 958 | |
sahilmgandhi | 18:6a4db94011d3 | 959 | #endif //PDM_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 960 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 961 | |
sahilmgandhi | 18:6a4db94011d3 | 962 | #endif //PDM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 963 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 964 | |
sahilmgandhi | 18:6a4db94011d3 | 965 | // <e> PERIPHERAL_RESOURCE_SHARING_ENABLED - nrf_drv_common - Peripheral drivers common module |
sahilmgandhi | 18:6a4db94011d3 | 966 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 967 | #ifndef PERIPHERAL_RESOURCE_SHARING_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 968 | #define PERIPHERAL_RESOURCE_SHARING_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 969 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 970 | #if PERIPHERAL_RESOURCE_SHARING_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 971 | // <e> COMMON_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 972 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 973 | #ifndef COMMON_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 974 | #define COMMON_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 975 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 976 | #if COMMON_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 977 | // <o> COMMON_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 978 | |
sahilmgandhi | 18:6a4db94011d3 | 979 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 980 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 981 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 982 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 983 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 984 | |
sahilmgandhi | 18:6a4db94011d3 | 985 | #ifndef COMMON_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 986 | #define COMMON_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 987 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 988 | |
sahilmgandhi | 18:6a4db94011d3 | 989 | // <o> COMMON_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 990 | |
sahilmgandhi | 18:6a4db94011d3 | 991 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 992 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 993 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 994 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 995 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 996 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 997 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 998 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 999 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1000 | |
sahilmgandhi | 18:6a4db94011d3 | 1001 | #ifndef COMMON_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1002 | #define COMMON_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1003 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1004 | |
sahilmgandhi | 18:6a4db94011d3 | 1005 | // <o> COMMON_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1006 | |
sahilmgandhi | 18:6a4db94011d3 | 1007 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1008 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1009 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1010 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1011 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1012 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1013 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1014 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1015 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1016 | |
sahilmgandhi | 18:6a4db94011d3 | 1017 | #ifndef COMMON_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1018 | #define COMMON_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1019 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1020 | |
sahilmgandhi | 18:6a4db94011d3 | 1021 | #endif //COMMON_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1022 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1023 | |
sahilmgandhi | 18:6a4db94011d3 | 1024 | #endif //PERIPHERAL_RESOURCE_SHARING_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1025 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1026 | |
sahilmgandhi | 18:6a4db94011d3 | 1027 | // <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1028 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1029 | #ifndef POWER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1030 | #define POWER_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1031 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1032 | #if POWER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1033 | // <o> POWER_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1034 | |
sahilmgandhi | 18:6a4db94011d3 | 1035 | |
sahilmgandhi | 18:6a4db94011d3 | 1036 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1037 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1038 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1039 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1040 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1041 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1042 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1043 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1044 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1045 | |
sahilmgandhi | 18:6a4db94011d3 | 1046 | #ifndef POWER_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1047 | #define POWER_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1048 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1049 | |
sahilmgandhi | 18:6a4db94011d3 | 1050 | // <q> POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator |
sahilmgandhi | 18:6a4db94011d3 | 1051 | |
sahilmgandhi | 18:6a4db94011d3 | 1052 | |
sahilmgandhi | 18:6a4db94011d3 | 1053 | // <i> This settings means only that components for DCDC regulator are installed and it can be enabled. |
sahilmgandhi | 18:6a4db94011d3 | 1054 | |
sahilmgandhi | 18:6a4db94011d3 | 1055 | #ifndef POWER_CONFIG_DEFAULT_DCDCEN |
sahilmgandhi | 18:6a4db94011d3 | 1056 | #define POWER_CONFIG_DEFAULT_DCDCEN 0 |
sahilmgandhi | 18:6a4db94011d3 | 1057 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1058 | |
sahilmgandhi | 18:6a4db94011d3 | 1059 | // <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator |
sahilmgandhi | 18:6a4db94011d3 | 1060 | |
sahilmgandhi | 18:6a4db94011d3 | 1061 | |
sahilmgandhi | 18:6a4db94011d3 | 1062 | // <i> This settings means only that components for DCDC regulator are installed and it can be enabled. |
sahilmgandhi | 18:6a4db94011d3 | 1063 | |
sahilmgandhi | 18:6a4db94011d3 | 1064 | #ifndef POWER_CONFIG_DEFAULT_DCDCENHV |
sahilmgandhi | 18:6a4db94011d3 | 1065 | #define POWER_CONFIG_DEFAULT_DCDCENHV 0 |
sahilmgandhi | 18:6a4db94011d3 | 1066 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1067 | |
sahilmgandhi | 18:6a4db94011d3 | 1068 | #endif //POWER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1069 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1070 | |
sahilmgandhi | 18:6a4db94011d3 | 1071 | // <e> PPI_ENABLED - nrf_drv_ppi - PPI peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1072 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1073 | #ifndef PPI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1074 | #define PPI_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1075 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1076 | #if PPI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1077 | // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1078 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1079 | #ifndef PPI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1080 | #define PPI_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1081 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1082 | #if PPI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1083 | // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1084 | |
sahilmgandhi | 18:6a4db94011d3 | 1085 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1086 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1087 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1088 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1089 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1090 | |
sahilmgandhi | 18:6a4db94011d3 | 1091 | #ifndef PPI_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1092 | #define PPI_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1093 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1094 | |
sahilmgandhi | 18:6a4db94011d3 | 1095 | // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1096 | |
sahilmgandhi | 18:6a4db94011d3 | 1097 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1098 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1099 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1100 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1101 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1102 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1103 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1104 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1105 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1106 | |
sahilmgandhi | 18:6a4db94011d3 | 1107 | #ifndef PPI_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1108 | #define PPI_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1109 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1110 | |
sahilmgandhi | 18:6a4db94011d3 | 1111 | // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1112 | |
sahilmgandhi | 18:6a4db94011d3 | 1113 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1114 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1115 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1116 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1117 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1118 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1119 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1120 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1121 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1122 | |
sahilmgandhi | 18:6a4db94011d3 | 1123 | #ifndef PPI_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1124 | #define PPI_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1125 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1126 | |
sahilmgandhi | 18:6a4db94011d3 | 1127 | #endif //PPI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1128 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1129 | |
sahilmgandhi | 18:6a4db94011d3 | 1130 | #endif //PPI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1131 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1132 | |
sahilmgandhi | 18:6a4db94011d3 | 1133 | // <e> PWM_ENABLED - nrf_drv_pwm - PWM peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1134 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1135 | #ifndef PWM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1136 | #define PWM_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1137 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1138 | #if PWM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1139 | // <o> PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1140 | |
sahilmgandhi | 18:6a4db94011d3 | 1141 | |
sahilmgandhi | 18:6a4db94011d3 | 1142 | #ifndef PWM_DEFAULT_CONFIG_OUT0_PIN |
sahilmgandhi | 18:6a4db94011d3 | 1143 | #define PWM_DEFAULT_CONFIG_OUT0_PIN 31 |
sahilmgandhi | 18:6a4db94011d3 | 1144 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1145 | |
sahilmgandhi | 18:6a4db94011d3 | 1146 | // <o> PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1147 | |
sahilmgandhi | 18:6a4db94011d3 | 1148 | |
sahilmgandhi | 18:6a4db94011d3 | 1149 | #ifndef PWM_DEFAULT_CONFIG_OUT1_PIN |
sahilmgandhi | 18:6a4db94011d3 | 1150 | #define PWM_DEFAULT_CONFIG_OUT1_PIN 31 |
sahilmgandhi | 18:6a4db94011d3 | 1151 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1152 | |
sahilmgandhi | 18:6a4db94011d3 | 1153 | // <o> PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1154 | |
sahilmgandhi | 18:6a4db94011d3 | 1155 | |
sahilmgandhi | 18:6a4db94011d3 | 1156 | #ifndef PWM_DEFAULT_CONFIG_OUT2_PIN |
sahilmgandhi | 18:6a4db94011d3 | 1157 | #define PWM_DEFAULT_CONFIG_OUT2_PIN 31 |
sahilmgandhi | 18:6a4db94011d3 | 1158 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1159 | |
sahilmgandhi | 18:6a4db94011d3 | 1160 | // <o> PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1161 | |
sahilmgandhi | 18:6a4db94011d3 | 1162 | |
sahilmgandhi | 18:6a4db94011d3 | 1163 | #ifndef PWM_DEFAULT_CONFIG_OUT3_PIN |
sahilmgandhi | 18:6a4db94011d3 | 1164 | #define PWM_DEFAULT_CONFIG_OUT3_PIN 31 |
sahilmgandhi | 18:6a4db94011d3 | 1165 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1166 | |
sahilmgandhi | 18:6a4db94011d3 | 1167 | // <o> PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock |
sahilmgandhi | 18:6a4db94011d3 | 1168 | |
sahilmgandhi | 18:6a4db94011d3 | 1169 | // <0=> 16 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1170 | // <1=> 8 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1171 | // <2=> 4 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1172 | // <3=> 2 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1173 | // <4=> 1 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1174 | // <5=> 500 kHz |
sahilmgandhi | 18:6a4db94011d3 | 1175 | // <6=> 250 kHz |
sahilmgandhi | 18:6a4db94011d3 | 1176 | // <7=> 125 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1177 | |
sahilmgandhi | 18:6a4db94011d3 | 1178 | #ifndef PWM_DEFAULT_CONFIG_BASE_CLOCK |
sahilmgandhi | 18:6a4db94011d3 | 1179 | #define PWM_DEFAULT_CONFIG_BASE_CLOCK 4 |
sahilmgandhi | 18:6a4db94011d3 | 1180 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1181 | |
sahilmgandhi | 18:6a4db94011d3 | 1182 | // <o> PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode |
sahilmgandhi | 18:6a4db94011d3 | 1183 | |
sahilmgandhi | 18:6a4db94011d3 | 1184 | // <0=> Up |
sahilmgandhi | 18:6a4db94011d3 | 1185 | // <1=> Up and Down |
sahilmgandhi | 18:6a4db94011d3 | 1186 | |
sahilmgandhi | 18:6a4db94011d3 | 1187 | #ifndef PWM_DEFAULT_CONFIG_COUNT_MODE |
sahilmgandhi | 18:6a4db94011d3 | 1188 | #define PWM_DEFAULT_CONFIG_COUNT_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1189 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1190 | |
sahilmgandhi | 18:6a4db94011d3 | 1191 | // <o> PWM_DEFAULT_CONFIG_TOP_VALUE - Top value |
sahilmgandhi | 18:6a4db94011d3 | 1192 | #ifndef PWM_DEFAULT_CONFIG_TOP_VALUE |
sahilmgandhi | 18:6a4db94011d3 | 1193 | #define PWM_DEFAULT_CONFIG_TOP_VALUE 1000 |
sahilmgandhi | 18:6a4db94011d3 | 1194 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1195 | |
sahilmgandhi | 18:6a4db94011d3 | 1196 | // <o> PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode |
sahilmgandhi | 18:6a4db94011d3 | 1197 | |
sahilmgandhi | 18:6a4db94011d3 | 1198 | // <0=> Common |
sahilmgandhi | 18:6a4db94011d3 | 1199 | // <1=> Grouped |
sahilmgandhi | 18:6a4db94011d3 | 1200 | // <2=> Individual |
sahilmgandhi | 18:6a4db94011d3 | 1201 | // <3=> Waveform |
sahilmgandhi | 18:6a4db94011d3 | 1202 | |
sahilmgandhi | 18:6a4db94011d3 | 1203 | #ifndef PWM_DEFAULT_CONFIG_LOAD_MODE |
sahilmgandhi | 18:6a4db94011d3 | 1204 | #define PWM_DEFAULT_CONFIG_LOAD_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1205 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1206 | |
sahilmgandhi | 18:6a4db94011d3 | 1207 | // <o> PWM_DEFAULT_CONFIG_STEP_MODE - Step mode |
sahilmgandhi | 18:6a4db94011d3 | 1208 | |
sahilmgandhi | 18:6a4db94011d3 | 1209 | // <0=> Auto |
sahilmgandhi | 18:6a4db94011d3 | 1210 | // <1=> Triggered |
sahilmgandhi | 18:6a4db94011d3 | 1211 | |
sahilmgandhi | 18:6a4db94011d3 | 1212 | #ifndef PWM_DEFAULT_CONFIG_STEP_MODE |
sahilmgandhi | 18:6a4db94011d3 | 1213 | #define PWM_DEFAULT_CONFIG_STEP_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1214 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1215 | |
sahilmgandhi | 18:6a4db94011d3 | 1216 | // <o> PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1217 | |
sahilmgandhi | 18:6a4db94011d3 | 1218 | |
sahilmgandhi | 18:6a4db94011d3 | 1219 | // <i> Priorities 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1220 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1221 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1222 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1223 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1224 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1225 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1226 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1227 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1228 | |
sahilmgandhi | 18:6a4db94011d3 | 1229 | #ifndef PWM_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1230 | #define PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1231 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1232 | |
sahilmgandhi | 18:6a4db94011d3 | 1233 | // <q> PWM0_ENABLED - Enable PWM0 instance |
sahilmgandhi | 18:6a4db94011d3 | 1234 | |
sahilmgandhi | 18:6a4db94011d3 | 1235 | |
sahilmgandhi | 18:6a4db94011d3 | 1236 | #ifndef PWM0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1237 | #define PWM0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1238 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1239 | |
sahilmgandhi | 18:6a4db94011d3 | 1240 | // <q> PWM1_ENABLED - Enable PWM1 instance |
sahilmgandhi | 18:6a4db94011d3 | 1241 | |
sahilmgandhi | 18:6a4db94011d3 | 1242 | |
sahilmgandhi | 18:6a4db94011d3 | 1243 | #ifndef PWM1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1244 | #define PWM1_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1245 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1246 | |
sahilmgandhi | 18:6a4db94011d3 | 1247 | // <q> PWM2_ENABLED - Enable PWM2 instance |
sahilmgandhi | 18:6a4db94011d3 | 1248 | |
sahilmgandhi | 18:6a4db94011d3 | 1249 | |
sahilmgandhi | 18:6a4db94011d3 | 1250 | #ifndef PWM2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1251 | #define PWM2_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1252 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1253 | |
sahilmgandhi | 18:6a4db94011d3 | 1254 | // <q> PWM3_ENABLED - Enable PWM3 instance |
sahilmgandhi | 18:6a4db94011d3 | 1255 | |
sahilmgandhi | 18:6a4db94011d3 | 1256 | |
sahilmgandhi | 18:6a4db94011d3 | 1257 | #ifndef PWM3_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1258 | #define PWM3_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1259 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1260 | |
sahilmgandhi | 18:6a4db94011d3 | 1261 | // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1262 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1263 | #ifndef PWM_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1264 | #define PWM_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1265 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1266 | #if PWM_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1267 | // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1268 | |
sahilmgandhi | 18:6a4db94011d3 | 1269 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1270 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1271 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1272 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1273 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1274 | |
sahilmgandhi | 18:6a4db94011d3 | 1275 | #ifndef PWM_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1276 | #define PWM_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1277 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1278 | |
sahilmgandhi | 18:6a4db94011d3 | 1279 | // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1280 | |
sahilmgandhi | 18:6a4db94011d3 | 1281 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1282 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1283 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1284 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1285 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1286 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1287 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1288 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1289 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1290 | |
sahilmgandhi | 18:6a4db94011d3 | 1291 | #ifndef PWM_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1292 | #define PWM_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1293 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1294 | |
sahilmgandhi | 18:6a4db94011d3 | 1295 | // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1296 | |
sahilmgandhi | 18:6a4db94011d3 | 1297 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1298 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1299 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1300 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1301 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1302 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1303 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1304 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1305 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1306 | |
sahilmgandhi | 18:6a4db94011d3 | 1307 | #ifndef PWM_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1308 | #define PWM_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1309 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1310 | |
sahilmgandhi | 18:6a4db94011d3 | 1311 | #endif //PWM_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1312 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1313 | |
sahilmgandhi | 18:6a4db94011d3 | 1314 | #endif //PWM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1315 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1316 | |
sahilmgandhi | 18:6a4db94011d3 | 1317 | // <e> QDEC_ENABLED - nrf_drv_qdec - QDEC peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1318 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1319 | #ifndef QDEC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1320 | #define QDEC_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1321 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1322 | #if QDEC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1323 | // <o> QDEC_CONFIG_REPORTPER - Report period |
sahilmgandhi | 18:6a4db94011d3 | 1324 | |
sahilmgandhi | 18:6a4db94011d3 | 1325 | // <0=> 10 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1326 | // <1=> 40 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1327 | // <2=> 80 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1328 | // <3=> 120 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1329 | // <4=> 160 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1330 | // <5=> 200 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1331 | // <6=> 240 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1332 | // <7=> 280 Samples |
sahilmgandhi | 18:6a4db94011d3 | 1333 | |
sahilmgandhi | 18:6a4db94011d3 | 1334 | #ifndef QDEC_CONFIG_REPORTPER |
sahilmgandhi | 18:6a4db94011d3 | 1335 | #define QDEC_CONFIG_REPORTPER 0 |
sahilmgandhi | 18:6a4db94011d3 | 1336 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1337 | |
sahilmgandhi | 18:6a4db94011d3 | 1338 | // <o> QDEC_CONFIG_SAMPLEPER - Sample period |
sahilmgandhi | 18:6a4db94011d3 | 1339 | |
sahilmgandhi | 18:6a4db94011d3 | 1340 | // <0=> 128 us |
sahilmgandhi | 18:6a4db94011d3 | 1341 | // <1=> 256 us |
sahilmgandhi | 18:6a4db94011d3 | 1342 | // <2=> 512 us |
sahilmgandhi | 18:6a4db94011d3 | 1343 | // <3=> 1024 us |
sahilmgandhi | 18:6a4db94011d3 | 1344 | // <4=> 2048 us |
sahilmgandhi | 18:6a4db94011d3 | 1345 | // <5=> 4096 us |
sahilmgandhi | 18:6a4db94011d3 | 1346 | // <6=> 8192 us |
sahilmgandhi | 18:6a4db94011d3 | 1347 | // <7=> 16384 us |
sahilmgandhi | 18:6a4db94011d3 | 1348 | |
sahilmgandhi | 18:6a4db94011d3 | 1349 | #ifndef QDEC_CONFIG_SAMPLEPER |
sahilmgandhi | 18:6a4db94011d3 | 1350 | #define QDEC_CONFIG_SAMPLEPER 7 |
sahilmgandhi | 18:6a4db94011d3 | 1351 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1352 | |
sahilmgandhi | 18:6a4db94011d3 | 1353 | // <o> QDEC_CONFIG_PIO_A - A pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1354 | |
sahilmgandhi | 18:6a4db94011d3 | 1355 | |
sahilmgandhi | 18:6a4db94011d3 | 1356 | #ifndef QDEC_CONFIG_PIO_A |
sahilmgandhi | 18:6a4db94011d3 | 1357 | #define QDEC_CONFIG_PIO_A 31 |
sahilmgandhi | 18:6a4db94011d3 | 1358 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1359 | |
sahilmgandhi | 18:6a4db94011d3 | 1360 | // <o> QDEC_CONFIG_PIO_B - B pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1361 | |
sahilmgandhi | 18:6a4db94011d3 | 1362 | |
sahilmgandhi | 18:6a4db94011d3 | 1363 | #ifndef QDEC_CONFIG_PIO_B |
sahilmgandhi | 18:6a4db94011d3 | 1364 | #define QDEC_CONFIG_PIO_B 31 |
sahilmgandhi | 18:6a4db94011d3 | 1365 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1366 | |
sahilmgandhi | 18:6a4db94011d3 | 1367 | // <o> QDEC_CONFIG_PIO_LED - LED pin <0-31> |
sahilmgandhi | 18:6a4db94011d3 | 1368 | |
sahilmgandhi | 18:6a4db94011d3 | 1369 | |
sahilmgandhi | 18:6a4db94011d3 | 1370 | #ifndef QDEC_CONFIG_PIO_LED |
sahilmgandhi | 18:6a4db94011d3 | 1371 | #define QDEC_CONFIG_PIO_LED 31 |
sahilmgandhi | 18:6a4db94011d3 | 1372 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1373 | |
sahilmgandhi | 18:6a4db94011d3 | 1374 | // <o> QDEC_CONFIG_LEDPRE - LED pre |
sahilmgandhi | 18:6a4db94011d3 | 1375 | #ifndef QDEC_CONFIG_LEDPRE |
sahilmgandhi | 18:6a4db94011d3 | 1376 | #define QDEC_CONFIG_LEDPRE 511 |
sahilmgandhi | 18:6a4db94011d3 | 1377 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1378 | |
sahilmgandhi | 18:6a4db94011d3 | 1379 | // <o> QDEC_CONFIG_LEDPOL - LED polarity |
sahilmgandhi | 18:6a4db94011d3 | 1380 | |
sahilmgandhi | 18:6a4db94011d3 | 1381 | // <0=> Active low |
sahilmgandhi | 18:6a4db94011d3 | 1382 | // <1=> Active high |
sahilmgandhi | 18:6a4db94011d3 | 1383 | |
sahilmgandhi | 18:6a4db94011d3 | 1384 | #ifndef QDEC_CONFIG_LEDPOL |
sahilmgandhi | 18:6a4db94011d3 | 1385 | #define QDEC_CONFIG_LEDPOL 1 |
sahilmgandhi | 18:6a4db94011d3 | 1386 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1387 | |
sahilmgandhi | 18:6a4db94011d3 | 1388 | // <q> QDEC_CONFIG_DBFEN - Debouncing enable |
sahilmgandhi | 18:6a4db94011d3 | 1389 | |
sahilmgandhi | 18:6a4db94011d3 | 1390 | |
sahilmgandhi | 18:6a4db94011d3 | 1391 | #ifndef QDEC_CONFIG_DBFEN |
sahilmgandhi | 18:6a4db94011d3 | 1392 | #define QDEC_CONFIG_DBFEN 0 |
sahilmgandhi | 18:6a4db94011d3 | 1393 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1394 | |
sahilmgandhi | 18:6a4db94011d3 | 1395 | // <q> QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable |
sahilmgandhi | 18:6a4db94011d3 | 1396 | |
sahilmgandhi | 18:6a4db94011d3 | 1397 | |
sahilmgandhi | 18:6a4db94011d3 | 1398 | #ifndef QDEC_CONFIG_SAMPLE_INTEN |
sahilmgandhi | 18:6a4db94011d3 | 1399 | #define QDEC_CONFIG_SAMPLE_INTEN 0 |
sahilmgandhi | 18:6a4db94011d3 | 1400 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1401 | |
sahilmgandhi | 18:6a4db94011d3 | 1402 | // <o> QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1403 | |
sahilmgandhi | 18:6a4db94011d3 | 1404 | |
sahilmgandhi | 18:6a4db94011d3 | 1405 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1406 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1407 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1408 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1409 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1410 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1411 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1412 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1413 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1414 | |
sahilmgandhi | 18:6a4db94011d3 | 1415 | #ifndef QDEC_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1416 | #define QDEC_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1417 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1418 | |
sahilmgandhi | 18:6a4db94011d3 | 1419 | // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1420 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1421 | #ifndef QDEC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1422 | #define QDEC_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1423 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1424 | #if QDEC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1425 | // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1426 | |
sahilmgandhi | 18:6a4db94011d3 | 1427 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1428 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1429 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1430 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1431 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1432 | |
sahilmgandhi | 18:6a4db94011d3 | 1433 | #ifndef QDEC_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1434 | #define QDEC_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1435 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1436 | |
sahilmgandhi | 18:6a4db94011d3 | 1437 | // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1438 | |
sahilmgandhi | 18:6a4db94011d3 | 1439 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1440 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1441 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1442 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1443 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1444 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1445 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1446 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1447 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1448 | |
sahilmgandhi | 18:6a4db94011d3 | 1449 | #ifndef QDEC_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1450 | #define QDEC_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1451 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1452 | |
sahilmgandhi | 18:6a4db94011d3 | 1453 | // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1454 | |
sahilmgandhi | 18:6a4db94011d3 | 1455 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1456 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1457 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1458 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1459 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1460 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1461 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1462 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1463 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1464 | |
sahilmgandhi | 18:6a4db94011d3 | 1465 | #ifndef QDEC_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1466 | #define QDEC_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1467 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1468 | |
sahilmgandhi | 18:6a4db94011d3 | 1469 | #endif //QDEC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1470 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1471 | |
sahilmgandhi | 18:6a4db94011d3 | 1472 | #endif //QDEC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1473 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1474 | |
sahilmgandhi | 18:6a4db94011d3 | 1475 | // <e> RNG_ENABLED - nrf_drv_rng - RNG peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1476 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1477 | #ifndef RNG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1478 | #define RNG_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1479 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1480 | #if RNG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1481 | // <q> RNG_CONFIG_ERROR_CORRECTION - Error correction |
sahilmgandhi | 18:6a4db94011d3 | 1482 | |
sahilmgandhi | 18:6a4db94011d3 | 1483 | |
sahilmgandhi | 18:6a4db94011d3 | 1484 | #ifndef RNG_CONFIG_ERROR_CORRECTION |
sahilmgandhi | 18:6a4db94011d3 | 1485 | #define RNG_CONFIG_ERROR_CORRECTION 0 |
sahilmgandhi | 18:6a4db94011d3 | 1486 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1487 | |
sahilmgandhi | 18:6a4db94011d3 | 1488 | // <o> RNG_CONFIG_POOL_SIZE - Pool size |
sahilmgandhi | 18:6a4db94011d3 | 1489 | #ifndef RNG_CONFIG_POOL_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 1490 | #define RNG_CONFIG_POOL_SIZE 32 |
sahilmgandhi | 18:6a4db94011d3 | 1491 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1492 | |
sahilmgandhi | 18:6a4db94011d3 | 1493 | // <o> RNG_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1494 | |
sahilmgandhi | 18:6a4db94011d3 | 1495 | |
sahilmgandhi | 18:6a4db94011d3 | 1496 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1497 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1498 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1499 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1500 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1501 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1502 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1503 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1504 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1505 | |
sahilmgandhi | 18:6a4db94011d3 | 1506 | #ifndef RNG_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1507 | #define RNG_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1508 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1509 | |
sahilmgandhi | 18:6a4db94011d3 | 1510 | // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1511 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1512 | #ifndef RNG_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1513 | #define RNG_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1514 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1515 | #if RNG_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1516 | // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1517 | |
sahilmgandhi | 18:6a4db94011d3 | 1518 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1519 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1520 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1521 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1522 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1523 | |
sahilmgandhi | 18:6a4db94011d3 | 1524 | #ifndef RNG_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1525 | #define RNG_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1526 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1527 | |
sahilmgandhi | 18:6a4db94011d3 | 1528 | // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1529 | |
sahilmgandhi | 18:6a4db94011d3 | 1530 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1531 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1532 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1533 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1534 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1535 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1536 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1537 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1538 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1539 | |
sahilmgandhi | 18:6a4db94011d3 | 1540 | #ifndef RNG_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1541 | #define RNG_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1542 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1543 | |
sahilmgandhi | 18:6a4db94011d3 | 1544 | // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1545 | |
sahilmgandhi | 18:6a4db94011d3 | 1546 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1547 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1548 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1549 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1550 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1551 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1552 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1553 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1554 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1555 | |
sahilmgandhi | 18:6a4db94011d3 | 1556 | #ifndef RNG_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1557 | #define RNG_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1558 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1559 | |
sahilmgandhi | 18:6a4db94011d3 | 1560 | #endif //RNG_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1561 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1562 | |
sahilmgandhi | 18:6a4db94011d3 | 1563 | #endif //RNG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1564 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1565 | |
sahilmgandhi | 18:6a4db94011d3 | 1566 | // <e> RTC_ENABLED - nrf_drv_rtc - RTC peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1567 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1568 | #ifndef RTC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1569 | #define RTC_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1570 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1571 | #if RTC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1572 | // <o> RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768> |
sahilmgandhi | 18:6a4db94011d3 | 1573 | |
sahilmgandhi | 18:6a4db94011d3 | 1574 | |
sahilmgandhi | 18:6a4db94011d3 | 1575 | #ifndef RTC_DEFAULT_CONFIG_FREQUENCY |
sahilmgandhi | 18:6a4db94011d3 | 1576 | #define RTC_DEFAULT_CONFIG_FREQUENCY 32768 |
sahilmgandhi | 18:6a4db94011d3 | 1577 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1578 | |
sahilmgandhi | 18:6a4db94011d3 | 1579 | // <q> RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering |
sahilmgandhi | 18:6a4db94011d3 | 1580 | |
sahilmgandhi | 18:6a4db94011d3 | 1581 | |
sahilmgandhi | 18:6a4db94011d3 | 1582 | #ifndef RTC_DEFAULT_CONFIG_RELIABLE |
sahilmgandhi | 18:6a4db94011d3 | 1583 | #define RTC_DEFAULT_CONFIG_RELIABLE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1584 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1585 | |
sahilmgandhi | 18:6a4db94011d3 | 1586 | // <o> RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1587 | |
sahilmgandhi | 18:6a4db94011d3 | 1588 | |
sahilmgandhi | 18:6a4db94011d3 | 1589 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1590 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1591 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1592 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1593 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1594 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1595 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1596 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1597 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1598 | |
sahilmgandhi | 18:6a4db94011d3 | 1599 | #ifndef RTC_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1600 | #define RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1601 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1602 | |
sahilmgandhi | 18:6a4db94011d3 | 1603 | // <q> RTC0_ENABLED - Enable RTC0 instance |
sahilmgandhi | 18:6a4db94011d3 | 1604 | |
sahilmgandhi | 18:6a4db94011d3 | 1605 | |
sahilmgandhi | 18:6a4db94011d3 | 1606 | #ifndef RTC0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1607 | #define RTC0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1608 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1609 | |
sahilmgandhi | 18:6a4db94011d3 | 1610 | // <q> RTC1_ENABLED - Enable RTC1 instance |
sahilmgandhi | 18:6a4db94011d3 | 1611 | |
sahilmgandhi | 18:6a4db94011d3 | 1612 | |
sahilmgandhi | 18:6a4db94011d3 | 1613 | #ifndef RTC1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1614 | #define RTC1_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1615 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1616 | |
sahilmgandhi | 18:6a4db94011d3 | 1617 | // <q> RTC2_ENABLED - Enable RTC2 instance |
sahilmgandhi | 18:6a4db94011d3 | 1618 | |
sahilmgandhi | 18:6a4db94011d3 | 1619 | |
sahilmgandhi | 18:6a4db94011d3 | 1620 | #ifndef RTC2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1621 | #define RTC2_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1622 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1623 | |
sahilmgandhi | 18:6a4db94011d3 | 1624 | // <o> NRF_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt |
sahilmgandhi | 18:6a4db94011d3 | 1625 | #ifndef NRF_MAXIMUM_LATENCY_US |
sahilmgandhi | 18:6a4db94011d3 | 1626 | #define NRF_MAXIMUM_LATENCY_US 2000 |
sahilmgandhi | 18:6a4db94011d3 | 1627 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1628 | |
sahilmgandhi | 18:6a4db94011d3 | 1629 | // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1630 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1631 | #ifndef RTC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1632 | #define RTC_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1633 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1634 | #if RTC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1635 | // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1636 | |
sahilmgandhi | 18:6a4db94011d3 | 1637 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1638 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1639 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1640 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1641 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1642 | |
sahilmgandhi | 18:6a4db94011d3 | 1643 | #ifndef RTC_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1644 | #define RTC_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1645 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1646 | |
sahilmgandhi | 18:6a4db94011d3 | 1647 | // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1648 | |
sahilmgandhi | 18:6a4db94011d3 | 1649 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1650 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1651 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1652 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1653 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1654 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1655 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1656 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1657 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1658 | |
sahilmgandhi | 18:6a4db94011d3 | 1659 | #ifndef RTC_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1660 | #define RTC_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1661 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1662 | |
sahilmgandhi | 18:6a4db94011d3 | 1663 | // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1664 | |
sahilmgandhi | 18:6a4db94011d3 | 1665 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1666 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1667 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1668 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1669 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1670 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1671 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1672 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1673 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1674 | |
sahilmgandhi | 18:6a4db94011d3 | 1675 | #ifndef RTC_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1676 | #define RTC_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1677 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1678 | |
sahilmgandhi | 18:6a4db94011d3 | 1679 | #endif //RTC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1680 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1681 | |
sahilmgandhi | 18:6a4db94011d3 | 1682 | #endif //RTC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1683 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1684 | |
sahilmgandhi | 18:6a4db94011d3 | 1685 | // <e> SAADC_ENABLED - nrf_drv_saadc - SAADC peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1686 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1687 | #ifndef SAADC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1688 | #define SAADC_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1689 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1690 | #if SAADC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1691 | // <o> SAADC_CONFIG_RESOLUTION - Resolution |
sahilmgandhi | 18:6a4db94011d3 | 1692 | |
sahilmgandhi | 18:6a4db94011d3 | 1693 | // <0=> 8 bit |
sahilmgandhi | 18:6a4db94011d3 | 1694 | // <1=> 10 bit |
sahilmgandhi | 18:6a4db94011d3 | 1695 | // <2=> 12 bit |
sahilmgandhi | 18:6a4db94011d3 | 1696 | // <3=> 14 bit |
sahilmgandhi | 18:6a4db94011d3 | 1697 | |
sahilmgandhi | 18:6a4db94011d3 | 1698 | #ifndef SAADC_CONFIG_RESOLUTION |
sahilmgandhi | 18:6a4db94011d3 | 1699 | #define SAADC_CONFIG_RESOLUTION 1 |
sahilmgandhi | 18:6a4db94011d3 | 1700 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1701 | |
sahilmgandhi | 18:6a4db94011d3 | 1702 | // <o> SAADC_CONFIG_OVERSAMPLE - Sample period |
sahilmgandhi | 18:6a4db94011d3 | 1703 | |
sahilmgandhi | 18:6a4db94011d3 | 1704 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 1705 | // <1=> 2x |
sahilmgandhi | 18:6a4db94011d3 | 1706 | // <2=> 4x |
sahilmgandhi | 18:6a4db94011d3 | 1707 | // <3=> 8x |
sahilmgandhi | 18:6a4db94011d3 | 1708 | // <4=> 16x |
sahilmgandhi | 18:6a4db94011d3 | 1709 | // <5=> 32x |
sahilmgandhi | 18:6a4db94011d3 | 1710 | // <6=> 64x |
sahilmgandhi | 18:6a4db94011d3 | 1711 | // <7=> 128x |
sahilmgandhi | 18:6a4db94011d3 | 1712 | // <8=> 256x |
sahilmgandhi | 18:6a4db94011d3 | 1713 | |
sahilmgandhi | 18:6a4db94011d3 | 1714 | #ifndef SAADC_CONFIG_OVERSAMPLE |
sahilmgandhi | 18:6a4db94011d3 | 1715 | #define SAADC_CONFIG_OVERSAMPLE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1716 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1717 | |
sahilmgandhi | 18:6a4db94011d3 | 1718 | // <q> SAADC_CONFIG_LP_MODE - Enabling low power mode |
sahilmgandhi | 18:6a4db94011d3 | 1719 | |
sahilmgandhi | 18:6a4db94011d3 | 1720 | |
sahilmgandhi | 18:6a4db94011d3 | 1721 | #ifndef SAADC_CONFIG_LP_MODE |
sahilmgandhi | 18:6a4db94011d3 | 1722 | #define SAADC_CONFIG_LP_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1723 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1724 | |
sahilmgandhi | 18:6a4db94011d3 | 1725 | // <o> SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1726 | |
sahilmgandhi | 18:6a4db94011d3 | 1727 | |
sahilmgandhi | 18:6a4db94011d3 | 1728 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1729 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1730 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1731 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1732 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1733 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1734 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1735 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1736 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1737 | |
sahilmgandhi | 18:6a4db94011d3 | 1738 | #ifndef SAADC_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1739 | #define SAADC_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1740 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1741 | |
sahilmgandhi | 18:6a4db94011d3 | 1742 | // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1743 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1744 | #ifndef SAADC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1745 | #define SAADC_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1746 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1747 | #if SAADC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1748 | // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1749 | |
sahilmgandhi | 18:6a4db94011d3 | 1750 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1751 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1752 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1753 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1754 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1755 | |
sahilmgandhi | 18:6a4db94011d3 | 1756 | #ifndef SAADC_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1757 | #define SAADC_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1758 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1759 | |
sahilmgandhi | 18:6a4db94011d3 | 1760 | // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1761 | |
sahilmgandhi | 18:6a4db94011d3 | 1762 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1763 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1764 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1765 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1766 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1767 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1768 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1769 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1770 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1771 | |
sahilmgandhi | 18:6a4db94011d3 | 1772 | #ifndef SAADC_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1773 | #define SAADC_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1774 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1775 | |
sahilmgandhi | 18:6a4db94011d3 | 1776 | // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1777 | |
sahilmgandhi | 18:6a4db94011d3 | 1778 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1779 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1780 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1781 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1782 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1783 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1784 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1785 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1786 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1787 | |
sahilmgandhi | 18:6a4db94011d3 | 1788 | #ifndef SAADC_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1789 | #define SAADC_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1790 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1791 | |
sahilmgandhi | 18:6a4db94011d3 | 1792 | #endif //SAADC_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1793 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1794 | |
sahilmgandhi | 18:6a4db94011d3 | 1795 | #endif //SAADC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1796 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1797 | |
sahilmgandhi | 18:6a4db94011d3 | 1798 | // <e> SPIS_ENABLED - nrf_drv_spis - SPI Slave driver |
sahilmgandhi | 18:6a4db94011d3 | 1799 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1800 | #ifndef SPIS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1801 | #define SPIS_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1802 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1803 | #if SPIS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1804 | // <o> SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1805 | |
sahilmgandhi | 18:6a4db94011d3 | 1806 | |
sahilmgandhi | 18:6a4db94011d3 | 1807 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1808 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1809 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1810 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1811 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1812 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1813 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1814 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1815 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1816 | |
sahilmgandhi | 18:6a4db94011d3 | 1817 | #ifndef SPIS_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1818 | #define SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1819 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1820 | |
sahilmgandhi | 18:6a4db94011d3 | 1821 | // <o> SPIS_DEFAULT_MODE - Mode |
sahilmgandhi | 18:6a4db94011d3 | 1822 | |
sahilmgandhi | 18:6a4db94011d3 | 1823 | // <0=> MODE_0 |
sahilmgandhi | 18:6a4db94011d3 | 1824 | // <1=> MODE_1 |
sahilmgandhi | 18:6a4db94011d3 | 1825 | // <2=> MODE_2 |
sahilmgandhi | 18:6a4db94011d3 | 1826 | // <3=> MODE_3 |
sahilmgandhi | 18:6a4db94011d3 | 1827 | |
sahilmgandhi | 18:6a4db94011d3 | 1828 | #ifndef SPIS_DEFAULT_MODE |
sahilmgandhi | 18:6a4db94011d3 | 1829 | #define SPIS_DEFAULT_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 1830 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1831 | |
sahilmgandhi | 18:6a4db94011d3 | 1832 | // <o> SPIS_DEFAULT_BIT_ORDER - SPIS default bit order |
sahilmgandhi | 18:6a4db94011d3 | 1833 | |
sahilmgandhi | 18:6a4db94011d3 | 1834 | // <0=> MSB first |
sahilmgandhi | 18:6a4db94011d3 | 1835 | // <1=> LSB first |
sahilmgandhi | 18:6a4db94011d3 | 1836 | |
sahilmgandhi | 18:6a4db94011d3 | 1837 | #ifndef SPIS_DEFAULT_BIT_ORDER |
sahilmgandhi | 18:6a4db94011d3 | 1838 | #define SPIS_DEFAULT_BIT_ORDER 0 |
sahilmgandhi | 18:6a4db94011d3 | 1839 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1840 | |
sahilmgandhi | 18:6a4db94011d3 | 1841 | // <o> SPIS_DEFAULT_DEF - SPIS default DEF character <0-255> |
sahilmgandhi | 18:6a4db94011d3 | 1842 | |
sahilmgandhi | 18:6a4db94011d3 | 1843 | |
sahilmgandhi | 18:6a4db94011d3 | 1844 | #ifndef SPIS_DEFAULT_DEF |
sahilmgandhi | 18:6a4db94011d3 | 1845 | #define SPIS_DEFAULT_DEF 255 |
sahilmgandhi | 18:6a4db94011d3 | 1846 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1847 | |
sahilmgandhi | 18:6a4db94011d3 | 1848 | // <o> SPIS_DEFAULT_ORC - SPIS default ORC character <0-255> |
sahilmgandhi | 18:6a4db94011d3 | 1849 | |
sahilmgandhi | 18:6a4db94011d3 | 1850 | |
sahilmgandhi | 18:6a4db94011d3 | 1851 | #ifndef SPIS_DEFAULT_ORC |
sahilmgandhi | 18:6a4db94011d3 | 1852 | #define SPIS_DEFAULT_ORC 255 |
sahilmgandhi | 18:6a4db94011d3 | 1853 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1854 | |
sahilmgandhi | 18:6a4db94011d3 | 1855 | // <q> SPIS0_ENABLED - Enable SPIS0 instance |
sahilmgandhi | 18:6a4db94011d3 | 1856 | |
sahilmgandhi | 18:6a4db94011d3 | 1857 | |
sahilmgandhi | 18:6a4db94011d3 | 1858 | #ifndef SPIS0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1859 | #define SPIS0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1860 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1861 | |
sahilmgandhi | 18:6a4db94011d3 | 1862 | // <q> SPIS1_ENABLED - Enable SPIS1 instance |
sahilmgandhi | 18:6a4db94011d3 | 1863 | |
sahilmgandhi | 18:6a4db94011d3 | 1864 | |
sahilmgandhi | 18:6a4db94011d3 | 1865 | #ifndef SPIS1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1866 | #define SPIS1_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1867 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1868 | |
sahilmgandhi | 18:6a4db94011d3 | 1869 | // <q> SPIS2_ENABLED - Enable SPIS2 instance |
sahilmgandhi | 18:6a4db94011d3 | 1870 | |
sahilmgandhi | 18:6a4db94011d3 | 1871 | |
sahilmgandhi | 18:6a4db94011d3 | 1872 | #ifndef SPIS2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1873 | #define SPIS2_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1874 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1875 | |
sahilmgandhi | 18:6a4db94011d3 | 1876 | // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 1877 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1878 | #ifndef SPIS_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1879 | #define SPIS_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 1880 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1881 | #if SPIS_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1882 | // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 1883 | |
sahilmgandhi | 18:6a4db94011d3 | 1884 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 1885 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 1886 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 1887 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 1888 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 1889 | |
sahilmgandhi | 18:6a4db94011d3 | 1890 | #ifndef SPIS_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 1891 | #define SPIS_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 1892 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1893 | |
sahilmgandhi | 18:6a4db94011d3 | 1894 | // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1895 | |
sahilmgandhi | 18:6a4db94011d3 | 1896 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1897 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1898 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1899 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1900 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1901 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1902 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1903 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1904 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1905 | |
sahilmgandhi | 18:6a4db94011d3 | 1906 | #ifndef SPIS_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1907 | #define SPIS_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1908 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1909 | |
sahilmgandhi | 18:6a4db94011d3 | 1910 | // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 1911 | |
sahilmgandhi | 18:6a4db94011d3 | 1912 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 1913 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 1914 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 1915 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 1916 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 1917 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 1918 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 1919 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 1920 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 1921 | |
sahilmgandhi | 18:6a4db94011d3 | 1922 | #ifndef SPIS_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 1923 | #define SPIS_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 1924 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1925 | |
sahilmgandhi | 18:6a4db94011d3 | 1926 | #endif //SPIS_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1927 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1928 | |
sahilmgandhi | 18:6a4db94011d3 | 1929 | #endif //SPIS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1930 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1931 | |
sahilmgandhi | 18:6a4db94011d3 | 1932 | // <e> SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 1933 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1934 | #ifndef SPI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1935 | #define SPI_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1936 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1937 | #if SPI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1938 | // <o> SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 1939 | |
sahilmgandhi | 18:6a4db94011d3 | 1940 | |
sahilmgandhi | 18:6a4db94011d3 | 1941 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 1942 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 1943 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 1944 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 1945 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 1946 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 1947 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 1948 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 1949 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 1950 | |
sahilmgandhi | 18:6a4db94011d3 | 1951 | #ifndef SPI_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 1952 | #define SPI_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 1953 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1954 | |
sahilmgandhi | 18:6a4db94011d3 | 1955 | // <e> SPI0_ENABLED - Enable SPI0 instance |
sahilmgandhi | 18:6a4db94011d3 | 1956 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1957 | #ifndef SPI0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1958 | #define SPI0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1959 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1960 | #if SPI0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1961 | // <q> SPI0_USE_EASY_DMA - Use EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 1962 | |
sahilmgandhi | 18:6a4db94011d3 | 1963 | |
sahilmgandhi | 18:6a4db94011d3 | 1964 | #ifndef SPI0_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 1965 | #define SPI0_USE_EASY_DMA 1 |
sahilmgandhi | 18:6a4db94011d3 | 1966 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1967 | |
sahilmgandhi | 18:6a4db94011d3 | 1968 | // <o> SPI0_DEFAULT_FREQUENCY - SPI frequency |
sahilmgandhi | 18:6a4db94011d3 | 1969 | |
sahilmgandhi | 18:6a4db94011d3 | 1970 | // <33554432=> 125 kHz |
sahilmgandhi | 18:6a4db94011d3 | 1971 | // <67108864=> 250 kHz |
sahilmgandhi | 18:6a4db94011d3 | 1972 | // <134217728=> 500 kHz |
sahilmgandhi | 18:6a4db94011d3 | 1973 | // <268435456=> 1 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1974 | // <536870912=> 2 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1975 | // <1073741824=> 4 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1976 | // <2147483648=> 8 MHz |
sahilmgandhi | 18:6a4db94011d3 | 1977 | |
sahilmgandhi | 18:6a4db94011d3 | 1978 | #ifndef SPI0_DEFAULT_FREQUENCY |
sahilmgandhi | 18:6a4db94011d3 | 1979 | #define SPI0_DEFAULT_FREQUENCY 1073741824 |
sahilmgandhi | 18:6a4db94011d3 | 1980 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1981 | |
sahilmgandhi | 18:6a4db94011d3 | 1982 | #endif //SPI0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1983 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 1984 | |
sahilmgandhi | 18:6a4db94011d3 | 1985 | // <e> SPI1_ENABLED - Enable SPI1 instance |
sahilmgandhi | 18:6a4db94011d3 | 1986 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 1987 | #ifndef SPI1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1988 | #define SPI1_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 1989 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1990 | #if SPI1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 1991 | // <q> SPI1_USE_EASY_DMA - Use EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 1992 | |
sahilmgandhi | 18:6a4db94011d3 | 1993 | |
sahilmgandhi | 18:6a4db94011d3 | 1994 | #ifndef SPI1_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 1995 | #define SPI1_USE_EASY_DMA 1 |
sahilmgandhi | 18:6a4db94011d3 | 1996 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 1997 | |
sahilmgandhi | 18:6a4db94011d3 | 1998 | // <o> SPI1_DEFAULT_FREQUENCY - SPI frequency |
sahilmgandhi | 18:6a4db94011d3 | 1999 | |
sahilmgandhi | 18:6a4db94011d3 | 2000 | // <33554432=> 125 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2001 | // <67108864=> 250 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2002 | // <134217728=> 500 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2003 | // <268435456=> 1 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2004 | // <536870912=> 2 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2005 | // <1073741824=> 4 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2006 | // <2147483648=> 8 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2007 | |
sahilmgandhi | 18:6a4db94011d3 | 2008 | #ifndef SPI1_DEFAULT_FREQUENCY |
sahilmgandhi | 18:6a4db94011d3 | 2009 | #define SPI1_DEFAULT_FREQUENCY 1073741824 |
sahilmgandhi | 18:6a4db94011d3 | 2010 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2011 | |
sahilmgandhi | 18:6a4db94011d3 | 2012 | #endif //SPI1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2013 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2014 | |
sahilmgandhi | 18:6a4db94011d3 | 2015 | // <e> SPI2_ENABLED - Enable SPI2 instance |
sahilmgandhi | 18:6a4db94011d3 | 2016 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2017 | #ifndef SPI2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2018 | #define SPI2_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2019 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2020 | #if SPI2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2021 | // <q> SPI2_USE_EASY_DMA - Use EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 2022 | |
sahilmgandhi | 18:6a4db94011d3 | 2023 | |
sahilmgandhi | 18:6a4db94011d3 | 2024 | #ifndef SPI2_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 2025 | #define SPI2_USE_EASY_DMA 1 |
sahilmgandhi | 18:6a4db94011d3 | 2026 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2027 | |
sahilmgandhi | 18:6a4db94011d3 | 2028 | // <q> SPI2_DEFAULT_FREQUENCY - Use EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 2029 | |
sahilmgandhi | 18:6a4db94011d3 | 2030 | |
sahilmgandhi | 18:6a4db94011d3 | 2031 | #ifndef SPI2_DEFAULT_FREQUENCY |
sahilmgandhi | 18:6a4db94011d3 | 2032 | #define SPI2_DEFAULT_FREQUENCY 1 |
sahilmgandhi | 18:6a4db94011d3 | 2033 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2034 | |
sahilmgandhi | 18:6a4db94011d3 | 2035 | #endif //SPI2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2036 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2037 | |
sahilmgandhi | 18:6a4db94011d3 | 2038 | // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 2039 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2040 | #ifndef SPI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2041 | #define SPI_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2042 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2043 | #if SPI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2044 | // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 2045 | |
sahilmgandhi | 18:6a4db94011d3 | 2046 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 2047 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 2048 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 2049 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 2050 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 2051 | |
sahilmgandhi | 18:6a4db94011d3 | 2052 | #ifndef SPI_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 2053 | #define SPI_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 2054 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2055 | |
sahilmgandhi | 18:6a4db94011d3 | 2056 | // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2057 | |
sahilmgandhi | 18:6a4db94011d3 | 2058 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2059 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2060 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2061 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2062 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2063 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2064 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2065 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2066 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2067 | |
sahilmgandhi | 18:6a4db94011d3 | 2068 | #ifndef SPI_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2069 | #define SPI_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2070 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2071 | |
sahilmgandhi | 18:6a4db94011d3 | 2072 | // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2073 | |
sahilmgandhi | 18:6a4db94011d3 | 2074 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2075 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2076 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2077 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2078 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2079 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2080 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2081 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2082 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2083 | |
sahilmgandhi | 18:6a4db94011d3 | 2084 | #ifndef SPI_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2085 | #define SPI_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2086 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2087 | |
sahilmgandhi | 18:6a4db94011d3 | 2088 | #endif //SPI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2089 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2090 | |
sahilmgandhi | 18:6a4db94011d3 | 2091 | #endif //SPI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2092 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2093 | |
sahilmgandhi | 18:6a4db94011d3 | 2094 | // <q> SYSTICK_ENABLED - nrf_drv_systick - SysTick driver |
sahilmgandhi | 18:6a4db94011d3 | 2095 | |
sahilmgandhi | 18:6a4db94011d3 | 2096 | |
sahilmgandhi | 18:6a4db94011d3 | 2097 | #ifndef SYSTICK_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2098 | #define SYSTICK_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2099 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2100 | |
sahilmgandhi | 18:6a4db94011d3 | 2101 | // <e> TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver |
sahilmgandhi | 18:6a4db94011d3 | 2102 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2103 | #ifndef TIMER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2104 | #define TIMER_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2105 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2106 | #if TIMER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2107 | // <o> TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode |
sahilmgandhi | 18:6a4db94011d3 | 2108 | |
sahilmgandhi | 18:6a4db94011d3 | 2109 | // <0=> 16 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2110 | // <1=> 8 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2111 | // <2=> 4 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2112 | // <3=> 2 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2113 | // <4=> 1 MHz |
sahilmgandhi | 18:6a4db94011d3 | 2114 | // <5=> 500 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2115 | // <6=> 250 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2116 | // <7=> 125 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2117 | // <8=> 62.5 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2118 | // <9=> 31.25 kHz |
sahilmgandhi | 18:6a4db94011d3 | 2119 | |
sahilmgandhi | 18:6a4db94011d3 | 2120 | #ifndef TIMER_DEFAULT_CONFIG_FREQUENCY |
sahilmgandhi | 18:6a4db94011d3 | 2121 | #define TIMER_DEFAULT_CONFIG_FREQUENCY 0 |
sahilmgandhi | 18:6a4db94011d3 | 2122 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2123 | |
sahilmgandhi | 18:6a4db94011d3 | 2124 | // <o> TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation |
sahilmgandhi | 18:6a4db94011d3 | 2125 | |
sahilmgandhi | 18:6a4db94011d3 | 2126 | // <0=> Timer |
sahilmgandhi | 18:6a4db94011d3 | 2127 | // <1=> Counter |
sahilmgandhi | 18:6a4db94011d3 | 2128 | |
sahilmgandhi | 18:6a4db94011d3 | 2129 | #ifndef TIMER_DEFAULT_CONFIG_MODE |
sahilmgandhi | 18:6a4db94011d3 | 2130 | #define TIMER_DEFAULT_CONFIG_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 2131 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2132 | |
sahilmgandhi | 18:6a4db94011d3 | 2133 | // <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width |
sahilmgandhi | 18:6a4db94011d3 | 2134 | |
sahilmgandhi | 18:6a4db94011d3 | 2135 | // <0=> 16 bit |
sahilmgandhi | 18:6a4db94011d3 | 2136 | // <1=> 8 bit |
sahilmgandhi | 18:6a4db94011d3 | 2137 | // <2=> 24 bit |
sahilmgandhi | 18:6a4db94011d3 | 2138 | // <3=> 32 bit |
sahilmgandhi | 18:6a4db94011d3 | 2139 | |
sahilmgandhi | 18:6a4db94011d3 | 2140 | #ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH |
sahilmgandhi | 18:6a4db94011d3 | 2141 | #define TIMER_DEFAULT_CONFIG_BIT_WIDTH 0 |
sahilmgandhi | 18:6a4db94011d3 | 2142 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2143 | |
sahilmgandhi | 18:6a4db94011d3 | 2144 | // <o> TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 2145 | |
sahilmgandhi | 18:6a4db94011d3 | 2146 | |
sahilmgandhi | 18:6a4db94011d3 | 2147 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 2148 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 2149 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 2150 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 2151 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 2152 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 2153 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 2154 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 2155 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 2156 | |
sahilmgandhi | 18:6a4db94011d3 | 2157 | #ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 2158 | #define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 2159 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2160 | |
sahilmgandhi | 18:6a4db94011d3 | 2161 | // <q> TIMER0_ENABLED - Enable TIMER0 instance |
sahilmgandhi | 18:6a4db94011d3 | 2162 | |
sahilmgandhi | 18:6a4db94011d3 | 2163 | |
sahilmgandhi | 18:6a4db94011d3 | 2164 | #ifndef TIMER0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2165 | #define TIMER0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2166 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2167 | |
sahilmgandhi | 18:6a4db94011d3 | 2168 | // <q> TIMER1_ENABLED - Enable TIMER1 instance |
sahilmgandhi | 18:6a4db94011d3 | 2169 | |
sahilmgandhi | 18:6a4db94011d3 | 2170 | |
sahilmgandhi | 18:6a4db94011d3 | 2171 | #ifndef TIMER1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2172 | #define TIMER1_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2173 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2174 | |
sahilmgandhi | 18:6a4db94011d3 | 2175 | // <q> TIMER2_ENABLED - Enable TIMER2 instance |
sahilmgandhi | 18:6a4db94011d3 | 2176 | |
sahilmgandhi | 18:6a4db94011d3 | 2177 | |
sahilmgandhi | 18:6a4db94011d3 | 2178 | #ifndef TIMER2_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2179 | #define TIMER2_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2180 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2181 | |
sahilmgandhi | 18:6a4db94011d3 | 2182 | // <q> TIMER3_ENABLED - Enable TIMER3 instance |
sahilmgandhi | 18:6a4db94011d3 | 2183 | |
sahilmgandhi | 18:6a4db94011d3 | 2184 | |
sahilmgandhi | 18:6a4db94011d3 | 2185 | #ifndef TIMER3_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2186 | #define TIMER3_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2187 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2188 | |
sahilmgandhi | 18:6a4db94011d3 | 2189 | // <q> TIMER4_ENABLED - Enable TIMER4 instance |
sahilmgandhi | 18:6a4db94011d3 | 2190 | |
sahilmgandhi | 18:6a4db94011d3 | 2191 | |
sahilmgandhi | 18:6a4db94011d3 | 2192 | #ifndef TIMER4_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2193 | #define TIMER4_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2194 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2195 | |
sahilmgandhi | 18:6a4db94011d3 | 2196 | // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 2197 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2198 | #ifndef TIMER_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2199 | #define TIMER_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2200 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2201 | #if TIMER_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2202 | // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 2203 | |
sahilmgandhi | 18:6a4db94011d3 | 2204 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 2205 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 2206 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 2207 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 2208 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 2209 | |
sahilmgandhi | 18:6a4db94011d3 | 2210 | #ifndef TIMER_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 2211 | #define TIMER_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 2212 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2213 | |
sahilmgandhi | 18:6a4db94011d3 | 2214 | // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2215 | |
sahilmgandhi | 18:6a4db94011d3 | 2216 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2217 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2218 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2219 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2220 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2221 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2222 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2223 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2224 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2225 | |
sahilmgandhi | 18:6a4db94011d3 | 2226 | #ifndef TIMER_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2227 | #define TIMER_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2228 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2229 | |
sahilmgandhi | 18:6a4db94011d3 | 2230 | // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2231 | |
sahilmgandhi | 18:6a4db94011d3 | 2232 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2233 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2234 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2235 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2236 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2237 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2238 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2239 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2240 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2241 | |
sahilmgandhi | 18:6a4db94011d3 | 2242 | #ifndef TIMER_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2243 | #define TIMER_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2244 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2245 | |
sahilmgandhi | 18:6a4db94011d3 | 2246 | #endif //TIMER_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2247 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2248 | |
sahilmgandhi | 18:6a4db94011d3 | 2249 | #endif //TIMER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2250 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2251 | |
sahilmgandhi | 18:6a4db94011d3 | 2252 | // <e> TWIS_ENABLED - nrf_drv_twis - TWIS peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 2253 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2254 | #ifndef TWIS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2255 | #define TWIS_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2256 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2257 | #if TWIS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2258 | // <o> TWIS_DEFAULT_CONFIG_ADDR0 - Address0 |
sahilmgandhi | 18:6a4db94011d3 | 2259 | #ifndef TWIS_DEFAULT_CONFIG_ADDR0 |
sahilmgandhi | 18:6a4db94011d3 | 2260 | #define TWIS_DEFAULT_CONFIG_ADDR0 0 |
sahilmgandhi | 18:6a4db94011d3 | 2261 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2262 | |
sahilmgandhi | 18:6a4db94011d3 | 2263 | // <o> TWIS_DEFAULT_CONFIG_ADDR1 - Address1 |
sahilmgandhi | 18:6a4db94011d3 | 2264 | #ifndef TWIS_DEFAULT_CONFIG_ADDR1 |
sahilmgandhi | 18:6a4db94011d3 | 2265 | #define TWIS_DEFAULT_CONFIG_ADDR1 0 |
sahilmgandhi | 18:6a4db94011d3 | 2266 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2267 | |
sahilmgandhi | 18:6a4db94011d3 | 2268 | // <o> TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration |
sahilmgandhi | 18:6a4db94011d3 | 2269 | |
sahilmgandhi | 18:6a4db94011d3 | 2270 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 2271 | // <1=> Pull down |
sahilmgandhi | 18:6a4db94011d3 | 2272 | // <3=> Pull up |
sahilmgandhi | 18:6a4db94011d3 | 2273 | |
sahilmgandhi | 18:6a4db94011d3 | 2274 | #ifndef TWIS_DEFAULT_CONFIG_SCL_PULL |
sahilmgandhi | 18:6a4db94011d3 | 2275 | #define TWIS_DEFAULT_CONFIG_SCL_PULL 0 |
sahilmgandhi | 18:6a4db94011d3 | 2276 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2277 | |
sahilmgandhi | 18:6a4db94011d3 | 2278 | // <o> TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration |
sahilmgandhi | 18:6a4db94011d3 | 2279 | |
sahilmgandhi | 18:6a4db94011d3 | 2280 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 2281 | // <1=> Pull down |
sahilmgandhi | 18:6a4db94011d3 | 2282 | // <3=> Pull up |
sahilmgandhi | 18:6a4db94011d3 | 2283 | |
sahilmgandhi | 18:6a4db94011d3 | 2284 | #ifndef TWIS_DEFAULT_CONFIG_SDA_PULL |
sahilmgandhi | 18:6a4db94011d3 | 2285 | #define TWIS_DEFAULT_CONFIG_SDA_PULL 0 |
sahilmgandhi | 18:6a4db94011d3 | 2286 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2287 | |
sahilmgandhi | 18:6a4db94011d3 | 2288 | // <o> TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 2289 | |
sahilmgandhi | 18:6a4db94011d3 | 2290 | |
sahilmgandhi | 18:6a4db94011d3 | 2291 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 2292 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 2293 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 2294 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 2295 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 2296 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 2297 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 2298 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 2299 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 2300 | |
sahilmgandhi | 18:6a4db94011d3 | 2301 | #ifndef TWIS_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 2302 | #define TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 2303 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2304 | |
sahilmgandhi | 18:6a4db94011d3 | 2305 | // <q> TWIS0_ENABLED - Enable TWIS0 instance |
sahilmgandhi | 18:6a4db94011d3 | 2306 | |
sahilmgandhi | 18:6a4db94011d3 | 2307 | |
sahilmgandhi | 18:6a4db94011d3 | 2308 | #ifndef TWIS0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2309 | #define TWIS0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2310 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2311 | |
sahilmgandhi | 18:6a4db94011d3 | 2312 | // <q> TWIS1_ENABLED - Enable TWIS1 instance |
sahilmgandhi | 18:6a4db94011d3 | 2313 | |
sahilmgandhi | 18:6a4db94011d3 | 2314 | |
sahilmgandhi | 18:6a4db94011d3 | 2315 | #ifndef TWIS1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2316 | #define TWIS1_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2317 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2318 | |
sahilmgandhi | 18:6a4db94011d3 | 2319 | // <q> TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once |
sahilmgandhi | 18:6a4db94011d3 | 2320 | |
sahilmgandhi | 18:6a4db94011d3 | 2321 | |
sahilmgandhi | 18:6a4db94011d3 | 2322 | // <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code. |
sahilmgandhi | 18:6a4db94011d3 | 2323 | |
sahilmgandhi | 18:6a4db94011d3 | 2324 | #ifndef TWIS_ASSUME_INIT_AFTER_RESET_ONLY |
sahilmgandhi | 18:6a4db94011d3 | 2325 | #define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 |
sahilmgandhi | 18:6a4db94011d3 | 2326 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2327 | |
sahilmgandhi | 18:6a4db94011d3 | 2328 | // <q> TWIS_NO_SYNC_MODE - Remove support for synchronous mode |
sahilmgandhi | 18:6a4db94011d3 | 2329 | |
sahilmgandhi | 18:6a4db94011d3 | 2330 | |
sahilmgandhi | 18:6a4db94011d3 | 2331 | // <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources. |
sahilmgandhi | 18:6a4db94011d3 | 2332 | |
sahilmgandhi | 18:6a4db94011d3 | 2333 | #ifndef TWIS_NO_SYNC_MODE |
sahilmgandhi | 18:6a4db94011d3 | 2334 | #define TWIS_NO_SYNC_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 2335 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2336 | |
sahilmgandhi | 18:6a4db94011d3 | 2337 | // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 2338 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2339 | #ifndef TWIS_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2340 | #define TWIS_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2341 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2342 | #if TWIS_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2343 | // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 2344 | |
sahilmgandhi | 18:6a4db94011d3 | 2345 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 2346 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 2347 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 2348 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 2349 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 2350 | |
sahilmgandhi | 18:6a4db94011d3 | 2351 | #ifndef TWIS_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 2352 | #define TWIS_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 2353 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2354 | |
sahilmgandhi | 18:6a4db94011d3 | 2355 | // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2356 | |
sahilmgandhi | 18:6a4db94011d3 | 2357 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2358 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2359 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2360 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2361 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2362 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2363 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2364 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2365 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2366 | |
sahilmgandhi | 18:6a4db94011d3 | 2367 | #ifndef TWIS_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2368 | #define TWIS_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2369 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2370 | |
sahilmgandhi | 18:6a4db94011d3 | 2371 | // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2372 | |
sahilmgandhi | 18:6a4db94011d3 | 2373 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2374 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2375 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2376 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2377 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2378 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2379 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2380 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2381 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2382 | |
sahilmgandhi | 18:6a4db94011d3 | 2383 | #ifndef TWIS_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2384 | #define TWIS_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2385 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2386 | |
sahilmgandhi | 18:6a4db94011d3 | 2387 | #endif //TWIS_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2388 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2389 | |
sahilmgandhi | 18:6a4db94011d3 | 2390 | #endif //TWIS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2391 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2392 | |
sahilmgandhi | 18:6a4db94011d3 | 2393 | // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 2394 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2395 | #ifndef TWI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2396 | #define TWI_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2397 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2398 | #if TWI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2399 | // <o> TWI_DEFAULT_CONFIG_FREQUENCY - Frequency |
sahilmgandhi | 18:6a4db94011d3 | 2400 | |
sahilmgandhi | 18:6a4db94011d3 | 2401 | // <26738688=> 100k |
sahilmgandhi | 18:6a4db94011d3 | 2402 | // <67108864=> 250k |
sahilmgandhi | 18:6a4db94011d3 | 2403 | // <104857600=> 400k |
sahilmgandhi | 18:6a4db94011d3 | 2404 | |
sahilmgandhi | 18:6a4db94011d3 | 2405 | #ifndef TWI_DEFAULT_CONFIG_FREQUENCY |
sahilmgandhi | 18:6a4db94011d3 | 2406 | #define TWI_DEFAULT_CONFIG_FREQUENCY 26738688 |
sahilmgandhi | 18:6a4db94011d3 | 2407 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2408 | |
sahilmgandhi | 18:6a4db94011d3 | 2409 | // <q> TWI_DEFAULT_CONFIG_CLR_BUS_INIT - Enables bus clearing procedure during init |
sahilmgandhi | 18:6a4db94011d3 | 2410 | |
sahilmgandhi | 18:6a4db94011d3 | 2411 | |
sahilmgandhi | 18:6a4db94011d3 | 2412 | #ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT |
sahilmgandhi | 18:6a4db94011d3 | 2413 | #define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0 |
sahilmgandhi | 18:6a4db94011d3 | 2414 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2415 | |
sahilmgandhi | 18:6a4db94011d3 | 2416 | // <q> TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit |
sahilmgandhi | 18:6a4db94011d3 | 2417 | |
sahilmgandhi | 18:6a4db94011d3 | 2418 | |
sahilmgandhi | 18:6a4db94011d3 | 2419 | #ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT |
sahilmgandhi | 18:6a4db94011d3 | 2420 | #define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0 |
sahilmgandhi | 18:6a4db94011d3 | 2421 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2422 | |
sahilmgandhi | 18:6a4db94011d3 | 2423 | // <o> TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 2424 | |
sahilmgandhi | 18:6a4db94011d3 | 2425 | |
sahilmgandhi | 18:6a4db94011d3 | 2426 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 2427 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 2428 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 2429 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 2430 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 2431 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 2432 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 2433 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 2434 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 2435 | |
sahilmgandhi | 18:6a4db94011d3 | 2436 | #ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 2437 | #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 2438 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2439 | |
sahilmgandhi | 18:6a4db94011d3 | 2440 | // <e> TWI0_ENABLED - Enable TWI0 instance |
sahilmgandhi | 18:6a4db94011d3 | 2441 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2442 | #ifndef TWI0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2443 | #define TWI0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2444 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2445 | #if TWI0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2446 | // <q> TWI0_USE_EASY_DMA - Use EasyDMA (if present) |
sahilmgandhi | 18:6a4db94011d3 | 2447 | |
sahilmgandhi | 18:6a4db94011d3 | 2448 | |
sahilmgandhi | 18:6a4db94011d3 | 2449 | #ifndef TWI0_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 2450 | #define TWI0_USE_EASY_DMA 0 |
sahilmgandhi | 18:6a4db94011d3 | 2451 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2452 | |
sahilmgandhi | 18:6a4db94011d3 | 2453 | #endif //TWI0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2454 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2455 | |
sahilmgandhi | 18:6a4db94011d3 | 2456 | // <e> TWI1_ENABLED - Enable TWI1 instance |
sahilmgandhi | 18:6a4db94011d3 | 2457 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2458 | #ifndef TWI1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2459 | #define TWI1_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2460 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2461 | #if TWI1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2462 | // <q> TWI1_USE_EASY_DMA - Use EasyDMA (if present) |
sahilmgandhi | 18:6a4db94011d3 | 2463 | |
sahilmgandhi | 18:6a4db94011d3 | 2464 | |
sahilmgandhi | 18:6a4db94011d3 | 2465 | #ifndef TWI1_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 2466 | #define TWI1_USE_EASY_DMA 0 |
sahilmgandhi | 18:6a4db94011d3 | 2467 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2468 | |
sahilmgandhi | 18:6a4db94011d3 | 2469 | #endif //TWI1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2470 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2471 | |
sahilmgandhi | 18:6a4db94011d3 | 2472 | // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 2473 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2474 | #ifndef TWI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2475 | #define TWI_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2476 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2477 | #if TWI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2478 | // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 2479 | |
sahilmgandhi | 18:6a4db94011d3 | 2480 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 2481 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 2482 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 2483 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 2484 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 2485 | |
sahilmgandhi | 18:6a4db94011d3 | 2486 | #ifndef TWI_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 2487 | #define TWI_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 2488 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2489 | |
sahilmgandhi | 18:6a4db94011d3 | 2490 | // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2491 | |
sahilmgandhi | 18:6a4db94011d3 | 2492 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2493 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2494 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2495 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2496 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2497 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2498 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2499 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2500 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2501 | |
sahilmgandhi | 18:6a4db94011d3 | 2502 | #ifndef TWI_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2503 | #define TWI_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2504 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2505 | |
sahilmgandhi | 18:6a4db94011d3 | 2506 | // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2507 | |
sahilmgandhi | 18:6a4db94011d3 | 2508 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2509 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2510 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2511 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2512 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2513 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2514 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2515 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2516 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2517 | |
sahilmgandhi | 18:6a4db94011d3 | 2518 | #ifndef TWI_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2519 | #define TWI_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2520 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2521 | |
sahilmgandhi | 18:6a4db94011d3 | 2522 | #endif //TWI_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2523 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2524 | |
sahilmgandhi | 18:6a4db94011d3 | 2525 | #endif //TWI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2526 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2527 | |
sahilmgandhi | 18:6a4db94011d3 | 2528 | // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 2529 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2530 | #ifndef UART_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2531 | #define UART_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2532 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2533 | #if UART_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2534 | // <o> UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control |
sahilmgandhi | 18:6a4db94011d3 | 2535 | |
sahilmgandhi | 18:6a4db94011d3 | 2536 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 2537 | // <1=> Enabled |
sahilmgandhi | 18:6a4db94011d3 | 2538 | |
sahilmgandhi | 18:6a4db94011d3 | 2539 | #ifndef UART_DEFAULT_CONFIG_HWFC |
sahilmgandhi | 18:6a4db94011d3 | 2540 | #define UART_DEFAULT_CONFIG_HWFC 1 |
sahilmgandhi | 18:6a4db94011d3 | 2541 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2542 | |
sahilmgandhi | 18:6a4db94011d3 | 2543 | // <o> UART_DEFAULT_CONFIG_PARITY - Parity |
sahilmgandhi | 18:6a4db94011d3 | 2544 | |
sahilmgandhi | 18:6a4db94011d3 | 2545 | // <0=> Excluded |
sahilmgandhi | 18:6a4db94011d3 | 2546 | // <14=> Included |
sahilmgandhi | 18:6a4db94011d3 | 2547 | |
sahilmgandhi | 18:6a4db94011d3 | 2548 | #ifndef UART_DEFAULT_CONFIG_PARITY |
sahilmgandhi | 18:6a4db94011d3 | 2549 | #define UART_DEFAULT_CONFIG_PARITY 0 |
sahilmgandhi | 18:6a4db94011d3 | 2550 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2551 | |
sahilmgandhi | 18:6a4db94011d3 | 2552 | // <o> UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate |
sahilmgandhi | 18:6a4db94011d3 | 2553 | |
sahilmgandhi | 18:6a4db94011d3 | 2554 | // <323584=> 1200 baud |
sahilmgandhi | 18:6a4db94011d3 | 2555 | // <643072=> 2400 baud |
sahilmgandhi | 18:6a4db94011d3 | 2556 | // <1290240=> 4800 baud |
sahilmgandhi | 18:6a4db94011d3 | 2557 | // <2576384=> 9600 baud |
sahilmgandhi | 18:6a4db94011d3 | 2558 | // <3862528=> 14400 baud |
sahilmgandhi | 18:6a4db94011d3 | 2559 | // <5152768=> 19200 baud |
sahilmgandhi | 18:6a4db94011d3 | 2560 | // <7716864=> 28800 baud |
sahilmgandhi | 18:6a4db94011d3 | 2561 | // <10289152=> 38400 baud |
sahilmgandhi | 18:6a4db94011d3 | 2562 | // <15400960=> 57600 baud |
sahilmgandhi | 18:6a4db94011d3 | 2563 | // <20615168=> 76800 baud |
sahilmgandhi | 18:6a4db94011d3 | 2564 | // <30801920=> 115200 baud |
sahilmgandhi | 18:6a4db94011d3 | 2565 | // <61865984=> 230400 baud |
sahilmgandhi | 18:6a4db94011d3 | 2566 | // <67108864=> 250000 baud |
sahilmgandhi | 18:6a4db94011d3 | 2567 | // <121634816=> 460800 baud |
sahilmgandhi | 18:6a4db94011d3 | 2568 | // <251658240=> 921600 baud |
sahilmgandhi | 18:6a4db94011d3 | 2569 | // <268435456=> 57600 baud |
sahilmgandhi | 18:6a4db94011d3 | 2570 | |
sahilmgandhi | 18:6a4db94011d3 | 2571 | #ifndef UART_DEFAULT_CONFIG_BAUDRATE |
sahilmgandhi | 18:6a4db94011d3 | 2572 | #define UART_DEFAULT_CONFIG_BAUDRATE 2576384 |
sahilmgandhi | 18:6a4db94011d3 | 2573 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2574 | |
sahilmgandhi | 18:6a4db94011d3 | 2575 | // <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 2576 | |
sahilmgandhi | 18:6a4db94011d3 | 2577 | |
sahilmgandhi | 18:6a4db94011d3 | 2578 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 2579 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 2580 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 2581 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 2582 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 2583 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 2584 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 2585 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 2586 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 2587 | |
sahilmgandhi | 18:6a4db94011d3 | 2588 | #ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 2589 | #define UART_DEFAULT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 2590 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2591 | |
sahilmgandhi | 18:6a4db94011d3 | 2592 | // <q> UART_EASY_DMA_SUPPORT - Driver supporting EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 2593 | |
sahilmgandhi | 18:6a4db94011d3 | 2594 | |
sahilmgandhi | 18:6a4db94011d3 | 2595 | #ifndef UART_EASY_DMA_SUPPORT |
sahilmgandhi | 18:6a4db94011d3 | 2596 | #define UART_EASY_DMA_SUPPORT 1 |
sahilmgandhi | 18:6a4db94011d3 | 2597 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2598 | |
sahilmgandhi | 18:6a4db94011d3 | 2599 | // <q> UART_LEGACY_SUPPORT - Driver supporting Legacy mode |
sahilmgandhi | 18:6a4db94011d3 | 2600 | |
sahilmgandhi | 18:6a4db94011d3 | 2601 | |
sahilmgandhi | 18:6a4db94011d3 | 2602 | #ifndef UART_LEGACY_SUPPORT |
sahilmgandhi | 18:6a4db94011d3 | 2603 | #define UART_LEGACY_SUPPORT 1 |
sahilmgandhi | 18:6a4db94011d3 | 2604 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2605 | |
sahilmgandhi | 18:6a4db94011d3 | 2606 | // <e> UART0_ENABLED - Enable UART0 instance |
sahilmgandhi | 18:6a4db94011d3 | 2607 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2608 | #ifndef UART0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2609 | #define UART0_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2610 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2611 | #if UART0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2612 | // <q> UART0_CONFIG_USE_EASY_DMA - Default setting for using EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 2613 | |
sahilmgandhi | 18:6a4db94011d3 | 2614 | |
sahilmgandhi | 18:6a4db94011d3 | 2615 | #ifndef UART0_CONFIG_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 2616 | #define UART0_CONFIG_USE_EASY_DMA 1 |
sahilmgandhi | 18:6a4db94011d3 | 2617 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2618 | |
sahilmgandhi | 18:6a4db94011d3 | 2619 | #endif //UART0_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2620 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2621 | |
sahilmgandhi | 18:6a4db94011d3 | 2622 | // <e> UART1_ENABLED - Enable UART1 instance |
sahilmgandhi | 18:6a4db94011d3 | 2623 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2624 | #ifndef UART1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2625 | #define UART1_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2626 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2627 | #if UART1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2628 | // <q> UART1_CONFIG_USE_EASY_DMA - Default setting for using EasyDMA |
sahilmgandhi | 18:6a4db94011d3 | 2629 | |
sahilmgandhi | 18:6a4db94011d3 | 2630 | |
sahilmgandhi | 18:6a4db94011d3 | 2631 | #ifndef UART1_CONFIG_USE_EASY_DMA |
sahilmgandhi | 18:6a4db94011d3 | 2632 | #define UART1_CONFIG_USE_EASY_DMA 1 |
sahilmgandhi | 18:6a4db94011d3 | 2633 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2634 | |
sahilmgandhi | 18:6a4db94011d3 | 2635 | #endif //UART1_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2636 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2637 | |
sahilmgandhi | 18:6a4db94011d3 | 2638 | // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 2639 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2640 | #ifndef UART_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2641 | #define UART_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2642 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2643 | #if UART_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2644 | // <o> UART_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 2645 | |
sahilmgandhi | 18:6a4db94011d3 | 2646 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 2647 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 2648 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 2649 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 2650 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 2651 | |
sahilmgandhi | 18:6a4db94011d3 | 2652 | #ifndef UART_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 2653 | #define UART_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 2654 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2655 | |
sahilmgandhi | 18:6a4db94011d3 | 2656 | // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2657 | |
sahilmgandhi | 18:6a4db94011d3 | 2658 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2659 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2660 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2661 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2662 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2663 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2664 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2665 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2666 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2667 | |
sahilmgandhi | 18:6a4db94011d3 | 2668 | #ifndef UART_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2669 | #define UART_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2670 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2671 | |
sahilmgandhi | 18:6a4db94011d3 | 2672 | // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2673 | |
sahilmgandhi | 18:6a4db94011d3 | 2674 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2675 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2676 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2677 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2678 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2679 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2680 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2681 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2682 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2683 | |
sahilmgandhi | 18:6a4db94011d3 | 2684 | #ifndef UART_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2685 | #define UART_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2686 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2687 | |
sahilmgandhi | 18:6a4db94011d3 | 2688 | #endif //UART_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2689 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2690 | |
sahilmgandhi | 18:6a4db94011d3 | 2691 | #endif //UART_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2692 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2693 | |
sahilmgandhi | 18:6a4db94011d3 | 2694 | // <e> USBD_ENABLED - nrf_drv_usbd - USB driver |
sahilmgandhi | 18:6a4db94011d3 | 2695 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2696 | #ifndef USBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2697 | #define USBD_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2698 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2699 | #if USBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2700 | // <o> USBD_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 2701 | |
sahilmgandhi | 18:6a4db94011d3 | 2702 | |
sahilmgandhi | 18:6a4db94011d3 | 2703 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 2704 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 2705 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 2706 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 2707 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 2708 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 2709 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 2710 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 2711 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 2712 | |
sahilmgandhi | 18:6a4db94011d3 | 2713 | #ifndef USBD_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 2714 | #define USBD_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 2715 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2716 | |
sahilmgandhi | 18:6a4db94011d3 | 2717 | // <o> NRF_DRV_USBD_DMASCHEDULER_MODE - USBD SMA scheduler working scheme |
sahilmgandhi | 18:6a4db94011d3 | 2718 | |
sahilmgandhi | 18:6a4db94011d3 | 2719 | // <0=> Prioritized access |
sahilmgandhi | 18:6a4db94011d3 | 2720 | // <1=> Round Robin |
sahilmgandhi | 18:6a4db94011d3 | 2721 | |
sahilmgandhi | 18:6a4db94011d3 | 2722 | #ifndef NRF_DRV_USBD_DMASCHEDULER_MODE |
sahilmgandhi | 18:6a4db94011d3 | 2723 | #define NRF_DRV_USBD_DMASCHEDULER_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 2724 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2725 | |
sahilmgandhi | 18:6a4db94011d3 | 2726 | // <q> NRF_USBD_DRV_LOG_ENABLED - Enable logging. |
sahilmgandhi | 18:6a4db94011d3 | 2727 | |
sahilmgandhi | 18:6a4db94011d3 | 2728 | |
sahilmgandhi | 18:6a4db94011d3 | 2729 | #ifndef NRF_USBD_DRV_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2730 | #define NRF_USBD_DRV_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2731 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2732 | |
sahilmgandhi | 18:6a4db94011d3 | 2733 | #endif //USBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2734 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2735 | |
sahilmgandhi | 18:6a4db94011d3 | 2736 | // <e> WDT_ENABLED - nrf_drv_wdt - WDT peripheral driver |
sahilmgandhi | 18:6a4db94011d3 | 2737 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2738 | #ifndef WDT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2739 | #define WDT_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2740 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2741 | #if WDT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2742 | // <o> WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode |
sahilmgandhi | 18:6a4db94011d3 | 2743 | |
sahilmgandhi | 18:6a4db94011d3 | 2744 | // <1=> Run in SLEEP, Pause in HALT |
sahilmgandhi | 18:6a4db94011d3 | 2745 | // <8=> Pause in SLEEP, Run in HALT |
sahilmgandhi | 18:6a4db94011d3 | 2746 | // <9=> Run in SLEEP and HALT |
sahilmgandhi | 18:6a4db94011d3 | 2747 | // <0=> Pause in SLEEP and HALT |
sahilmgandhi | 18:6a4db94011d3 | 2748 | |
sahilmgandhi | 18:6a4db94011d3 | 2749 | #ifndef WDT_CONFIG_BEHAVIOUR |
sahilmgandhi | 18:6a4db94011d3 | 2750 | #define WDT_CONFIG_BEHAVIOUR 1 |
sahilmgandhi | 18:6a4db94011d3 | 2751 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2752 | |
sahilmgandhi | 18:6a4db94011d3 | 2753 | // <o> WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295> |
sahilmgandhi | 18:6a4db94011d3 | 2754 | |
sahilmgandhi | 18:6a4db94011d3 | 2755 | |
sahilmgandhi | 18:6a4db94011d3 | 2756 | #ifndef WDT_CONFIG_RELOAD_VALUE |
sahilmgandhi | 18:6a4db94011d3 | 2757 | #define WDT_CONFIG_RELOAD_VALUE 2000 |
sahilmgandhi | 18:6a4db94011d3 | 2758 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2759 | |
sahilmgandhi | 18:6a4db94011d3 | 2760 | // <o> WDT_CONFIG_IRQ_PRIORITY - Interrupt priority |
sahilmgandhi | 18:6a4db94011d3 | 2761 | |
sahilmgandhi | 18:6a4db94011d3 | 2762 | |
sahilmgandhi | 18:6a4db94011d3 | 2763 | // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice |
sahilmgandhi | 18:6a4db94011d3 | 2764 | // <0=> 0 (highest) |
sahilmgandhi | 18:6a4db94011d3 | 2765 | // <1=> 1 |
sahilmgandhi | 18:6a4db94011d3 | 2766 | // <2=> 2 |
sahilmgandhi | 18:6a4db94011d3 | 2767 | // <3=> 3 |
sahilmgandhi | 18:6a4db94011d3 | 2768 | // <4=> 4 |
sahilmgandhi | 18:6a4db94011d3 | 2769 | // <5=> 5 |
sahilmgandhi | 18:6a4db94011d3 | 2770 | // <6=> 6 |
sahilmgandhi | 18:6a4db94011d3 | 2771 | // <7=> 7 |
sahilmgandhi | 18:6a4db94011d3 | 2772 | |
sahilmgandhi | 18:6a4db94011d3 | 2773 | #ifndef WDT_CONFIG_IRQ_PRIORITY |
sahilmgandhi | 18:6a4db94011d3 | 2774 | #define WDT_CONFIG_IRQ_PRIORITY 7 |
sahilmgandhi | 18:6a4db94011d3 | 2775 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2776 | |
sahilmgandhi | 18:6a4db94011d3 | 2777 | // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 2778 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2779 | #ifndef WDT_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2780 | #define WDT_CONFIG_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2781 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2782 | #if WDT_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2783 | // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 2784 | |
sahilmgandhi | 18:6a4db94011d3 | 2785 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 2786 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 2787 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 2788 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 2789 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 2790 | |
sahilmgandhi | 18:6a4db94011d3 | 2791 | #ifndef WDT_CONFIG_LOG_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 2792 | #define WDT_CONFIG_LOG_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 2793 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2794 | |
sahilmgandhi | 18:6a4db94011d3 | 2795 | // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2796 | |
sahilmgandhi | 18:6a4db94011d3 | 2797 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2798 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2799 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2800 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2801 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2802 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2803 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2804 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2805 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2806 | |
sahilmgandhi | 18:6a4db94011d3 | 2807 | #ifndef WDT_CONFIG_INFO_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2808 | #define WDT_CONFIG_INFO_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2809 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2810 | |
sahilmgandhi | 18:6a4db94011d3 | 2811 | // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 2812 | |
sahilmgandhi | 18:6a4db94011d3 | 2813 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 2814 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 2815 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 2816 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 2817 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 2818 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 2819 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 2820 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 2821 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 2822 | |
sahilmgandhi | 18:6a4db94011d3 | 2823 | #ifndef WDT_CONFIG_DEBUG_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 2824 | #define WDT_CONFIG_DEBUG_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 2825 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2826 | |
sahilmgandhi | 18:6a4db94011d3 | 2827 | #endif //WDT_CONFIG_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2828 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2829 | |
sahilmgandhi | 18:6a4db94011d3 | 2830 | #endif //WDT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2831 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2832 | |
sahilmgandhi | 18:6a4db94011d3 | 2833 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 2834 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2835 | |
sahilmgandhi | 18:6a4db94011d3 | 2836 | // <h> nRF_Libraries |
sahilmgandhi | 18:6a4db94011d3 | 2837 | |
sahilmgandhi | 18:6a4db94011d3 | 2838 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2839 | // <q> APP_FIFO_ENABLED - app_fifo - Software FIFO implementation |
sahilmgandhi | 18:6a4db94011d3 | 2840 | |
sahilmgandhi | 18:6a4db94011d3 | 2841 | |
sahilmgandhi | 18:6a4db94011d3 | 2842 | #ifndef APP_FIFO_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2843 | #define APP_FIFO_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2844 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2845 | |
sahilmgandhi | 18:6a4db94011d3 | 2846 | // <q> APP_GPIOTE_ENABLED - app_gpiote - GPIOTE events dispatcher |
sahilmgandhi | 18:6a4db94011d3 | 2847 | |
sahilmgandhi | 18:6a4db94011d3 | 2848 | |
sahilmgandhi | 18:6a4db94011d3 | 2849 | #ifndef APP_GPIOTE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2850 | #define APP_GPIOTE_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2851 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2852 | |
sahilmgandhi | 18:6a4db94011d3 | 2853 | // <q> APP_PWM_ENABLED - app_pwm - PWM functionality |
sahilmgandhi | 18:6a4db94011d3 | 2854 | |
sahilmgandhi | 18:6a4db94011d3 | 2855 | |
sahilmgandhi | 18:6a4db94011d3 | 2856 | #ifndef APP_PWM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2857 | #define APP_PWM_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2858 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2859 | |
sahilmgandhi | 18:6a4db94011d3 | 2860 | // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler |
sahilmgandhi | 18:6a4db94011d3 | 2861 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2862 | #ifndef APP_SCHEDULER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2863 | #define APP_SCHEDULER_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2864 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2865 | #if APP_SCHEDULER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2866 | // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature |
sahilmgandhi | 18:6a4db94011d3 | 2867 | |
sahilmgandhi | 18:6a4db94011d3 | 2868 | |
sahilmgandhi | 18:6a4db94011d3 | 2869 | #ifndef APP_SCHEDULER_WITH_PAUSE |
sahilmgandhi | 18:6a4db94011d3 | 2870 | #define APP_SCHEDULER_WITH_PAUSE 0 |
sahilmgandhi | 18:6a4db94011d3 | 2871 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2872 | |
sahilmgandhi | 18:6a4db94011d3 | 2873 | // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling |
sahilmgandhi | 18:6a4db94011d3 | 2874 | |
sahilmgandhi | 18:6a4db94011d3 | 2875 | |
sahilmgandhi | 18:6a4db94011d3 | 2876 | #ifndef APP_SCHEDULER_WITH_PROFILER |
sahilmgandhi | 18:6a4db94011d3 | 2877 | #define APP_SCHEDULER_WITH_PROFILER 0 |
sahilmgandhi | 18:6a4db94011d3 | 2878 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2879 | |
sahilmgandhi | 18:6a4db94011d3 | 2880 | #endif //APP_SCHEDULER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2881 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2882 | |
sahilmgandhi | 18:6a4db94011d3 | 2883 | // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality |
sahilmgandhi | 18:6a4db94011d3 | 2884 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2885 | #ifndef APP_TIMER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2886 | #define APP_TIMER_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2887 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2888 | #if APP_TIMER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2889 | // <q> APP_TIMER_WITH_PROFILER - Enable app_timer profiling |
sahilmgandhi | 18:6a4db94011d3 | 2890 | |
sahilmgandhi | 18:6a4db94011d3 | 2891 | |
sahilmgandhi | 18:6a4db94011d3 | 2892 | #ifndef APP_TIMER_WITH_PROFILER |
sahilmgandhi | 18:6a4db94011d3 | 2893 | #define APP_TIMER_WITH_PROFILER 0 |
sahilmgandhi | 18:6a4db94011d3 | 2894 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2895 | |
sahilmgandhi | 18:6a4db94011d3 | 2896 | // <q> APP_TIMER_KEEPS_RTC_ACTIVE - Enable RTC always on |
sahilmgandhi | 18:6a4db94011d3 | 2897 | |
sahilmgandhi | 18:6a4db94011d3 | 2898 | |
sahilmgandhi | 18:6a4db94011d3 | 2899 | // <i> If option is enabled RTC is kept running even if there is no active timers. |
sahilmgandhi | 18:6a4db94011d3 | 2900 | // <i> This option can be used when app_timer is used for timestamping. |
sahilmgandhi | 18:6a4db94011d3 | 2901 | |
sahilmgandhi | 18:6a4db94011d3 | 2902 | #ifndef APP_TIMER_KEEPS_RTC_ACTIVE |
sahilmgandhi | 18:6a4db94011d3 | 2903 | #define APP_TIMER_KEEPS_RTC_ACTIVE 0 |
sahilmgandhi | 18:6a4db94011d3 | 2904 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2905 | |
sahilmgandhi | 18:6a4db94011d3 | 2906 | #endif //APP_TIMER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2907 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2908 | |
sahilmgandhi | 18:6a4db94011d3 | 2909 | // <q> APP_TWI_ENABLED - app_twi - TWI transaction manager |
sahilmgandhi | 18:6a4db94011d3 | 2910 | |
sahilmgandhi | 18:6a4db94011d3 | 2911 | |
sahilmgandhi | 18:6a4db94011d3 | 2912 | #ifndef APP_TWI_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2913 | #define APP_TWI_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2914 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2915 | |
sahilmgandhi | 18:6a4db94011d3 | 2916 | // <e> APP_UART_ENABLED - app_uart - UART driver |
sahilmgandhi | 18:6a4db94011d3 | 2917 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2918 | #ifndef APP_UART_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2919 | #define APP_UART_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2920 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2921 | #if APP_UART_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2922 | // <o> APP_UART_DRIVER_INSTANCE - UART instance used |
sahilmgandhi | 18:6a4db94011d3 | 2923 | |
sahilmgandhi | 18:6a4db94011d3 | 2924 | // <0=> 0 |
sahilmgandhi | 18:6a4db94011d3 | 2925 | |
sahilmgandhi | 18:6a4db94011d3 | 2926 | #ifndef APP_UART_DRIVER_INSTANCE |
sahilmgandhi | 18:6a4db94011d3 | 2927 | #define APP_UART_DRIVER_INSTANCE 0 |
sahilmgandhi | 18:6a4db94011d3 | 2928 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2929 | |
sahilmgandhi | 18:6a4db94011d3 | 2930 | #endif //APP_UART_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2931 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 2932 | |
sahilmgandhi | 18:6a4db94011d3 | 2933 | // <q> APP_USBD_CLASS_AUDIO_ENABLED - app_usbd_audio - USB AUDIO class |
sahilmgandhi | 18:6a4db94011d3 | 2934 | |
sahilmgandhi | 18:6a4db94011d3 | 2935 | |
sahilmgandhi | 18:6a4db94011d3 | 2936 | #ifndef APP_USBD_CLASS_AUDIO_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2937 | #define APP_USBD_CLASS_AUDIO_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2938 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2939 | |
sahilmgandhi | 18:6a4db94011d3 | 2940 | // <q> APP_USBD_CLASS_HID_ENABLED - app_usbd_hid - USB HID class |
sahilmgandhi | 18:6a4db94011d3 | 2941 | |
sahilmgandhi | 18:6a4db94011d3 | 2942 | |
sahilmgandhi | 18:6a4db94011d3 | 2943 | #ifndef APP_USBD_CLASS_HID_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2944 | #define APP_USBD_CLASS_HID_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2945 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2946 | |
sahilmgandhi | 18:6a4db94011d3 | 2947 | // <q> APP_USBD_HID_GENERIC_ENABLED - app_usbd_hid_generic - USB HID generic |
sahilmgandhi | 18:6a4db94011d3 | 2948 | |
sahilmgandhi | 18:6a4db94011d3 | 2949 | |
sahilmgandhi | 18:6a4db94011d3 | 2950 | #ifndef APP_USBD_HID_GENERIC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2951 | #define APP_USBD_HID_GENERIC_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2952 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2953 | |
sahilmgandhi | 18:6a4db94011d3 | 2954 | // <q> APP_USBD_HID_KBD_ENABLED - app_usbd_hid_kbd - USB HID keyboard |
sahilmgandhi | 18:6a4db94011d3 | 2955 | |
sahilmgandhi | 18:6a4db94011d3 | 2956 | |
sahilmgandhi | 18:6a4db94011d3 | 2957 | #ifndef APP_USBD_HID_KBD_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2958 | #define APP_USBD_HID_KBD_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2959 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2960 | |
sahilmgandhi | 18:6a4db94011d3 | 2961 | // <q> APP_USBD_HID_MOUSE_ENABLED - app_usbd_hid_mouse - USB HID mouse |
sahilmgandhi | 18:6a4db94011d3 | 2962 | |
sahilmgandhi | 18:6a4db94011d3 | 2963 | |
sahilmgandhi | 18:6a4db94011d3 | 2964 | #ifndef APP_USBD_HID_MOUSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2965 | #define APP_USBD_HID_MOUSE_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2966 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2967 | |
sahilmgandhi | 18:6a4db94011d3 | 2968 | // <q> BUTTON_ENABLED - app_button - buttons handling module |
sahilmgandhi | 18:6a4db94011d3 | 2969 | |
sahilmgandhi | 18:6a4db94011d3 | 2970 | |
sahilmgandhi | 18:6a4db94011d3 | 2971 | #ifndef BUTTON_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2972 | #define BUTTON_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 2973 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2974 | |
sahilmgandhi | 18:6a4db94011d3 | 2975 | // <q> CRC16_ENABLED - crc16 - CRC16 calculation routines |
sahilmgandhi | 18:6a4db94011d3 | 2976 | |
sahilmgandhi | 18:6a4db94011d3 | 2977 | |
sahilmgandhi | 18:6a4db94011d3 | 2978 | #ifndef CRC16_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2979 | #define CRC16_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2980 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2981 | |
sahilmgandhi | 18:6a4db94011d3 | 2982 | // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines |
sahilmgandhi | 18:6a4db94011d3 | 2983 | |
sahilmgandhi | 18:6a4db94011d3 | 2984 | |
sahilmgandhi | 18:6a4db94011d3 | 2985 | #ifndef CRC32_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2986 | #define CRC32_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2987 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2988 | |
sahilmgandhi | 18:6a4db94011d3 | 2989 | // <e> FDS_ENABLED - fds - Flash data storage module |
sahilmgandhi | 18:6a4db94011d3 | 2990 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 2991 | #ifndef FDS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2992 | #define FDS_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 2993 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2994 | #if FDS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 2995 | // <o> FDS_OP_QUEUE_SIZE - Size of the internal queue. |
sahilmgandhi | 18:6a4db94011d3 | 2996 | #ifndef FDS_OP_QUEUE_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 2997 | #define FDS_OP_QUEUE_SIZE 4 |
sahilmgandhi | 18:6a4db94011d3 | 2998 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 2999 | |
sahilmgandhi | 18:6a4db94011d3 | 3000 | // <o> FDS_CHUNK_QUEUE_SIZE - Determines how many @ref fds_record_chunk_t structures can be buffered at any time. |
sahilmgandhi | 18:6a4db94011d3 | 3001 | #ifndef FDS_CHUNK_QUEUE_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3002 | #define FDS_CHUNK_QUEUE_SIZE 8 |
sahilmgandhi | 18:6a4db94011d3 | 3003 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3004 | |
sahilmgandhi | 18:6a4db94011d3 | 3005 | // <o> FDS_MAX_USERS - Maximum number of callbacks that can be registered. |
sahilmgandhi | 18:6a4db94011d3 | 3006 | #ifndef FDS_MAX_USERS |
sahilmgandhi | 18:6a4db94011d3 | 3007 | #define FDS_MAX_USERS 8 |
sahilmgandhi | 18:6a4db94011d3 | 3008 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3009 | |
sahilmgandhi | 18:6a4db94011d3 | 3010 | // <o> FDS_VIRTUAL_PAGES - Number of virtual flash pages to use. |
sahilmgandhi | 18:6a4db94011d3 | 3011 | // <i> One of the virtual pages is reserved by the system for garbage collection. |
sahilmgandhi | 18:6a4db94011d3 | 3012 | // <i> Therefore, the minimum is two virtual pages: one page to store data and |
sahilmgandhi | 18:6a4db94011d3 | 3013 | // <i> one page to be used by the system for garbage collection. The total amount |
sahilmgandhi | 18:6a4db94011d3 | 3014 | // <i> of flash memory that is used by FDS amounts to @ref FDS_VIRTUAL_PAGES |
sahilmgandhi | 18:6a4db94011d3 | 3015 | // <i> @ref FDS_VIRTUAL_PAGE_SIZE * 4 bytes. |
sahilmgandhi | 18:6a4db94011d3 | 3016 | |
sahilmgandhi | 18:6a4db94011d3 | 3017 | #ifndef FDS_VIRTUAL_PAGES |
sahilmgandhi | 18:6a4db94011d3 | 3018 | #define FDS_VIRTUAL_PAGES 3 |
sahilmgandhi | 18:6a4db94011d3 | 3019 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3020 | |
sahilmgandhi | 18:6a4db94011d3 | 3021 | // <o> FDS_VIRTUAL_PAGE_SIZE - The size of a virtual page of flash memory, expressed in number of 4-byte words. |
sahilmgandhi | 18:6a4db94011d3 | 3022 | |
sahilmgandhi | 18:6a4db94011d3 | 3023 | |
sahilmgandhi | 18:6a4db94011d3 | 3024 | // <i> By default, a virtual page is the same size as a physical page. |
sahilmgandhi | 18:6a4db94011d3 | 3025 | // <i> The size of a virtual page must be a multiple of the size of a physical page. |
sahilmgandhi | 18:6a4db94011d3 | 3026 | // <1024=> 1024 |
sahilmgandhi | 18:6a4db94011d3 | 3027 | // <2048=> 2048 |
sahilmgandhi | 18:6a4db94011d3 | 3028 | |
sahilmgandhi | 18:6a4db94011d3 | 3029 | #ifndef FDS_VIRTUAL_PAGE_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3030 | #define FDS_VIRTUAL_PAGE_SIZE 1024 |
sahilmgandhi | 18:6a4db94011d3 | 3031 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3032 | |
sahilmgandhi | 18:6a4db94011d3 | 3033 | #endif //FDS_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3034 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3035 | |
sahilmgandhi | 18:6a4db94011d3 | 3036 | // <e> FSTORAGE_ENABLED - fstorage - Flash storage module |
sahilmgandhi | 18:6a4db94011d3 | 3037 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3038 | #ifndef FSTORAGE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3039 | #define FSTORAGE_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 3040 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3041 | #if FSTORAGE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3042 | // <o> FS_QUEUE_SIZE - Configures the size of the internal queue. |
sahilmgandhi | 18:6a4db94011d3 | 3043 | // <i> Increase this if there are many users, or if it is likely that many |
sahilmgandhi | 18:6a4db94011d3 | 3044 | // <i> operation will be queued at once without waiting for the previous operations |
sahilmgandhi | 18:6a4db94011d3 | 3045 | // <i> to complete. In general, increase the queue size if you frequently receive |
sahilmgandhi | 18:6a4db94011d3 | 3046 | // <i> @ref FS_ERR_QUEUE_FULL errors when calling @ref fs_store or @ref fs_erase. |
sahilmgandhi | 18:6a4db94011d3 | 3047 | |
sahilmgandhi | 18:6a4db94011d3 | 3048 | #ifndef FS_QUEUE_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3049 | #define FS_QUEUE_SIZE 4 |
sahilmgandhi | 18:6a4db94011d3 | 3050 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3051 | |
sahilmgandhi | 18:6a4db94011d3 | 3052 | // <o> FS_OP_MAX_RETRIES - Number attempts to execute an operation if the SoftDevice fails. |
sahilmgandhi | 18:6a4db94011d3 | 3053 | // <i> Increase this value if events return the @ref FS_ERR_OPERATION_TIMEOUT |
sahilmgandhi | 18:6a4db94011d3 | 3054 | // <i> error often. The SoftDevice may fail to schedule flash access due to high BLE activity. |
sahilmgandhi | 18:6a4db94011d3 | 3055 | |
sahilmgandhi | 18:6a4db94011d3 | 3056 | #ifndef FS_OP_MAX_RETRIES |
sahilmgandhi | 18:6a4db94011d3 | 3057 | #define FS_OP_MAX_RETRIES 3 |
sahilmgandhi | 18:6a4db94011d3 | 3058 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3059 | |
sahilmgandhi | 18:6a4db94011d3 | 3060 | // <o> FS_MAX_WRITE_SIZE_WORDS - Maximum number of words to be written to flash in a single operation. |
sahilmgandhi | 18:6a4db94011d3 | 3061 | // <i> Tweaking this value can increase the chances of the SoftDevice being |
sahilmgandhi | 18:6a4db94011d3 | 3062 | // <i> able to fit flash operations in between radio activity. This value is bound by the |
sahilmgandhi | 18:6a4db94011d3 | 3063 | // <i> maximum number of words which the SoftDevice can write to flash in a single call to |
sahilmgandhi | 18:6a4db94011d3 | 3064 | // <i> @ref sd_flash_write, which is 256 words for nRF51 ICs and 1024 words for nRF52 ICs. |
sahilmgandhi | 18:6a4db94011d3 | 3065 | |
sahilmgandhi | 18:6a4db94011d3 | 3066 | #ifndef FS_MAX_WRITE_SIZE_WORDS |
sahilmgandhi | 18:6a4db94011d3 | 3067 | #define FS_MAX_WRITE_SIZE_WORDS 1024 |
sahilmgandhi | 18:6a4db94011d3 | 3068 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3069 | |
sahilmgandhi | 18:6a4db94011d3 | 3070 | #endif //FSTORAGE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3071 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3072 | |
sahilmgandhi | 18:6a4db94011d3 | 3073 | // <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library |
sahilmgandhi | 18:6a4db94011d3 | 3074 | |
sahilmgandhi | 18:6a4db94011d3 | 3075 | |
sahilmgandhi | 18:6a4db94011d3 | 3076 | #ifndef ECC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3077 | #define ECC_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3078 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3079 | |
sahilmgandhi | 18:6a4db94011d3 | 3080 | // <q> HARDFAULT_HANDLER_ENABLED - hardfault_default - HardFault default handler for debugging and release |
sahilmgandhi | 18:6a4db94011d3 | 3081 | |
sahilmgandhi | 18:6a4db94011d3 | 3082 | |
sahilmgandhi | 18:6a4db94011d3 | 3083 | #ifndef HARDFAULT_HANDLER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3084 | #define HARDFAULT_HANDLER_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 3085 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3086 | |
sahilmgandhi | 18:6a4db94011d3 | 3087 | // <e> HCI_MEM_POOL_ENABLED - hci_mem_pool - memory pool implementation used by HCI |
sahilmgandhi | 18:6a4db94011d3 | 3088 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3089 | #ifndef HCI_MEM_POOL_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3090 | #define HCI_MEM_POOL_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3091 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3092 | #if HCI_MEM_POOL_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3093 | // <o> HCI_TX_BUF_SIZE - TX buffer size in bytes. |
sahilmgandhi | 18:6a4db94011d3 | 3094 | #ifndef HCI_TX_BUF_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3095 | #define HCI_TX_BUF_SIZE 600 |
sahilmgandhi | 18:6a4db94011d3 | 3096 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3097 | |
sahilmgandhi | 18:6a4db94011d3 | 3098 | // <o> HCI_RX_BUF_SIZE - RX buffer size in bytes. |
sahilmgandhi | 18:6a4db94011d3 | 3099 | #ifndef HCI_RX_BUF_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3100 | #define HCI_RX_BUF_SIZE 600 |
sahilmgandhi | 18:6a4db94011d3 | 3101 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3102 | |
sahilmgandhi | 18:6a4db94011d3 | 3103 | // <o> HCI_RX_BUF_QUEUE_SIZE - RX buffer queue size. |
sahilmgandhi | 18:6a4db94011d3 | 3104 | #ifndef HCI_RX_BUF_QUEUE_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3105 | #define HCI_RX_BUF_QUEUE_SIZE 4 |
sahilmgandhi | 18:6a4db94011d3 | 3106 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3107 | |
sahilmgandhi | 18:6a4db94011d3 | 3108 | #endif //HCI_MEM_POOL_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3109 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3110 | |
sahilmgandhi | 18:6a4db94011d3 | 3111 | // <e> HCI_SLIP_ENABLED - hci_slip - SLIP protocol implementation used by HCI |
sahilmgandhi | 18:6a4db94011d3 | 3112 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3113 | #ifndef HCI_SLIP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3114 | #define HCI_SLIP_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3115 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3116 | #if HCI_SLIP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3117 | // <o> HCI_UART_BAUDRATE - Default Baudrate |
sahilmgandhi | 18:6a4db94011d3 | 3118 | |
sahilmgandhi | 18:6a4db94011d3 | 3119 | // <323584=> 1200 baud |
sahilmgandhi | 18:6a4db94011d3 | 3120 | // <643072=> 2400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3121 | // <1290240=> 4800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3122 | // <2576384=> 9600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3123 | // <3862528=> 14400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3124 | // <5152768=> 19200 baud |
sahilmgandhi | 18:6a4db94011d3 | 3125 | // <7716864=> 28800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3126 | // <10289152=> 38400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3127 | // <15400960=> 57600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3128 | // <20615168=> 76800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3129 | // <30801920=> 115200 baud |
sahilmgandhi | 18:6a4db94011d3 | 3130 | // <61865984=> 230400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3131 | // <67108864=> 250000 baud |
sahilmgandhi | 18:6a4db94011d3 | 3132 | // <121634816=> 460800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3133 | // <251658240=> 921600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3134 | // <268435456=> 57600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3135 | |
sahilmgandhi | 18:6a4db94011d3 | 3136 | #ifndef HCI_UART_BAUDRATE |
sahilmgandhi | 18:6a4db94011d3 | 3137 | #define HCI_UART_BAUDRATE 30801920 |
sahilmgandhi | 18:6a4db94011d3 | 3138 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3139 | |
sahilmgandhi | 18:6a4db94011d3 | 3140 | // <o> HCI_UART_FLOW_CONTROL - Hardware Flow Control |
sahilmgandhi | 18:6a4db94011d3 | 3141 | |
sahilmgandhi | 18:6a4db94011d3 | 3142 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 3143 | // <1=> Enabled |
sahilmgandhi | 18:6a4db94011d3 | 3144 | |
sahilmgandhi | 18:6a4db94011d3 | 3145 | #ifndef HCI_UART_FLOW_CONTROL |
sahilmgandhi | 18:6a4db94011d3 | 3146 | #define HCI_UART_FLOW_CONTROL 0 |
sahilmgandhi | 18:6a4db94011d3 | 3147 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3148 | |
sahilmgandhi | 18:6a4db94011d3 | 3149 | // <o> HCI_UART_RX_PIN - UART RX pin |
sahilmgandhi | 18:6a4db94011d3 | 3150 | #ifndef HCI_UART_RX_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3151 | #define HCI_UART_RX_PIN 8 |
sahilmgandhi | 18:6a4db94011d3 | 3152 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3153 | |
sahilmgandhi | 18:6a4db94011d3 | 3154 | // <o> HCI_UART_TX_PIN - UART TX pin |
sahilmgandhi | 18:6a4db94011d3 | 3155 | #ifndef HCI_UART_TX_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3156 | #define HCI_UART_TX_PIN 6 |
sahilmgandhi | 18:6a4db94011d3 | 3157 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3158 | |
sahilmgandhi | 18:6a4db94011d3 | 3159 | // <o> HCI_UART_RTS_PIN - UART RTS pin |
sahilmgandhi | 18:6a4db94011d3 | 3160 | #ifndef HCI_UART_RTS_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3161 | #define HCI_UART_RTS_PIN 5 |
sahilmgandhi | 18:6a4db94011d3 | 3162 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3163 | |
sahilmgandhi | 18:6a4db94011d3 | 3164 | // <o> HCI_UART_CTS_PIN - UART CTS pin |
sahilmgandhi | 18:6a4db94011d3 | 3165 | #ifndef HCI_UART_CTS_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3166 | #define HCI_UART_CTS_PIN 7 |
sahilmgandhi | 18:6a4db94011d3 | 3167 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3168 | |
sahilmgandhi | 18:6a4db94011d3 | 3169 | #endif //HCI_SLIP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3170 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3171 | |
sahilmgandhi | 18:6a4db94011d3 | 3172 | // <e> HCI_TRANSPORT_ENABLED - hci_transport - HCI transport |
sahilmgandhi | 18:6a4db94011d3 | 3173 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3174 | #ifndef HCI_TRANSPORT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3175 | #define HCI_TRANSPORT_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3176 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3177 | #if HCI_TRANSPORT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3178 | // <o> HCI_MAX_PACKET_SIZE_IN_BITS - Maximum size of a single application packet in bits. |
sahilmgandhi | 18:6a4db94011d3 | 3179 | #ifndef HCI_MAX_PACKET_SIZE_IN_BITS |
sahilmgandhi | 18:6a4db94011d3 | 3180 | #define HCI_MAX_PACKET_SIZE_IN_BITS 8000 |
sahilmgandhi | 18:6a4db94011d3 | 3181 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3182 | |
sahilmgandhi | 18:6a4db94011d3 | 3183 | #endif //HCI_TRANSPORT_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3184 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3185 | |
sahilmgandhi | 18:6a4db94011d3 | 3186 | // <q> LED_SOFTBLINK_ENABLED - led_softblink - led_softblink module |
sahilmgandhi | 18:6a4db94011d3 | 3187 | |
sahilmgandhi | 18:6a4db94011d3 | 3188 | |
sahilmgandhi | 18:6a4db94011d3 | 3189 | #ifndef LED_SOFTBLINK_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3190 | #define LED_SOFTBLINK_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3191 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3192 | |
sahilmgandhi | 18:6a4db94011d3 | 3193 | // <q> LOW_POWER_PWM_ENABLED - low_power_pwm - low_power_pwm module |
sahilmgandhi | 18:6a4db94011d3 | 3194 | |
sahilmgandhi | 18:6a4db94011d3 | 3195 | |
sahilmgandhi | 18:6a4db94011d3 | 3196 | #ifndef LOW_POWER_PWM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3197 | #define LOW_POWER_PWM_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3198 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3199 | |
sahilmgandhi | 18:6a4db94011d3 | 3200 | // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator |
sahilmgandhi | 18:6a4db94011d3 | 3201 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3202 | #ifndef MEM_MANAGER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3203 | #define MEM_MANAGER_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3204 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3205 | #if MEM_MANAGER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3206 | // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255> |
sahilmgandhi | 18:6a4db94011d3 | 3207 | |
sahilmgandhi | 18:6a4db94011d3 | 3208 | |
sahilmgandhi | 18:6a4db94011d3 | 3209 | #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 3210 | #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1 |
sahilmgandhi | 18:6a4db94011d3 | 3211 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3212 | |
sahilmgandhi | 18:6a4db94011d3 | 3213 | // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block. |
sahilmgandhi | 18:6a4db94011d3 | 3214 | // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized. |
sahilmgandhi | 18:6a4db94011d3 | 3215 | |
sahilmgandhi | 18:6a4db94011d3 | 3216 | #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3217 | #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32 |
sahilmgandhi | 18:6a4db94011d3 | 3218 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3219 | |
sahilmgandhi | 18:6a4db94011d3 | 3220 | // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255> |
sahilmgandhi | 18:6a4db94011d3 | 3221 | |
sahilmgandhi | 18:6a4db94011d3 | 3222 | |
sahilmgandhi | 18:6a4db94011d3 | 3223 | #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 3224 | #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0 |
sahilmgandhi | 18:6a4db94011d3 | 3225 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3226 | |
sahilmgandhi | 18:6a4db94011d3 | 3227 | // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block. |
sahilmgandhi | 18:6a4db94011d3 | 3228 | // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized. |
sahilmgandhi | 18:6a4db94011d3 | 3229 | |
sahilmgandhi | 18:6a4db94011d3 | 3230 | #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3231 | #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256 |
sahilmgandhi | 18:6a4db94011d3 | 3232 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3233 | |
sahilmgandhi | 18:6a4db94011d3 | 3234 | // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255> |
sahilmgandhi | 18:6a4db94011d3 | 3235 | |
sahilmgandhi | 18:6a4db94011d3 | 3236 | |
sahilmgandhi | 18:6a4db94011d3 | 3237 | #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT |
sahilmgandhi | 18:6a4db94011d3 | 3238 | #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0 |
sahilmgandhi | 18:6a4db94011d3 | 3239 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3240 | |
sahilmgandhi | 18:6a4db94011d3 | 3241 | // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block. |
sahilmgandhi | 18:6a4db94011d3 | 3242 | // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized. |
sahilmgandhi | 18:6a4db94011d3 | 3243 | |
sahilmgandhi | 18:6a4db94011d3 | 3244 | #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3245 | #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256 |
sahilmgandhi | 18:6a4db94011d3 | 3246 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3247 | |
sahilmgandhi | 18:6a4db94011d3 | 3248 | // <q> MEM_MANAGER_ENABLE_LOGS - Enable debug trace in the module. |
sahilmgandhi | 18:6a4db94011d3 | 3249 | |
sahilmgandhi | 18:6a4db94011d3 | 3250 | |
sahilmgandhi | 18:6a4db94011d3 | 3251 | #ifndef MEM_MANAGER_ENABLE_LOGS |
sahilmgandhi | 18:6a4db94011d3 | 3252 | #define MEM_MANAGER_ENABLE_LOGS 0 |
sahilmgandhi | 18:6a4db94011d3 | 3253 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3254 | |
sahilmgandhi | 18:6a4db94011d3 | 3255 | // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module. |
sahilmgandhi | 18:6a4db94011d3 | 3256 | |
sahilmgandhi | 18:6a4db94011d3 | 3257 | |
sahilmgandhi | 18:6a4db94011d3 | 3258 | #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK |
sahilmgandhi | 18:6a4db94011d3 | 3259 | #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0 |
sahilmgandhi | 18:6a4db94011d3 | 3260 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3261 | |
sahilmgandhi | 18:6a4db94011d3 | 3262 | #endif //MEM_MANAGER_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3263 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3264 | |
sahilmgandhi | 18:6a4db94011d3 | 3265 | // <e> NRF_CSENSE_ENABLED - nrf_csense - nrf_csense module |
sahilmgandhi | 18:6a4db94011d3 | 3266 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3267 | #ifndef NRF_CSENSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3268 | #define NRF_CSENSE_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3269 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3270 | #if NRF_CSENSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3271 | // <o> NRF_CSENSE_PAD_HYSTERESIS - Minimal value of change to decide that pad was touched. |
sahilmgandhi | 18:6a4db94011d3 | 3272 | #ifndef NRF_CSENSE_PAD_HYSTERESIS |
sahilmgandhi | 18:6a4db94011d3 | 3273 | #define NRF_CSENSE_PAD_HYSTERESIS 15 |
sahilmgandhi | 18:6a4db94011d3 | 3274 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3275 | |
sahilmgandhi | 18:6a4db94011d3 | 3276 | // <o> NRF_CSENSE_PAD_DEVIATION - Minimal value measured on pad to take its value while calculating step. |
sahilmgandhi | 18:6a4db94011d3 | 3277 | #ifndef NRF_CSENSE_PAD_DEVIATION |
sahilmgandhi | 18:6a4db94011d3 | 3278 | #define NRF_CSENSE_PAD_DEVIATION 70 |
sahilmgandhi | 18:6a4db94011d3 | 3279 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3280 | |
sahilmgandhi | 18:6a4db94011d3 | 3281 | // <o> NRF_CSENSE_MIN_PAD_VALUE - Minimum normalized value on pad to take its value into account. |
sahilmgandhi | 18:6a4db94011d3 | 3282 | #ifndef NRF_CSENSE_MIN_PAD_VALUE |
sahilmgandhi | 18:6a4db94011d3 | 3283 | #define NRF_CSENSE_MIN_PAD_VALUE 20 |
sahilmgandhi | 18:6a4db94011d3 | 3284 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3285 | |
sahilmgandhi | 18:6a4db94011d3 | 3286 | // <o> NRF_CSENSE_MAX_PADS_NUMBER - Maximum number of pads used for one instance. |
sahilmgandhi | 18:6a4db94011d3 | 3287 | #ifndef NRF_CSENSE_MAX_PADS_NUMBER |
sahilmgandhi | 18:6a4db94011d3 | 3288 | #define NRF_CSENSE_MAX_PADS_NUMBER 20 |
sahilmgandhi | 18:6a4db94011d3 | 3289 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3290 | |
sahilmgandhi | 18:6a4db94011d3 | 3291 | // <o> NRF_CSENSE_MAX_VALUE - Maximum normalized value got from measurement. |
sahilmgandhi | 18:6a4db94011d3 | 3292 | #ifndef NRF_CSENSE_MAX_VALUE |
sahilmgandhi | 18:6a4db94011d3 | 3293 | #define NRF_CSENSE_MAX_VALUE 1000 |
sahilmgandhi | 18:6a4db94011d3 | 3294 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3295 | |
sahilmgandhi | 18:6a4db94011d3 | 3296 | // <o> NRF_CSENSE_OUTPUT_PIN - Output pin used by lower module. |
sahilmgandhi | 18:6a4db94011d3 | 3297 | // <i> This is only used when running on NRF51. |
sahilmgandhi | 18:6a4db94011d3 | 3298 | |
sahilmgandhi | 18:6a4db94011d3 | 3299 | #ifndef NRF_CSENSE_OUTPUT_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3300 | #define NRF_CSENSE_OUTPUT_PIN 30 |
sahilmgandhi | 18:6a4db94011d3 | 3301 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3302 | |
sahilmgandhi | 18:6a4db94011d3 | 3303 | #endif //NRF_CSENSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3304 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3305 | |
sahilmgandhi | 18:6a4db94011d3 | 3306 | // <e> NRF_DRV_CSENSE_ENABLED - nrf_drv_csense - Capacitive sensor module |
sahilmgandhi | 18:6a4db94011d3 | 3307 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3308 | #ifndef NRF_DRV_CSENSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3309 | #define NRF_DRV_CSENSE_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3310 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3311 | #if NRF_DRV_CSENSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3312 | // <o> TIMER0_FOR_CSENSE - First TIMER instance used by the driver (except nRF51) |
sahilmgandhi | 18:6a4db94011d3 | 3313 | #ifndef TIMER0_FOR_CSENSE |
sahilmgandhi | 18:6a4db94011d3 | 3314 | #define TIMER0_FOR_CSENSE 1 |
sahilmgandhi | 18:6a4db94011d3 | 3315 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3316 | |
sahilmgandhi | 18:6a4db94011d3 | 3317 | // <o> TIMER1_FOR_CSENSE - Second TIMER instance used by the driver (except nRF51) |
sahilmgandhi | 18:6a4db94011d3 | 3318 | #ifndef TIMER1_FOR_CSENSE |
sahilmgandhi | 18:6a4db94011d3 | 3319 | #define TIMER1_FOR_CSENSE 2 |
sahilmgandhi | 18:6a4db94011d3 | 3320 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3321 | |
sahilmgandhi | 18:6a4db94011d3 | 3322 | // <o> MEASUREMENT_PERIOD - Single measurement period. |
sahilmgandhi | 18:6a4db94011d3 | 3323 | // <i> Time of single measurement can be calculated as T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ). I_SOURCE, VUP and VDOWN are values used to initialize COMP and C is capacitance of used pad. |
sahilmgandhi | 18:6a4db94011d3 | 3324 | |
sahilmgandhi | 18:6a4db94011d3 | 3325 | #ifndef MEASUREMENT_PERIOD |
sahilmgandhi | 18:6a4db94011d3 | 3326 | #define MEASUREMENT_PERIOD 20 |
sahilmgandhi | 18:6a4db94011d3 | 3327 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3328 | |
sahilmgandhi | 18:6a4db94011d3 | 3329 | #endif //NRF_DRV_CSENSE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3330 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3331 | |
sahilmgandhi | 18:6a4db94011d3 | 3332 | // <q> NRF_QUEUE_ENABLED - nrf_queue - Queue module |
sahilmgandhi | 18:6a4db94011d3 | 3333 | |
sahilmgandhi | 18:6a4db94011d3 | 3334 | |
sahilmgandhi | 18:6a4db94011d3 | 3335 | #ifndef NRF_QUEUE_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3336 | #define NRF_QUEUE_ENABLED 1 |
sahilmgandhi | 18:6a4db94011d3 | 3337 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3338 | |
sahilmgandhi | 18:6a4db94011d3 | 3339 | // <q> SLIP_ENABLED - slip - SLIP encoding decoding |
sahilmgandhi | 18:6a4db94011d3 | 3340 | |
sahilmgandhi | 18:6a4db94011d3 | 3341 | |
sahilmgandhi | 18:6a4db94011d3 | 3342 | #ifndef SLIP_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3343 | #define SLIP_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3344 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3345 | |
sahilmgandhi | 18:6a4db94011d3 | 3346 | // <h> app_usbd_cdc_acm - USB CDC ACM class |
sahilmgandhi | 18:6a4db94011d3 | 3347 | |
sahilmgandhi | 18:6a4db94011d3 | 3348 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3349 | // <q> APP_USBD_CLASS_CDC_ACM_ENABLED - Enabling USBD CDC ACM Class library |
sahilmgandhi | 18:6a4db94011d3 | 3350 | |
sahilmgandhi | 18:6a4db94011d3 | 3351 | |
sahilmgandhi | 18:6a4db94011d3 | 3352 | #ifndef APP_USBD_CLASS_CDC_ACM_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3353 | #define APP_USBD_CLASS_CDC_ACM_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3354 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3355 | |
sahilmgandhi | 18:6a4db94011d3 | 3356 | // <q> APP_USBD_CDC_ACM_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 3357 | |
sahilmgandhi | 18:6a4db94011d3 | 3358 | |
sahilmgandhi | 18:6a4db94011d3 | 3359 | #ifndef APP_USBD_CDC_ACM_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3360 | #define APP_USBD_CDC_ACM_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3361 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3362 | |
sahilmgandhi | 18:6a4db94011d3 | 3363 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3364 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3365 | |
sahilmgandhi | 18:6a4db94011d3 | 3366 | // <h> app_usbd_msc - USB MSC class |
sahilmgandhi | 18:6a4db94011d3 | 3367 | |
sahilmgandhi | 18:6a4db94011d3 | 3368 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3369 | // <q> APP_USBD_CLASS_MSC_ENABLED - Enabling USBD MSC Class library |
sahilmgandhi | 18:6a4db94011d3 | 3370 | |
sahilmgandhi | 18:6a4db94011d3 | 3371 | |
sahilmgandhi | 18:6a4db94011d3 | 3372 | #ifndef APP_USBD_CLASS_MSC_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3373 | #define APP_USBD_CLASS_MSC_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3374 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3375 | |
sahilmgandhi | 18:6a4db94011d3 | 3376 | // <q> APP_USBD_MSC_CLASS_LOG_ENABLED - Enables logging in the module. |
sahilmgandhi | 18:6a4db94011d3 | 3377 | |
sahilmgandhi | 18:6a4db94011d3 | 3378 | |
sahilmgandhi | 18:6a4db94011d3 | 3379 | #ifndef APP_USBD_MSC_CLASS_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3380 | #define APP_USBD_MSC_CLASS_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3381 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3382 | |
sahilmgandhi | 18:6a4db94011d3 | 3383 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3384 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3385 | |
sahilmgandhi | 18:6a4db94011d3 | 3386 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3387 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3388 | |
sahilmgandhi | 18:6a4db94011d3 | 3389 | // <h> nRF_Log |
sahilmgandhi | 18:6a4db94011d3 | 3390 | |
sahilmgandhi | 18:6a4db94011d3 | 3391 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3392 | // <e> NRF_LOG_ENABLED - nrf_log - Logging |
sahilmgandhi | 18:6a4db94011d3 | 3393 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3394 | #ifndef NRF_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3395 | #define NRF_LOG_ENABLED 0 |
sahilmgandhi | 18:6a4db94011d3 | 3396 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3397 | #if NRF_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3398 | // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string |
sahilmgandhi | 18:6a4db94011d3 | 3399 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3400 | #ifndef NRF_LOG_USES_COLORS |
sahilmgandhi | 18:6a4db94011d3 | 3401 | #define NRF_LOG_USES_COLORS 0 |
sahilmgandhi | 18:6a4db94011d3 | 3402 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3403 | #if NRF_LOG_USES_COLORS |
sahilmgandhi | 18:6a4db94011d3 | 3404 | // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 3405 | |
sahilmgandhi | 18:6a4db94011d3 | 3406 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 3407 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 3408 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 3409 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 3410 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 3411 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 3412 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 3413 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 3414 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 3415 | |
sahilmgandhi | 18:6a4db94011d3 | 3416 | #ifndef NRF_LOG_COLOR_DEFAULT |
sahilmgandhi | 18:6a4db94011d3 | 3417 | #define NRF_LOG_COLOR_DEFAULT 0 |
sahilmgandhi | 18:6a4db94011d3 | 3418 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3419 | |
sahilmgandhi | 18:6a4db94011d3 | 3420 | // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 3421 | |
sahilmgandhi | 18:6a4db94011d3 | 3422 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 3423 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 3424 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 3425 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 3426 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 3427 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 3428 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 3429 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 3430 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 3431 | |
sahilmgandhi | 18:6a4db94011d3 | 3432 | #ifndef NRF_LOG_ERROR_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 3433 | #define NRF_LOG_ERROR_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 3434 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3435 | |
sahilmgandhi | 18:6a4db94011d3 | 3436 | // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix. |
sahilmgandhi | 18:6a4db94011d3 | 3437 | |
sahilmgandhi | 18:6a4db94011d3 | 3438 | // <0=> Default |
sahilmgandhi | 18:6a4db94011d3 | 3439 | // <1=> Black |
sahilmgandhi | 18:6a4db94011d3 | 3440 | // <2=> Red |
sahilmgandhi | 18:6a4db94011d3 | 3441 | // <3=> Green |
sahilmgandhi | 18:6a4db94011d3 | 3442 | // <4=> Yellow |
sahilmgandhi | 18:6a4db94011d3 | 3443 | // <5=> Blue |
sahilmgandhi | 18:6a4db94011d3 | 3444 | // <6=> Magenta |
sahilmgandhi | 18:6a4db94011d3 | 3445 | // <7=> Cyan |
sahilmgandhi | 18:6a4db94011d3 | 3446 | // <8=> White |
sahilmgandhi | 18:6a4db94011d3 | 3447 | |
sahilmgandhi | 18:6a4db94011d3 | 3448 | #ifndef NRF_LOG_WARNING_COLOR |
sahilmgandhi | 18:6a4db94011d3 | 3449 | #define NRF_LOG_WARNING_COLOR 0 |
sahilmgandhi | 18:6a4db94011d3 | 3450 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3451 | |
sahilmgandhi | 18:6a4db94011d3 | 3452 | #endif //NRF_LOG_USES_COLORS |
sahilmgandhi | 18:6a4db94011d3 | 3453 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3454 | |
sahilmgandhi | 18:6a4db94011d3 | 3455 | // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level |
sahilmgandhi | 18:6a4db94011d3 | 3456 | |
sahilmgandhi | 18:6a4db94011d3 | 3457 | // <0=> Off |
sahilmgandhi | 18:6a4db94011d3 | 3458 | // <1=> Error |
sahilmgandhi | 18:6a4db94011d3 | 3459 | // <2=> Warning |
sahilmgandhi | 18:6a4db94011d3 | 3460 | // <3=> Info |
sahilmgandhi | 18:6a4db94011d3 | 3461 | // <4=> Debug |
sahilmgandhi | 18:6a4db94011d3 | 3462 | |
sahilmgandhi | 18:6a4db94011d3 | 3463 | #ifndef NRF_LOG_DEFAULT_LEVEL |
sahilmgandhi | 18:6a4db94011d3 | 3464 | #define NRF_LOG_DEFAULT_LEVEL 3 |
sahilmgandhi | 18:6a4db94011d3 | 3465 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3466 | |
sahilmgandhi | 18:6a4db94011d3 | 3467 | // <e> NRF_LOG_DEFERRED - Enable deffered logger. |
sahilmgandhi | 18:6a4db94011d3 | 3468 | |
sahilmgandhi | 18:6a4db94011d3 | 3469 | // <i> Log data is buffered and can be processed in idle. |
sahilmgandhi | 18:6a4db94011d3 | 3470 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3471 | #ifndef NRF_LOG_DEFERRED |
sahilmgandhi | 18:6a4db94011d3 | 3472 | #define NRF_LOG_DEFERRED 1 |
sahilmgandhi | 18:6a4db94011d3 | 3473 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3474 | #if NRF_LOG_DEFERRED |
sahilmgandhi | 18:6a4db94011d3 | 3475 | // <o> NRF_LOG_DEFERRED_BUFSIZE - Size of the buffer for logs in words. |
sahilmgandhi | 18:6a4db94011d3 | 3476 | // <i> Must be power of 2 |
sahilmgandhi | 18:6a4db94011d3 | 3477 | |
sahilmgandhi | 18:6a4db94011d3 | 3478 | #ifndef NRF_LOG_DEFERRED_BUFSIZE |
sahilmgandhi | 18:6a4db94011d3 | 3479 | #define NRF_LOG_DEFERRED_BUFSIZE 256 |
sahilmgandhi | 18:6a4db94011d3 | 3480 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3481 | |
sahilmgandhi | 18:6a4db94011d3 | 3482 | #endif //NRF_LOG_DEFERRED |
sahilmgandhi | 18:6a4db94011d3 | 3483 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3484 | |
sahilmgandhi | 18:6a4db94011d3 | 3485 | // <q> NRF_LOG_USES_TIMESTAMP - Enable timestamping |
sahilmgandhi | 18:6a4db94011d3 | 3486 | |
sahilmgandhi | 18:6a4db94011d3 | 3487 | |
sahilmgandhi | 18:6a4db94011d3 | 3488 | // <i> Function for getting the timestamp is provided by the user |
sahilmgandhi | 18:6a4db94011d3 | 3489 | |
sahilmgandhi | 18:6a4db94011d3 | 3490 | #ifndef NRF_LOG_USES_TIMESTAMP |
sahilmgandhi | 18:6a4db94011d3 | 3491 | #define NRF_LOG_USES_TIMESTAMP 0 |
sahilmgandhi | 18:6a4db94011d3 | 3492 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3493 | |
sahilmgandhi | 18:6a4db94011d3 | 3494 | #endif //NRF_LOG_ENABLED |
sahilmgandhi | 18:6a4db94011d3 | 3495 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3496 | |
sahilmgandhi | 18:6a4db94011d3 | 3497 | // <h> nrf_log_backend - Logging sink |
sahilmgandhi | 18:6a4db94011d3 | 3498 | |
sahilmgandhi | 18:6a4db94011d3 | 3499 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3500 | // <o> NRF_LOG_BACKEND_MAX_STRING_LENGTH - Buffer for storing single output string |
sahilmgandhi | 18:6a4db94011d3 | 3501 | // <i> Logger backend RAM usage is determined by this value. |
sahilmgandhi | 18:6a4db94011d3 | 3502 | |
sahilmgandhi | 18:6a4db94011d3 | 3503 | #ifndef NRF_LOG_BACKEND_MAX_STRING_LENGTH |
sahilmgandhi | 18:6a4db94011d3 | 3504 | #define NRF_LOG_BACKEND_MAX_STRING_LENGTH 256 |
sahilmgandhi | 18:6a4db94011d3 | 3505 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3506 | |
sahilmgandhi | 18:6a4db94011d3 | 3507 | // <o> NRF_LOG_TIMESTAMP_DIGITS - Number of digits for timestamp |
sahilmgandhi | 18:6a4db94011d3 | 3508 | // <i> If higher resolution timestamp source is used it might be needed to increase that |
sahilmgandhi | 18:6a4db94011d3 | 3509 | |
sahilmgandhi | 18:6a4db94011d3 | 3510 | #ifndef NRF_LOG_TIMESTAMP_DIGITS |
sahilmgandhi | 18:6a4db94011d3 | 3511 | #define NRF_LOG_TIMESTAMP_DIGITS 8 |
sahilmgandhi | 18:6a4db94011d3 | 3512 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3513 | |
sahilmgandhi | 18:6a4db94011d3 | 3514 | // <e> NRF_LOG_BACKEND_SERIAL_USES_UART - If enabled data is printed over UART |
sahilmgandhi | 18:6a4db94011d3 | 3515 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3516 | #ifndef NRF_LOG_BACKEND_SERIAL_USES_UART |
sahilmgandhi | 18:6a4db94011d3 | 3517 | #define NRF_LOG_BACKEND_SERIAL_USES_UART 1 |
sahilmgandhi | 18:6a4db94011d3 | 3518 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3519 | #if NRF_LOG_BACKEND_SERIAL_USES_UART |
sahilmgandhi | 18:6a4db94011d3 | 3520 | // <o> NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE - Default Baudrate |
sahilmgandhi | 18:6a4db94011d3 | 3521 | |
sahilmgandhi | 18:6a4db94011d3 | 3522 | // <323584=> 1200 baud |
sahilmgandhi | 18:6a4db94011d3 | 3523 | // <643072=> 2400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3524 | // <1290240=> 4800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3525 | // <2576384=> 9600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3526 | // <3862528=> 14400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3527 | // <5152768=> 19200 baud |
sahilmgandhi | 18:6a4db94011d3 | 3528 | // <7716864=> 28800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3529 | // <10289152=> 38400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3530 | // <15400960=> 57600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3531 | // <20615168=> 76800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3532 | // <30801920=> 115200 baud |
sahilmgandhi | 18:6a4db94011d3 | 3533 | // <61865984=> 230400 baud |
sahilmgandhi | 18:6a4db94011d3 | 3534 | // <67108864=> 250000 baud |
sahilmgandhi | 18:6a4db94011d3 | 3535 | // <121634816=> 460800 baud |
sahilmgandhi | 18:6a4db94011d3 | 3536 | // <251658240=> 921600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3537 | // <268435456=> 57600 baud |
sahilmgandhi | 18:6a4db94011d3 | 3538 | |
sahilmgandhi | 18:6a4db94011d3 | 3539 | #ifndef NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE |
sahilmgandhi | 18:6a4db94011d3 | 3540 | #define NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE 30801920 |
sahilmgandhi | 18:6a4db94011d3 | 3541 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3542 | |
sahilmgandhi | 18:6a4db94011d3 | 3543 | // <o> NRF_LOG_BACKEND_SERIAL_UART_TX_PIN - UART TX pin |
sahilmgandhi | 18:6a4db94011d3 | 3544 | #ifndef NRF_LOG_BACKEND_SERIAL_UART_TX_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3545 | #define NRF_LOG_BACKEND_SERIAL_UART_TX_PIN 6 |
sahilmgandhi | 18:6a4db94011d3 | 3546 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3547 | |
sahilmgandhi | 18:6a4db94011d3 | 3548 | // <o> NRF_LOG_BACKEND_SERIAL_UART_RX_PIN - UART RX pin |
sahilmgandhi | 18:6a4db94011d3 | 3549 | #ifndef NRF_LOG_BACKEND_SERIAL_UART_RX_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3550 | #define NRF_LOG_BACKEND_SERIAL_UART_RX_PIN 8 |
sahilmgandhi | 18:6a4db94011d3 | 3551 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3552 | |
sahilmgandhi | 18:6a4db94011d3 | 3553 | // <o> NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN - UART RTS pin |
sahilmgandhi | 18:6a4db94011d3 | 3554 | #ifndef NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3555 | #define NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN 5 |
sahilmgandhi | 18:6a4db94011d3 | 3556 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3557 | |
sahilmgandhi | 18:6a4db94011d3 | 3558 | // <o> NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN - UART CTS pin |
sahilmgandhi | 18:6a4db94011d3 | 3559 | #ifndef NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN |
sahilmgandhi | 18:6a4db94011d3 | 3560 | #define NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN 7 |
sahilmgandhi | 18:6a4db94011d3 | 3561 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3562 | |
sahilmgandhi | 18:6a4db94011d3 | 3563 | // <o> NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL - Hardware Flow Control |
sahilmgandhi | 18:6a4db94011d3 | 3564 | |
sahilmgandhi | 18:6a4db94011d3 | 3565 | // <0=> Disabled |
sahilmgandhi | 18:6a4db94011d3 | 3566 | // <1=> Enabled |
sahilmgandhi | 18:6a4db94011d3 | 3567 | |
sahilmgandhi | 18:6a4db94011d3 | 3568 | #ifndef NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL |
sahilmgandhi | 18:6a4db94011d3 | 3569 | #define NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL 0 |
sahilmgandhi | 18:6a4db94011d3 | 3570 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3571 | |
sahilmgandhi | 18:6a4db94011d3 | 3572 | // <o> NRF_LOG_BACKEND_UART_INSTANCE - UART instance used |
sahilmgandhi | 18:6a4db94011d3 | 3573 | |
sahilmgandhi | 18:6a4db94011d3 | 3574 | // <0=> 0 |
sahilmgandhi | 18:6a4db94011d3 | 3575 | |
sahilmgandhi | 18:6a4db94011d3 | 3576 | #ifndef NRF_LOG_BACKEND_UART_INSTANCE |
sahilmgandhi | 18:6a4db94011d3 | 3577 | #define NRF_LOG_BACKEND_UART_INSTANCE 0 |
sahilmgandhi | 18:6a4db94011d3 | 3578 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3579 | |
sahilmgandhi | 18:6a4db94011d3 | 3580 | #endif //NRF_LOG_BACKEND_SERIAL_USES_UART |
sahilmgandhi | 18:6a4db94011d3 | 3581 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3582 | |
sahilmgandhi | 18:6a4db94011d3 | 3583 | // <e> NRF_LOG_BACKEND_SERIAL_USES_RTT - If enabled data is printed using RTT |
sahilmgandhi | 18:6a4db94011d3 | 3584 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3585 | #ifndef NRF_LOG_BACKEND_SERIAL_USES_RTT |
sahilmgandhi | 18:6a4db94011d3 | 3586 | #define NRF_LOG_BACKEND_SERIAL_USES_RTT 0 |
sahilmgandhi | 18:6a4db94011d3 | 3587 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3588 | #if NRF_LOG_BACKEND_SERIAL_USES_RTT |
sahilmgandhi | 18:6a4db94011d3 | 3589 | // <o> NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE - RTT output buffer size. |
sahilmgandhi | 18:6a4db94011d3 | 3590 | // <i> Should be equal or bigger than \ref NRF_LOG_BACKEND_MAX_STRING_LENGTH. |
sahilmgandhi | 18:6a4db94011d3 | 3591 | // <i> This value is used in Segger RTT configuration to set the buffer size |
sahilmgandhi | 18:6a4db94011d3 | 3592 | // <i> if it is bigger than default RTT buffer size. |
sahilmgandhi | 18:6a4db94011d3 | 3593 | |
sahilmgandhi | 18:6a4db94011d3 | 3594 | #ifndef NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3595 | #define NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE 512 |
sahilmgandhi | 18:6a4db94011d3 | 3596 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3597 | |
sahilmgandhi | 18:6a4db94011d3 | 3598 | #endif //NRF_LOG_BACKEND_SERIAL_USES_RTT |
sahilmgandhi | 18:6a4db94011d3 | 3599 | // </e> |
sahilmgandhi | 18:6a4db94011d3 | 3600 | |
sahilmgandhi | 18:6a4db94011d3 | 3601 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3602 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3603 | |
sahilmgandhi | 18:6a4db94011d3 | 3604 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3605 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3606 | |
sahilmgandhi | 18:6a4db94011d3 | 3607 | // <h> nRF_Segger_RTT |
sahilmgandhi | 18:6a4db94011d3 | 3608 | |
sahilmgandhi | 18:6a4db94011d3 | 3609 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3610 | // <h> segger_rtt - SEGGER RTT |
sahilmgandhi | 18:6a4db94011d3 | 3611 | |
sahilmgandhi | 18:6a4db94011d3 | 3612 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3613 | // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer. |
sahilmgandhi | 18:6a4db94011d3 | 3614 | // <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE |
sahilmgandhi | 18:6a4db94011d3 | 3615 | // <i> or this value is actually used. It depends on which one is bigger. |
sahilmgandhi | 18:6a4db94011d3 | 3616 | |
sahilmgandhi | 18:6a4db94011d3 | 3617 | #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP |
sahilmgandhi | 18:6a4db94011d3 | 3618 | #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 64 |
sahilmgandhi | 18:6a4db94011d3 | 3619 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3620 | |
sahilmgandhi | 18:6a4db94011d3 | 3621 | // <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Size of upstream buffer. |
sahilmgandhi | 18:6a4db94011d3 | 3622 | #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS |
sahilmgandhi | 18:6a4db94011d3 | 3623 | #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2 |
sahilmgandhi | 18:6a4db94011d3 | 3624 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3625 | |
sahilmgandhi | 18:6a4db94011d3 | 3626 | // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of upstream buffer. |
sahilmgandhi | 18:6a4db94011d3 | 3627 | #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN |
sahilmgandhi | 18:6a4db94011d3 | 3628 | #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16 |
sahilmgandhi | 18:6a4db94011d3 | 3629 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3630 | |
sahilmgandhi | 18:6a4db94011d3 | 3631 | // <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Size of upstream buffer. |
sahilmgandhi | 18:6a4db94011d3 | 3632 | #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS |
sahilmgandhi | 18:6a4db94011d3 | 3633 | #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2 |
sahilmgandhi | 18:6a4db94011d3 | 3634 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3635 | |
sahilmgandhi | 18:6a4db94011d3 | 3636 | // <o> SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full. |
sahilmgandhi | 18:6a4db94011d3 | 3637 | |
sahilmgandhi | 18:6a4db94011d3 | 3638 | |
sahilmgandhi | 18:6a4db94011d3 | 3639 | // <i> The following modes are supported: |
sahilmgandhi | 18:6a4db94011d3 | 3640 | // <i> - SKIP - Do not block, output nothing. |
sahilmgandhi | 18:6a4db94011d3 | 3641 | // <i> - TRIM - Do not block, output as much as fits. |
sahilmgandhi | 18:6a4db94011d3 | 3642 | // <i> - BLOCK - Wait until there is space in the buffer. |
sahilmgandhi | 18:6a4db94011d3 | 3643 | // <0=> SKIP |
sahilmgandhi | 18:6a4db94011d3 | 3644 | // <1=> TRIM |
sahilmgandhi | 18:6a4db94011d3 | 3645 | // <2=> BLOCK_IF_FIFO_FULL |
sahilmgandhi | 18:6a4db94011d3 | 3646 | |
sahilmgandhi | 18:6a4db94011d3 | 3647 | #ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE |
sahilmgandhi | 18:6a4db94011d3 | 3648 | #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0 |
sahilmgandhi | 18:6a4db94011d3 | 3649 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 3650 | |
sahilmgandhi | 18:6a4db94011d3 | 3651 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3652 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3653 | |
sahilmgandhi | 18:6a4db94011d3 | 3654 | // </h> |
sahilmgandhi | 18:6a4db94011d3 | 3655 | //========================================================== |
sahilmgandhi | 18:6a4db94011d3 | 3656 | |
sahilmgandhi | 18:6a4db94011d3 | 3657 | // <<< end of configuration section >>> |
sahilmgandhi | 18:6a4db94011d3 | 3658 | #endif //SDK_CONFIG_H |
sahilmgandhi | 18:6a4db94011d3 | 3659 |