Hi,
We are using today SDK 15.0 and are upgrading to SDK 17.0 for development of our system.
In our application, we use BLE communication.
While comparing SDK_config.h file of the example: "ble_nfc_pairing_reference". I saw that there are many differences between the files.
The question is how should we handle these changes?
option 1: Take all the changes?
option 2: Take only specific changes.
In the case of option 2, I would appreciate if you can describe which changes I should take.
I have attached 2 files to this question, you can compare them to further see my point.
1. nRF5_SDK_17.0.0_9d13099-org\examples\ble_peripheral\experimental\ble_nfc_pairing_reference\pca10056\s140\config
2. nRF5_SDK_15.0.0_a53641a-org\examples\ble_peripheral\experimental\ble_nfc_pairing_reference\pca10056\s140\config
3. At the bottom of this message is a summery of the differences.
I appreciate you'r support.
Alon Barak
SW development team
Qcore medical
sdk_config-17.hsdk_config-15.h
the dfinition | change |
PM_FLASH_BUFFERS | changed from 2 to 4 |
NRF_MPU_ENABLED | changed to NRF_MPU_LIB_ENABLED |
NRF_MPU_CLI_CMDS | changed to NRF_MPU_LIB_CLI_CMDS |
NRF_CRYPTO_BACKEND_CC310_BL_HASH_LITTLE_ENDIAN_DIGEST_ENABLED | removed |
NRF_CRYPTO_BACKEND_CC310_ENABLED | changed to 1 |
#define NRF_CRYPTO_BACKEND_CC310_BL_ECC_LITTLE_ENDIAN_ENABLED 0 | changed to #define NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED 1 |
#define NRF_CRYPTO_BACKEND_MICRO_ECC_PUBLIC_KEY_TRUSTED_ENABLED 0 | removed |
#define NRF_CRYPTO_BACKEND_MICRO_ECC_LITTLE_ENDIAN_ENABLED 0 | removed |
#define NRF_CRYPTO_BACKEND_NRF_SW_HASH_LITTLE_ENDIAN_DIGEST_ENABLED 1 | removed |
COMP_CONFIG_IRQ_PRIORITY | changed from 7 to 6 |
GPIOTE_CONFIG_IRQ_PRIORITY | changed from 7 to 6 |
I2S_CONFIG_IRQ_PRIORITY | changed from 7 to 6 |
LPCOMP_CONFIG_IRQ_PRIORITY | changed from 7 to 6 |
#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 7 | chagned from 7 to 6 |
NRFX_COMP_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_GPIOTE_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_I2S_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_LPCOMP_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_PDM_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_QDEC_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_QSPI_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_RNG_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_SAADC_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_TIMER_ENABLED | chagned from 7 to 6 |
NRFX_TIMER4_ENABLED | chagned from 7 to 6 |
NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
NRFX_WDT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
PDM_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
POWER_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
PWM_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
QDEC_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
QSPI_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
RNG_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
RTC_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
SAADC_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
SPIS_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
SPI_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
TIMER_ENABLED | from 0 to 1 |
TIMER_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
TIMER4_ENABLED | changed from 0 to 1 |
TWIS_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
TWI_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
UART_DEFAULT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
USBD_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
WDT_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
APP_TIMER_CONFIG_RTC_FREQUENCY | changed from 0 to 1 |
APP_TIMER_CONFIG_IRQ_PRIORITY | chagned from 7 to 6 |
APP_USBD_CDC_ACM_ENABLED | removed |
APP_USBD_CONFIG_MAX_POWER | changed from 500 to 100 |
APP_USBD_CONFIG_LOG_ENABLED | removed |
APP_USBD_CONFIG_INFO_COLOR | Removed |
APP_USBD_CONFIG_DEBUG_COLOR | Removed |
#define HARDFAULT_HANDLER_GDB_PSP_BACKTRACE 1 | changed to #define HARDFAULT_HANDLER_ENABLED 0 |
MEM_MANAGER_ENABLED | changed from 0 to 1 |
NRF_FPRINTF_ENABLED | removed |
NRF_SORTLIST_ENABLED | changed from 0 to 1 |
#define BLE_ADV_SOC_OBSERVER_PRIO 1 | Removed |
Added Items | |
// <q> PM_LESC_ENABLED - Enable/disable LESC support in Peer Manager. | |
// <i> If set to true, you need to call nrf_ble_lesc_request_handler() in the main loop to respond to LESC-related BLE events. If LESC support is not required, set this to false to save code space. | |
#ifndef PM_LESC_ENABLED | |
#define PM_LESC_ENABLED 1 | |
#endif | |
// <e> PM_RA_PROTECTION_ENABLED - Enable/disable protection against repeated pairing attempts in Peer Manager. | |
//========================================================== | |
#ifndef PM_RA_PROTECTION_ENABLED | |
#define PM_RA_PROTECTION_ENABLED 0 | |
#endif | |
// <o> PM_RA_PROTECTION_TRACKED_PEERS_NUM - Maximum number of peers whose authorization status can be tracked. | |
#ifndef PM_RA_PROTECTION_TRACKED_PEERS_NUM | |
#define PM_RA_PROTECTION_TRACKED_PEERS_NUM 8 | |
#endif | |
// <o> PM_RA_PROTECTION_MIN_WAIT_INTERVAL - Minimum waiting interval (in ms) before a new pairing attempt can be initiated. | |
#ifndef PM_RA_PROTECTION_MIN_WAIT_INTERVAL | |
#define PM_RA_PROTECTION_MIN_WAIT_INTERVAL 4000 | |
#endif | |
// <o> PM_RA_PROTECTION_MAX_WAIT_INTERVAL - Maximum waiting interval (in ms) before a new pairing attempt can be initiated. | |
#ifndef PM_RA_PROTECTION_MAX_WAIT_INTERVAL | |
#define PM_RA_PROTECTION_MAX_WAIT_INTERVAL 64000 | |
#endif | |
// <o> PM_RA_PROTECTION_REWARD_PERIOD - Reward period (in ms). | |
// <i> The waiting interval is gradually decreased when no new failed pairing attempts are made during reward period. | |
#ifndef PM_RA_PROTECTION_REWARD_PERIOD | |
#define PM_RA_PROTECTION_REWARD_PERIOD 10000 | |
#endif | |
// </e> | |
// <o> PM_HANDLER_SEC_DELAY_MS - Delay before starting security. | |
// <i> This might be necessary for interoperability reasons, especially as peripheral. | |
#ifndef PM_HANDLER_SEC_DELAY_MS | |
#define PM_HANDLER_SEC_DELAY_MS 0 | |
#endif | |
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED - Enable the Curve25519 curve support using CC310. | |
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED | |
#define NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED 1 | |
#endif | |
// <q> NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED - Enable the Ed25519 curve support using CC310. | |
#ifndef NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED | |
#define NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED 1 | |
#endif | |
#define NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED 1 | |
// <e> NRF_CRYPTO_BACKEND_OPTIGA_ENABLED - Enable the nrf_crypto Optiga Trust X backend. | |
// <i> Enables the nrf_crypto backend for Optiga Trust X devices. | |
//========================================================== | |
#ifndef NRF_CRYPTO_BACKEND_OPTIGA_ENABLED | |
#define NRF_CRYPTO_BACKEND_OPTIGA_ENABLED 0 | |
#endif | |
// <q> NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED - Optiga backend support for RNG | |
// <i> The Optiga backend provide external chip RNG. | |
#ifndef NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED | |
#define NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED 0 | |
#endif | |
// <q> NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED - Optiga backend support for ECC secp256r1 | |
// <i> The Optiga backend provide external chip ECC using secp256r1. | |
#ifndef NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED | |
#define NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED 1 | |
#endif | |
// </e> | |
// <q> NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED - Big-endian byte order in raw Curve25519 data | |
// <i> Enable big-endian byte order in Curve25519 API, if set to 1. Use little-endian, if set to 0. | |
#ifndef NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED | |
#define NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED 0 | |
#endif | |
// </e> | |
// <h> nrf_crypto_rng - RNG Configuration | |
//========================================================== | |
// <q> NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED - Use static memory buffers for context and temporary init buffer. | |
// <i> Always recommended when using the nRF HW RNG as the context and temporary buffers are small. Consider disabling if using the CC310 RNG in a RAM constrained application. In this case, memory must be provided to nrf_crypto_rng_init, or it can be allocated internally provided that NRF_CRYPTO_ALLOCATOR does not allocate memory on the stack. | |
#ifndef NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED | |
#define NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED 1 | |
#endif | |
// <q> NRF_CRYPTO_RNG_AUTO_INIT_ENABLED - Initialize the RNG module automatically when nrf_crypto is initialized. | |
// <i> Automatic initialization is only supported with static or internally allocated context and temporary memory. | |
#ifndef NRF_CRYPTO_RNG_AUTO_INIT_ENABLED | |
#define NRF_CRYPTO_RNG_AUTO_INIT_ENABLED 1 | |
#endif | |
// </h> | |
//========================================================== | |
// <e> NRFX_USBD_ENABLED - nrfx_usbd - USBD peripheral driver | |
//========================================================== | |
#ifndef NRFX_USBD_ENABLED | |
#define NRFX_USBD_ENABLED 0 | |
#endif | |
// <o> NRFX_USBD_CONFIG_IRQ_PRIORITY - Interrupt priority | |
// <0=> 0 (highest) | |
// <1=> 1 | |
// <2=> 2 | |
// <3=> 3 | |
// <4=> 4 | |
// <5=> 5 | |
// <6=> 6 | |
// <7=> 7 | |
#ifndef NRFX_USBD_CONFIG_IRQ_PRIORITY | |
#define NRFX_USBD_CONFIG_IRQ_PRIORITY 6 | |
#endif | |
// <o> NRFX_USBD_CONFIG_DMASCHEDULER_MODE - USBD DMA scheduler working scheme | |
// <0=> Prioritized access | |
// <1=> Round Robin | |
#ifndef NRFX_USBD_CONFIG_DMASCHEDULER_MODE | |
#define NRFX_USBD_CONFIG_DMASCHEDULER_MODE 0 | |
#endif | |
// <q> NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers | |
// <i> This option gives priority to isochronous transfers. | |
// <i> Enabling it assures that isochronous transfers are always processed, | |
// <i> even if multiple other transfers are pending. | |
// <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm | |
// <i> function is called, so the option is independent of the algorithm chosen. | |
#ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST | |
#define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 | |
#endif | |
// <q> NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready | |
// <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent. | |
// <i> Else, there will be no response. | |
#ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP | |
#define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 | |
#endif | |
// </e> | |
// <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver | |
// <0=> Include WDT IRQ handling | |
// <1=> Remove WDT IRQ handling | |
#ifndef NRFX_WDT_CONFIG_NO_IRQ | |
#define NRFX_WDT_CONFIG_NO_IRQ 0 | |
#endif | |
// <q> USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers | |
// <i> This option gives priority to isochronous transfers. | |
// <i> Enabling it assures that isochronous transfers are always processed, | |
// <i> even if multiple other transfers are pending. | |
// <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm | |
// <i> function is called, so the option is independent of the algorithm chosen. | |
#ifndef USBD_CONFIG_DMASCHEDULER_ISO_BOOST | |
#define USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 | |
#endif | |
// <q> USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready | |
// <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent. | |
// <i> Else, there will be no response. | |
// <i> NOTE: This option does not work on Engineering A chip. | |
#ifndef USBD_CONFIG_ISO_IN_ZLP | |
#define USBD_CONFIG_ISO_IN_ZLP 0 | |
#endif | |
// <o> APP_TIMER_SAFE_WINDOW_MS - Maximum possible latency (in milliseconds) of handling app_timer event. | |
// <i> Maximum possible timeout that can be set is reduced by safe window. | |
// <i> Example: RTC frequency 16384 Hz, maximum possible timeout 1024 seconds - APP_TIMER_SAFE_WINDOW_MS. | |
// <i> Since RTC is not stopped when processor is halted in debugging session, this value | |
// <i> must cover it if debugging is needed. It is possible to halt processor for APP_TIMER_SAFE_WINDOW_MS | |
// <i> without corrupting app_timer behavior. | |
#ifndef APP_TIMER_SAFE_WINDOW_MS | |
#define APP_TIMER_SAFE_WINDOW_MS 300000 | |
#endif | |
// <o> APP_USBD_DEVICE_VER_SUB - Sub-minor device version <0-9> | |
// <i> Sub-minor device version, will be converted automatically to BCD notation. Use just decimal values. | |
#ifndef APP_USBD_DEVICE_VER_SUB | |
#define APP_USBD_DEVICE_VER_SUB 0 | |
#endif | |
// <q> APP_USBD_CONFIG_SELF_POWERED - Self-powered device, as opposed to bus-powered. | |
#ifndef APP_USBD_CONFIG_SELF_POWERED | |
#define APP_USBD_CONFIG_SELF_POWERED 1 | |
#endif | |
// <o> APP_USBD_CONFIG_MAX_POWER - MaxPower field in configuration descriptor in milliamps. <0-500> | |
#ifndef APP_USBD_CONFIG_MAX_POWER | |
#define APP_USBD_CONFIG_MAX_POWER 100 | |
#endif | |
// <q> APP_USBD_CONFIG_POWER_EVENTS_PROCESS - Process power events. | |
// <i> Enable processing power events in USB event handler. | |
#ifndef APP_USBD_CONFIG_POWER_EVENTS_PROCESS | |
#define APP_USBD_CONFIG_POWER_EVENTS_PROCESS 1 | |
#endif | |
// <e> APP_USBD_CONFIG_EVENT_QUEUE_ENABLE - Enable event queue. | |
// <i> This is the default configuration when all the events are placed into internal queue. | |
// <i> Disable it when an external queue is used like app_scheduler or if you wish to process all events inside interrupts. | |
// <i> Processing all events from the interrupt level adds requirement not to call any functions that modifies the USBD library state from the context higher than USB interrupt context. | |
// <i> Functions that modify USBD state are functions for sleep, wakeup, start, stop, enable, and disable. | |
//========================================================== | |
#ifndef APP_USBD_CONFIG_EVENT_QUEUE_ENABLE | |
#define APP_USBD_CONFIG_EVENT_QUEUE_ENABLE 1 | |
#endif | |
// <o> APP_USBD_CONFIG_EVENT_QUEUE_SIZE - The size of the event queue. <16-64> | |
// <i> The size of the queue for the events that would be processed in the main loop. | |
#ifndef APP_USBD_CONFIG_EVENT_QUEUE_SIZE | |
#define APP_USBD_CONFIG_EVENT_QUEUE_SIZE 32 | |
#endif | |
// <o> APP_USBD_CONFIG_SOF_HANDLING_MODE - Change SOF events handling mode. | |
// <i> Normal queue - SOF events are pushed normally into the event queue. | |
// <i> Compress queue - SOF events are counted and binded with other events or executed when the queue is empty. | |
// <i> This prevents the queue from filling up with SOF events. | |
// <i> Interrupt - SOF events are processed in interrupt. | |
// <0=> Normal queue | |
// <1=> Compress queue | |
// <2=> Interrupt | |
#ifndef APP_USBD_CONFIG_SOF_HANDLING_MODE | |
#define APP_USBD_CONFIG_SOF_HANDLING_MODE 1 | |
#endif | |
// </e> | |
// <q> APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE - Provide a function that generates timestamps for logs based on the current SOF. | |
// <i> The function app_usbd_sof_timestamp_get is implemented if the logger is enabled. | |
// <i> Use it when initializing the logger. | |
// <i> SOF processing is always enabled when this configuration parameter is active. | |
// <i> Note: This option is configured outside of APP_USBD_CONFIG_LOG_ENABLED. | |
// <i> This means that it works even if the logging in this very module is disabled. | |
#ifndef APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE | |
#define APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE 0 | |
#endif | |
// <o> APP_USBD_CONFIG_DESC_STRING_SIZE - Maximum size of the NULL-terminated string of the string descriptor. <31-254> | |
// <i> 31 characters can be stored in the internal USB buffer used for transfers. | |
// <i> Any value higher than 31 creates an additional buffer just for descriptor strings. | |
#ifndef APP_USBD_CONFIG_DESC_STRING_SIZE | |
#define APP_USBD_CONFIG_DESC_STRING_SIZE 31 | |
#endif | |
// <q> APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED - Enable UTF8 conversion. | |
// <i> Enable UTF8-encoded characters. In normal processing, only ASCII characters are available. | |
#ifndef APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED | |
#define APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED 0 | |
#endif | |
// <s> APP_USBD_STRINGS_LANGIDS - Supported languages identifiers. | |
// <i> Note: This value is not editable in Configuration Wizard. | |
// <i> Comma-separated list of supported languages. | |
#ifndef APP_USBD_STRINGS_LANGIDS | |
#define APP_USBD_STRINGS_LANGIDS APP_USBD_LANG_AND_SUBLANG(APP_USBD_LANG_ENGLISH, APP_USBD_SUBLANG_ENGLISH_US) | |
#endif | |
// <e> APP_USBD_STRING_ID_MANUFACTURER - Define manufacturer string ID. | |
// <i> Setting ID to 0 disables the string. | |
//========================================================== | |
#ifndef APP_USBD_STRING_ID_MANUFACTURER | |
#define APP_USBD_STRING_ID_MANUFACTURER 1 | |
#endif | |
// <q> APP_USBD_STRINGS_MANUFACTURER_EXTERN - Define whether @ref APP_USBD_STRINGS_MANUFACTURER is created by macro or declared as a global variable. | |
#ifndef APP_USBD_STRINGS_MANUFACTURER_EXTERN | |
#define APP_USBD_STRINGS_MANUFACTURER_EXTERN 0 | |
#endif | |
// <s> APP_USBD_STRINGS_MANUFACTURER - String descriptor for the manufacturer name. | |
// <i> Note: This value is not editable in Configuration Wizard. | |
// <i> Comma-separated list of manufacturer names for each defined language. | |
// <i> Use @ref APP_USBD_STRING_DESC macro to create string descriptor from a NULL-terminated string. | |
// <i> Use @ref APP_USBD_STRING_RAW8_DESC macro to create string descriptor from comma-separated uint8_t values. | |
// <i> Use @ref APP_USBD_STRING_RAW16_DESC macro to create string descriptor from comma-separated uint16_t values. | |
// <i> Alternatively, configure the macro to point to any internal variable pointer that already contains the descriptor. | |
// <i> Setting string to NULL disables that string. | |
// <i> The order of manufacturer names must be the same like in @ref APP_USBD_STRINGS_LANGIDS. | |
#ifndef APP_USBD_STRINGS_MANUFACTURER | |
#define APP_USBD_STRINGS_MANUFACTURER APP_USBD_STRING_DESC("Nordic Semiconductor") | |
#endif | |
// </e> | |
// <e> APP_USBD_STRING_ID_PRODUCT - Define product string ID. | |
// <i> Setting ID to 0 disables the string. | |
//========================================================== | |
#ifndef APP_USBD_STRING_ID_PRODUCT | |
#define APP_USBD_STRING_ID_PRODUCT 2 | |
#endif | |
// <q> APP_USBD_STRINGS_PRODUCT_EXTERN - Define whether @ref APP_USBD_STRINGS_PRODUCT is created by macro or declared as a global variable. | |
#ifndef APP_USBD_STRINGS_PRODUCT_EXTERN | |
#define APP_USBD_STRINGS_PRODUCT_EXTERN 0 | |
#endif | |
// <s> APP_USBD_STRINGS_PRODUCT - String descriptor for the product name. | |
// <i> Note: This value is not editable in Configuration Wizard. | |
// <i> List of product names that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER. | |
#ifndef APP_USBD_STRINGS_PRODUCT | |
#define APP_USBD_STRINGS_PRODUCT APP_USBD_STRING_DESC("nRF52 USB Product") | |
#endif | |
// </e> | |
// <e> APP_USBD_STRING_ID_SERIAL - Define serial number string ID. | |
// <i> Setting ID to 0 disables the string. | |
//========================================================== | |
#ifndef APP_USBD_STRING_ID_SERIAL | |
#define APP_USBD_STRING_ID_SERIAL 3 | |
#endif | |
// <q> APP_USBD_STRING_SERIAL_EXTERN - Define whether @ref APP_USBD_STRING_SERIAL is created by macro or declared as a global variable. | |
#ifndef APP_USBD_STRING_SERIAL_EXTERN | |
#define APP_USBD_STRING_SERIAL_EXTERN 0 | |
#endif | |
// <s> APP_USBD_STRING_SERIAL - String descriptor for the serial number. | |
// <i> Note: This value is not editable in Configuration Wizard. | |
// <i> Serial number that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER. | |
#ifndef APP_USBD_STRING_SERIAL | |
#define APP_USBD_STRING_SERIAL APP_USBD_STRING_DESC("000000000000") | |
#endif | |
// </e> | |
// <e> APP_USBD_STRING_ID_CONFIGURATION - Define configuration string ID. | |
// <i> Setting ID to 0 disables the string. | |
//========================================================== | |
#ifndef APP_USBD_STRING_ID_CONFIGURATION | |
#define APP_USBD_STRING_ID_CONFIGURATION 4 | |
#endif | |
// <q> APP_USBD_STRING_CONFIGURATION_EXTERN - Define whether @ref APP_USBD_STRINGS_CONFIGURATION is created by macro or declared as global variable. | |
#ifndef APP_USBD_STRING_CONFIGURATION_EXTERN | |
#define APP_USBD_STRING_CONFIGURATION_EXTERN 0 | |
#endif | |
// <s> APP_USBD_STRINGS_CONFIGURATION - String descriptor for the device configuration. | |
// <i> Note: This value is not editable in Configuration Wizard. | |
// <i> Configuration string that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER. | |
#ifndef APP_USBD_STRINGS_CONFIGURATION | |
#define APP_USBD_STRINGS_CONFIGURATION APP_USBD_STRING_DESC("Default configuration") | |
#endif | |
// </e> | |
// <s> APP_USBD_STRINGS_USER - Default values for user strings. | |
// <i> Note: This value is not editable in Configuration Wizard. | |
// <i> This value stores all application specific user strings with the default initialization. | |
// <i> The setup is done by X-macros. | |
// <i> Expected macro parameters: | |
// <i> @code | |
// <i> X(mnemonic, [=str_idx], ...) | |
// <i> @endcode | |
// <i> - @c mnemonic: Mnemonic of the string descriptor that would be added to | |
// <i> @ref app_usbd_string_desc_idx_t enumerator. | |
// <i> - @c str_idx : String index value, can be set or left empty. | |
// <i> For example, WinUSB driver requires descriptor to be present on 0xEE index. | |
// <i> Then use X(USBD_STRING_WINUSB, =0xEE, (APP_USBD_STRING_DESC(...))) | |
// <i> - @c ... : List of string descriptors for each defined language. | |
#ifndef APP_USBD_STRINGS_USER | |
#define APP_USBD_STRINGS_USER X(APP_USER_1, , APP_USBD_STRING_DESC("User 1")) | |
#endif | |
// </e> | |
// <e> APP_USBD_HID_ENABLED - app_usbd_hid - USB HID class | |
//========================================================== | |
#ifndef APP_USBD_HID_ENABLED | |
#define APP_USBD_HID_ENABLED 0 | |
#endif | |
// <o> APP_USBD_HID_DEFAULT_IDLE_RATE - Default idle rate for HID class. <0-255> | |
// <i> 0 means indefinite duration, any other value is multiplied by 4 milliseconds. Refer to Chapter 7.2.4 of HID 1.11 Specification. | |
#ifndef APP_USBD_HID_DEFAULT_IDLE_RATE | |
#define APP_USBD_HID_DEFAULT_IDLE_RATE 0 | |
#endif | |
// <o> APP_USBD_HID_REPORT_IDLE_TABLE_SIZE - Size of idle rate table. <1-255> | |
// <i> Must be higher than the highest report ID used. | |
#ifndef APP_USBD_HID_REPORT_IDLE_TABLE_SIZE | |
#define APP_USBD_HID_REPORT_IDLE_TABLE_SIZE 4 | |
#endif | |
// </e> | |
//========================================================== | |
// <q> APP_USBD_CDC_ACM_ENABLED - Enabling USBD CDC ACM Class library | |
#ifndef APP_USBD_CDC_ACM_ENABLED | |
#define APP_USBD_CDC_ACM_ENABLED 0 | |
#endif | |
// <q> APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE - Send ZLP on write with same size as endpoint | |
// <i> If enabled, CDC ACM class will automatically send a zero length packet after transfer which has the same size as endpoint. | |
// <i> This may limit throughput if a lot of binary data is sent, but in terminal mode operation it makes sure that the data is always displayed right after it is sent. | |
#ifndef APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE | |
#define APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE 1 | |
#endif | |
// </h> | |
//========================================================== | |
// <q> NRF_CLI_METAKEYS_ENABLED - Enable additional control keys for CLI commands like ctrl+a, ctrl+e, ctrl+w, ctrl+u | |
#ifndef NRF_CLI_METAKEYS_ENABLED | |
#define NRF_CLI_METAKEYS_ENABLED 0 | |
#endif | |
// <h> nrf_fprintf - fprintf function. | |
//========================================================== | |
// <q> NRF_FPRINTF_ENABLED - Enable/disable fprintf module. | |
#ifndef NRF_FPRINTF_ENABLED | |
#define NRF_FPRINTF_ENABLED 1 | |
#endif | |
// <q> NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED - For each printed LF, function will add CR. | |
#ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED | |
#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1 | |
#endif | |
// <q> NRF_FPRINTF_DOUBLE_ENABLED - Enable IEEE-754 double precision formatting. | |
#ifndef NRF_FPRINTF_DOUBLE_ENABLED | |
#define NRF_FPRINTF_DOUBLE_ENABLED 0 | |
#endif | |
// </h> | |
//========================================================== |