104 lines
3.7 KiB
C
104 lines
3.7 KiB
C
#pragma once
|
|
#ifndef __APP_CONFIG_H__
|
|
#define __APP_CONFIG_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
// DEVICE INFO
|
|
#define DEVICE_NAME "xyz"
|
|
|
|
// LOG
|
|
#define NRF_LOG_ENABLED 1
|
|
#define NRF_LOG_DEFAULT_LEVEL 3
|
|
#define NRF_LOG_BACKEND_RTT_ENABLED 1
|
|
|
|
#define NRF_LOG_BACKEND_UART_ENABLED 0
|
|
#define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
|
|
#define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3
|
|
#define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
|
|
#define NRF_LOG_DEFERRED 0
|
|
#define NRF_LOG_USES_TIMESTAMP 0
|
|
#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0
|
|
|
|
// SEGGER-RTT
|
|
#define SEGGER_RTT_SECTION ".segger_rtt"
|
|
#define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 1
|
|
#define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 1
|
|
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 4000
|
|
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
|
|
#define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
|
|
|
|
// SoftDevice SoC event handler
|
|
#define NRF_SDH_SOC_ENABLED 1
|
|
|
|
// SoftDevice handler
|
|
#define NRF_SDH_ENABLED 1
|
|
|
|
// SoftDevice clock configuration
|
|
#define NRF_SDH_CLOCK_LF_SRC 0
|
|
#define NRF_SDH_CLOCK_LF_RC_CTIV 12
|
|
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
|
|
#define NRF_SDH_CLOCK_LF_ACCURACY 1
|
|
|
|
// SDH Observers - Observers and priority levels
|
|
#define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
|
|
#define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
|
|
#define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
|
|
|
|
// SoC Observers - Observers and priority levels
|
|
#define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
|
|
|
|
// nrf_drv_power - POWER peripheral driver - legacy layer
|
|
#define POWER_ENABLED 1
|
|
// The default configuration of main DCDC regulator
|
|
#define POWER_CONFIG_DEFAULT_DCDCEN 0
|
|
// The default configuration of High Voltage DCDC regulator
|
|
#define POWER_CONFIG_DEFAULT_DCDCENHV 0
|
|
|
|
// nrf_drv_clock - CLOCK peripheral driver - legacy layer
|
|
#define NRF_CLOCK_ENABLED 1
|
|
// LF Clock Source
|
|
#define CLOCK_CONFIG_LF_SRC 0
|
|
#define CLOCK_CONFIG_LF_CAL_ENABLED 0
|
|
// nrf_section_iter - Section iterator
|
|
#define NRF_SECTION_ITER_ENABLED 1
|
|
|
|
// State Observers priorities
|
|
#define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
|
|
#define POWER_CONFIG_STATE_OBSERVER_PRIO 0
|
|
#define RNG_CONFIG_STATE_OBSERVER_PRIO 0
|
|
|
|
// Stack Event Observers priorities
|
|
#define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
|
|
#define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
|
|
|
|
// SoC Observers priorities
|
|
#define POWER_CONFIG_SOC_OBSERVER_PRIO 0
|
|
#define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
|
|
|
|
// Interrupt priority
|
|
#define POWER_CONFIG_IRQ_PRIORITY 6
|
|
#define CLOCK_CONFIG_IRQ_PRIORITY 6
|
|
|
|
// SoftDevice BLE event handler
|
|
#define NRF_SDH_BLE_ENABLED 1
|
|
// The number of vendor-specific UUIDs.
|
|
#define NRF_SDH_BLE_VS_UUID_COUNT 0
|
|
// Attribute Table size in bytes. The size must be a multiple of 4.
|
|
#define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 1408
|
|
// BLE Observers - Observers and priority levels
|
|
#define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
|
|
// Include the Service Changed characteristic in the Attribute Table.
|
|
#define NRF_SDH_BLE_SERVICE_CHANGED 0
|
|
// Static maximum MTU size.
|
|
#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !__APP_CONFIG_H__
|