text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```unknown # Configuration for the partitions in the TF-M Module if BUILD_WITH_TFM config TFM_PARTITION_PROTECTED_STORAGE bool "Secure partition 'Protected Storage'" depends on TFM_PARTITION_PLATFORM # Specfically TFM_SP_PLATFORM_NV_COUNTER service depends on TFM_PARTITION_INTERNAL_TRUSTED_STORAGE depends on TFM_PARTITION_CRYPTO default y help Setting this option will cause '-DTFM_PARTITION_PROTECTED_STORAGE' to be passed to the TF-M build system. Look at 'config_default.cmake' in the trusted-firmware-m repository for details regarding this parameter. Any dependencies between the various TFM_PARTITION_* options are handled by the build system in the trusted-firmware-m repository. config TFM_PARTITION_INTERNAL_TRUSTED_STORAGE bool "Secure partition 'Internal Trusted Storage'" default y help Setting this option will cause '-DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE' to be passed to the TF-M build system. Look at 'config_default.cmake' in the trusted-firmware-m repository for details regarding this parameter. Any dependencies between the various TFM_PARTITION_* options are handled by the build system in the trusted-firmware-m repository. config TFM_PARTITION_CRYPTO bool "Secure partition 'Crypto'" default y help Setting this option will cause '-DTFM_PARTITION_CRYPTO' to be passed to the TF-M build system. Look at 'config_default.cmake' in the trusted-firmware-m repository for details regarding this parameter. Any dependencies between the various TFM_PARTITION_* options are handled by the build system in the trusted-firmware-m repository. config TFM_PARTITION_INITIAL_ATTESTATION bool "Secure partition 'Initial Attestation'" depends on TFM_PARTITION_CRYPTO depends on TFM_INITIAL_ATTESTATION_KEY help Setting this option will cause '-DTFM_PARTITION_INITIAL_ATTESTATION' to be passed to the TF-M build system. Look at 'config_default.cmake' in the trusted-firmware-m repository for details regarding this parameter. Any dependencies between the various TFM_PARTITION_* options are handled by the build system in the trusted-firmware-m repository. config TFM_PARTITION_PLATFORM bool "Secure partition 'Platform'" default y help Setting this option will cause '-DTFM_PARTITION_PLATFORM' to be passed to the TF-M build system. Look at 'config_default.cmake' in the trusted-firmware-m repository for details regarding this parameter. Any dependencies between the various TFM_PARTITION_* options are handled by the build system in the trusted-firmware-m repository. config TFM_PARTITION_FIRMWARE_UPDATE bool "Include the secure parition 'Firmware Update'" select TFM_MCUBOOT_DATA_SHARING default n help Setting this option will cause '-DTFM_PARTITION_FIRMWARE_UPDATE' to be passed to the TF-M build system. Look at 'config_default.cmake' in the trusted-firmware-m repository for details regarding this parameter. Any dependencies between the various TFM_PARTITION_* options are handled by the build system in the trusted-firmware-m repository. choice TFM_PARTITION_LOG_LEVEL prompt "TF-M Partition Log Level" if !TFM_LOG_LEVEL_SILENCE default TFM_PARTITION_LOG_LEVEL_INFO config TFM_PARTITION_LOG_LEVEL_DEBUG bool "Debug" config TFM_PARTITION_LOG_LEVEL_INFO bool "Info" config TFM_PARTITION_LOG_LEVEL_ERROR bool "Error" config TFM_PARTITION_LOG_LEVEL_SILENCE bool "Off" endchoice endif # BUILD_WITH_TFM ```
/content/code_sandbox/modules/trusted-firmware-m/Kconfig.tfm.partitions
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
771
```unknown # Configuration for the TF-M Module rsource "Kconfig.tfm" rsource "Kconfig.tfm.partitions" rsource "Kconfig.tfm.crypto_modules" ```
/content/code_sandbox/modules/trusted-firmware-m/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
37
```cmake # # # This file is the INHERIT equivalent to # path_to_url # # The INHERIT concept was introduced in # path_to_url if(${CPU_ARCH} STREQUAL armv7m) set(TARGET_SWITCH "-march=armv7-m") elseif(${CPU_ARCH} STREQUAL armv8m_ml) set(TARGET_SWITCH "-march=armv8-m.main -mcmse") elseif(${CPU_ARCH} STREQUAL armv8m_bl) set(TARGET_SWITCH "-march=armv8-m.base -mcmse") endif() set(CMAKE_C_FLAGS "${TARGET_SWITCH} -g -Wall -Werror -Wextra -fdata-sections -ffunction-sections -mno-unaligned-access") set(CMAKE_ASM_FLAGS "${TARGET_SWITCH} -mthumb") set(CMAKE_EXE_LINKER_FLAGS "-Xlinker --fatal-warnings -Xlinker --gc-sections -z max-page-size=0x400 -lgcc -lc -lnosys") ```
/content/code_sandbox/modules/trusted-firmware-m/psa/GNUARM.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
223
```cmake # # # set(PLATFORM_PATH platform/ext/target/nordic_nrf) include(${PLATFORM_PATH}/common/nrf5340/cpuarch.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/cpuarch.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```cmake # # # set(NRF_SOC_VARIANT nrf5340 CACHE STRING "nRF SoC Variant") include(${PLATFORM_PATH}/common/nrf5340/config.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/config.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
37
```cmake # # # set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR}) set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR}) include(${CMAKE_CURRENT_LIST_DIR}/common/nrf5340/cpuarch.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf5340_cpuapp/ns/cpuarch_ns.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```c /* * */ #include "platform/include/tfm_platform_system.h" #include "cmsis.h" #include "tfm_platform_hal_ioctl.h" #include "tfm_ioctl_core_api.h" void tfm_platform_hal_system_reset(void) { /* Reset the system */ NVIC_SystemReset(); } enum tfm_platform_err_t tfm_platform_hal_ioctl(tfm_platform_ioctl_req_t request, psa_invec *in_vec, psa_outvec *out_vec) { /* Core IOCTL services */ switch (request) { case TFM_PLATFORM_IOCTL_READ_SERVICE: return tfm_platform_hal_read_service(in_vec, out_vec); #if defined(GPIO_PIN_CNF_MCUSEL_Msk) case TFM_PLATFORM_IOCTL_GPIO_SERVICE: return tfm_platform_hal_gpio_service(in_vec, out_vec); #endif /* defined(GPIO_PIN_CNF_MCUSEL_Msk) */ /* Board specific IOCTL services */ /* Not a supported IOCTL service.*/ default: return TFM_PLATFORM_ERR_NOT_SUPPORTED; } } ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/src/tfm_platform_system.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
207
```c /* * */ #include "tfm_hal_defs.h" #include "tfm_hal_platform_common.h" enum tfm_hal_status_t tfm_hal_platform_init(void) { return tfm_hal_platform_common_init(); } ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/src/tfm_hal_platform.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```cmake # # # set(PLATFORM_PATH platform/ext/target/nordic_nrf) include(${PLATFORM_PATH}/common/nrf9120/cpuarch.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9120/cpuarch.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```cmake # # # set(NRF_SOC_VARIANT nrf91 CACHE STRING "nRF SoC Variant") include(${PLATFORM_PATH}/common/nrf91/config.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9120/config.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
35
```cmake # # # set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR}) set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR}) include(${CMAKE_CURRENT_LIST_DIR}/common/nrf9120/cpuarch.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9120/ns/cpuarch_ns.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```cmake # # # set(PLATFORM_PATH platform/ext/target/nordic_nrf) include(${PLATFORM_PATH}/common/nrf9160/cpuarch.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9160/cpuarch.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```cmake # # # set(NRF_SOC_VARIANT nrf91 CACHE STRING "nRF SoC Variant") include(${PLATFORM_PATH}/common/nrf91/config.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9160/config.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
35
```cmake # # # set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR}) set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR}) include(${CMAKE_CURRENT_LIST_DIR}/common/nrf9160/cpuarch.cmake) ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/nrf9160/ns/cpuarch_ns.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```objective-c /* * */ #ifndef __RTE_DEVICE_H #define __RTE_DEVICE_H #include <zephyr/autoconf.h> /* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */ #undef ARRAY_SIZE #include <zephyr/devicetree.h> #define UART_PIN_INIT(node_id, prop, idx) \ DT_PROP_BY_IDX(node_id, prop, idx), /* Configuration settings for Driver_USART0. */ #if DOMAIN_NS == 1U #define RTE_USART0 1 #define RTE_USART0_PINS \ { \ DT_FOREACH_CHILD_VARGS( \ DT_PINCTRL_BY_NAME(DT_NODELABEL(uart0), default, 0), \ DT_FOREACH_PROP_ELEM, psels, UART_PIN_INIT \ ) \ } #endif /* Configuration settings for Driver_USART1. */ #if DT_PINCTRL_HAS_NAME(DT_NODELABEL(uart1), default) && DOMAIN_NS != 1U #define RTE_USART1 1 #define RTE_USART1_PINS \ { \ DT_FOREACH_CHILD_VARGS( \ DT_PINCTRL_BY_NAME(DT_NODELABEL(uart1), default, 0), \ DT_FOREACH_PROP_ELEM, psels, UART_PIN_INIT \ ) \ } #endif /* Configuration settings for Driver_FLASH0. */ #define RTE_FLASH0 1 #endif /* __RTE_DEVICE_H */ ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/include/RTE_Device.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
294
```unknown # Configuration for the TF-M Module config ZEPHYR_TRUSTED_FIRMWARE_M_MODULE bool config TFM_BOARD string default "nxp/lpcxpresso55s69" if BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS default "arm/mps2/an521" if BOARD_MPS2_AN521_CPU0_NS default "arm/mps3/an547" if BOARD_MPS3_AN547 default "stm/b_u585i_iot02a" if BOARD_B_U585I_IOT02A default "stm/nucleo_l552ze_q" if BOARD_NUCLEO_L552ZE_Q default "stm/stm32l562e_dk" if BOARD_STM32L562E_DK default "arm/musca_b1" if BOARD_V2M_MUSCA_B1 default "arm/musca_s1" if BOARD_V2M_MUSCA_S1 default "${ZEPHYR_BASE}/modules/trusted-firmware-m/nordic/nrf9160" if SOC_NRF9160 default "${ZEPHYR_BASE}/modules/trusted-firmware-m/nordic/nrf9120" if SOC_NRF9120 default "${ZEPHYR_BASE}/modules/trusted-firmware-m/nordic/nrf5340_cpuapp" if SOC_NRF5340_CPUAPP help The board name used for building TFM. Building with TFM requires that TFM has been ported to the given board/SoC. menuconfig BUILD_WITH_TFM bool "Build with TF-M as the Secure Execution Environment" depends on TRUSTED_EXECUTION_NONSECURE depends on TFM_BOARD != "" depends on ARM_TRUSTZONE_M select BUILD_OUTPUT_HEX select PSA_CRYPTO_CLIENT imply INIT_ARCH_HW_AT_BOOT imply ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS imply MBEDTLS help When enabled, this option instructs the Zephyr build process to additionally generate a TF-M image for the Secure Execution environment, along with the Zephyr image. The Zephyr image itself is to be executed in the Non-Secure Processing Environment. The required dependency on TRUSTED_EXECUTION_NONSECURE ensures that the Zephyr image is built as a Non-Secure image. Both TF-M and Zephyr images, as well as the veneer object file that links them, are generated during the normal Zephyr build process. Notes: Building with the "/ns" BOARD variant (e.g. "mps2/an521/cpu0/ns") ensures that CONFIG_TRUSTED_EXECUTION_NONSECURE is enabled. By default we allow Zephyr preemptible threads be preempted while performing a secure function call. if BUILD_WITH_TFM config TFM_PROFILE string default "profile_small" if TFM_PROFILE_TYPE_SMALL default "profile_medium" if TFM_PROFILE_TYPE_MEDIUM default "profile_medium_arotless" if TFM_PROFILE_TYPE_AROTLESS default "profile_large" if TFM_PROFILE_TYPE_LARGE help Build profile used to build tfm_s image. The available values are profile_large, profile_medium and profile_small. The default profile does not need to have this configuration set. choice TFM_PROFILE_TYPE prompt "TF-M build profile" default TFM_PROFILE_TYPE_NOT_SET help The TF-M build profile selection. Can be empty (not set), small, medium or large. Certain profile types enable other TF-M configuration options, namely, the IPC model and the isolation level. config TFM_PROFILE_TYPE_NOT_SET bool "TF-M build profile: not set (base)" config TFM_PROFILE_TYPE_SMALL bool "TF-M build profile: small" config TFM_PROFILE_TYPE_MEDIUM bool "TF-M build profile: medium" config TFM_PROFILE_TYPE_AROTLESS bool "TF-M build profile: ARoT-less" config TFM_PROFILE_TYPE_LARGE bool "TF-M build profile: large" endchoice choice TFM_CMAKE_BUILD_TYPE prompt "The build type for TFM" default TFM_CMAKE_BUILD_TYPE_RELEASE if SPEED_OPTIMIZATIONS && BUILD_OUTPUT_STRIPPED default TFM_CMAKE_BUILD_TYPE_MINSIZEREL if SIZE_OPTIMIZATIONS || SIZE_OPTIMIZATIONS_AGGRESSIVE default TFM_CMAKE_BUILD_TYPE_DEBUG if DEBUG_OPTIMIZATIONS default TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO config TFM_CMAKE_BUILD_TYPE_RELEASE bool "Release build" config TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO bool "Release build with Debug info" config TFM_CMAKE_BUILD_TYPE_MINSIZEREL bool "Release build, optimized for size" config TFM_CMAKE_BUILD_TYPE_DEBUG bool "Debug build" endchoice config TFM_ISOLATION_LEVEL int "Isolation level setting." if (TFM_PROFILE_TYPE_NOT_SET && TFM_IPC) range 1 3 default 1 if TFM_PROFILE_TYPE_SMALL || !TFM_IPC default 2 if TFM_PROFILE_TYPE_MEDIUM default 3 if TFM_PROFILE_TYPE_LARGE help Manually set the required TFM isolation level. Possible values are 1,2 or 3; the default is set by build configuration. When TF-M Profile option is supplied, do not allow manual setting of the isolation level, as it is determined by the profile setting. As isolation levels 2 and 3 require PSA_API (TFM_IPC) support, force level 1 when TFM_IPC is not enabled. config TFM_ITS_NUM_ASSETS_OVERRIDE bool "Override maximum number of Internal Trusted Storage assets" help Override the platform's default maximum number of assets to be stored in Internal Trusted Storage (ITS) with TFM_ITS_NUM_ASSETS. config TFM_ITS_NUM_ASSETS int "Maximum number of Internal Trusted Storage assets" depends on TFM_ITS_NUM_ASSETS_OVERRIDE default 0 help Maximum number of assets to be stored in Internal Trusted Storage (ITS). config TFM_ITS_MAX_ASSET_SIZE_OVERRIDE bool "Override maximum Internal Trusted Storage asset size" help Override the platform's default maximum size of a single asset to be stored in Internal Trusted Storage (ITS) with TFM_ITS_MAX_ASSET_SIZE. config TFM_ITS_MAX_ASSET_SIZE int "Maximum Internal Trusted Storage asset size" depends on TFM_ITS_MAX_ASSET_SIZE_OVERRIDE default 0 help Maximum size (in bytes) of a single asset to be stored in Internal Trusted Storage (ITS). config TFM_PARTITION_PLATFORM_CUSTOM_REBOOT bool "Use custom reboot handler" depends on TFM_PARTITION_PLATFORM help Do not include the default zephyr implementation of calling the TF-M platform reset service. Instead the application will have to override the weak ARM implementation of sys_arch_reset(). config TFM_DUMMY_PROVISIONING bool "Provision with dummy values. NOT to be used in production" select TFM_INITIAL_ATTESTATION_KEY default y help If this option is enabled (as it is by default), a set of dummy keys / data will be provisioned. The dummy IAK matches the IAK tested by the TF-M tests, and the dummy bl2 ROTPKs match the dummy bl2 keys used by default. This option MUST not be used in production hardware, as the keys are insecure. config TFM_INITIAL_ATTESTATION_KEY bool help Hidden option to mark that the TF-M platform has an initial attestation key, which is a requirement for the Initial Attestation partition. config TFM_BL2_NOT_SUPPORTED bool help Hidden option to mark the BL2, the MCUBoot included in TF-M, as not supported. Platforms that don't use BL2 should select this option. config TFM_IMAGE_VERSION_S string "Version of the Secure Image" default "0.0.0+0" help MCUBoot may be configured to prevent rollback prevention based on image versions of both the secure firmware and non-secure firmware. This sets the secure firmware's version for rollback prevention. This version is also used for merged secure + non-secure builds (TFM_MCUBOOT_IMAGE_NUMBER == 1). config TFM_IMAGE_VERSION_NS string "Version of the Non-Secure Image" default "0.0.0+0" help MCUBoot may be configured to prevent rollback prevention based on image versions of both the secure firmware and non-secure firmware. This sets the non-secure firmware's version for rollback prevention. config TFM_BL2 bool "Add MCUboot to TFM" depends on !TFM_BL2_NOT_SUPPORTED default y help TFM is designed to run with MCUboot in a certain configuration. This config adds MCUboot to the build - built via TFM's build system. config TFM_USE_NS_APP bool "Use the TF-M Non-Secure application" help The TF-M build system can produce multiple executable files. The main one is the TF-M secure firmware. Optionally the TF-M non-secure application can be built. Usually the TF-M non-secure application is not used since the zephyr application is the non-secure application. With this option enabled this is reversed and the TF-M non-secure application is used instead of the Zephyr non-secure application. This option is intended for testing purposes only, since this is the easiest way to integrate and run the TF-M regression tests in the zephyr build system. config TFM_CONNECTION_BASED_SERVICE_API bool "TF-M use connection based service APIs" help The TF-M build system produces an interface source file for accessing connection based services. Select this option when TF-M service models requires this source file. Note: This is an auto-generated configuration in the TF-M build system. When this option is not enabled in the TF-M build system this will result in compilation error. if TFM_BL2 config TFM_MCUBOOT_SIGNATURE_TYPE string "The signature type used to sign the secure and non-secure firmware images." default "EC-P256" help Available types: RSA-2048, RSA-3072, EC-P256, EC-P384. config TFM_KEY_FILE_S string "Path to private key used to sign secure firmware images." default "${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/bl2/ext/mcuboot/root-${CONFIG_TFM_MCUBOOT_SIGNATURE_TYPE}.pem" help The path and filename for the .pem file containing the private key that should be used by the BL2 bootloader when signing secure firmware images. This key file is also used for merged secure + non-secure builds (TFM_MCUBOOT_IMAGE_NUMBER == 1). config TFM_KEY_FILE_NS string "Path to private key used to sign non-secure firmware images." default "${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/bl2/ext/mcuboot/root-${CONFIG_TFM_MCUBOOT_SIGNATURE_TYPE}_1.pem" help The path and filename for the .pem file containing the private key that should be used by the BL2 bootloader when signing non-secure firmware images. config TFM_MCUBOOT_IMAGE_NUMBER int "Granularity of FW updates of TFM and app" range 1 2 default 2 help How many images the bootloader sees when it looks at TFM and the app. When this is 1, the S and NS are considered as 1 image and must be updated in one atomic operation. When this is 2, they are split and can be updated independently if dependency requirements are met. choice TFM_MCUBOOT_PATH prompt "Path to MCUboot or DOWNLOAD to fetch automatically" default TFM_MCUBOOT_PATH_LOCAL help Path to MCUboot for TF-M builds. The default option is to use Zephyr's MCUboot module. As an alternative, users may switch to the 'download' version; in that case MCUboot will be fetched by the TF-M build during build time. The default option ensures that Zephyr builds with TF-M do not fetch external trees. config TFM_MCUBOOT_PATH_LOCAL bool "TF-M to use Zephyr's MCUboot" help TF-M builds with BL2 will use the Zephyr's MCUboot version, which is present in the MCUboot module. config TFM_MCUBOOT_PATH_DOWNLOAD bool "TF-M to automatically download MCUboot during build" help TF-M builds with BL2 will let the TF-M build to automatically fetch and check-out the MCUboot version to use in the build. endchoice config TFM_QCBOR_PATH string prompt "Path to QCBOR or DOWNLOAD to fetch automatically" default "" help Path to QCBOR for TF-M builds. Due to a license issue with this library Zephyr does not ship with this library. If the application wishes to still use this library they can point to their own checkout of this library, or set to DOWNLOAD to allow TF-M build system to automatically download this. config TFM_MCUBOOT_DATA_SHARING bool "Share app-specific data between TF-M and MCUBoot" help Add sharing of application specific data using the same shared data area as for the measured boot. endif # TFM_BL2 choice TFM_MODEL prompt "TF-M Firmware Framework model" default TFM_SFN if TFM_PROFILE_TYPE_SMALL default TFM_IPC help The Firmware Framework M (FF-M) provides different programming models for Secure Partitions. config TFM_IPC bool "IPC Model" help Use the IPC Model as the SPM backend for the PSA API. The IPC model supports the IPC and SFN Partition models, and isolation levels 1, 2 and 3. In this model each Secure Partition processes signals in any order, and can defer responding to a message while continuing to process other signals. The IPC model conforms to the PSA Firmware Framework for M (FF-M) v1.1. config TFM_SFN bool "SFN model" help Use the SFN Model as the SPM backend for the PSA API. The SFN model supports the SFN Partition model, and isolation level 1. In this model each Secure Partition is made up of a collection of callback functions which implement secure services. The SFN model conforms to the PSA Firmware Framework for M (FF-M) v1.1. endchoice # TFM_MODEL config TFM_REGRESSION_S bool "TF-M Secure Regression tests" help When enabled, this option signifies that the TF-M build includes the Secure domain regression tests. The regression tests will be included in the TF-M secure firmware. config TFM_REGRESSION_NS bool "TF-M Non-Secure Regression tests" help When enabled, this option signifies that the TF-M build includes the Non-Secure domain regression tests. The regression tests will be included in the TF-M non-secure application. choice TFM_PSA_TEST prompt "Enable a PSA test suite" default TFM_PSA_TEST_NONE config TFM_PSA_TEST_CRYPTO bool "Crypto tests" depends on MAIN_STACK_SIZE >= 4096 help Enable the PSA Crypto test suite. config TFM_PSA_TEST_PROTECTED_STORAGE bool "Storage tests" help Enable the PSA Protected Storage test suite. config TFM_PSA_TEST_INTERNAL_TRUSTED_STORAGE bool "Internal Trusted Storage tests" help Enable the PSA Internal Trusted Storage test suite. config TFM_PSA_TEST_STORAGE bool "Storage tests" help Enable the PSA Storage test suite. This is a combination of the protected storage and internal trusted storage tests. config TFM_PSA_TEST_INITIAL_ATTESTATION bool "Initial attestation tests" depends on MAIN_STACK_SIZE >= 4096 select TFM_PARTITION_INITIAL_ATTESTATION help Enable the PSA Initial Attestation test suite. config TFM_PSA_TEST_NONE bool "No PSA test suite" endchoice if TFM_BL2 config ROM_START_OFFSET hex "ROM Start Offset accounting for BL2 Header in the NS image" default 0x400 help By default BL2 header size in TF-M is 0x400. ROM_START_OFFSET needs to be updated if TF-M switches to use a different header size for BL2. choice TFM_BL2_LOG_LEVEL prompt "BL2 Log Level" if !TFM_LOG_LEVEL_SILENCE default TFM_BL2_LOG_LEVEL_INFO config TFM_BL2_LOG_LEVEL_DEBUG bool "Debug" config TFM_BL2_LOG_LEVEL_INFO bool "Info" config TFM_BL2_LOG_LEVEL_WARNING bool "Warning" config TFM_BL2_LOG_LEVEL_ERROR bool "Error" config TFM_BL2_LOG_LEVEL_OFF bool "Off" endchoice endif # !TFM_BL2 # Option to instruct flashing a merged binary consisting of BL2 (optionally), # TF-M (Secure), and application (Non-Secure). config TFM_FLASH_MERGED_BINARY bool help This option instructs west flash to program the combined (merged) binary consisting of the TF-M Secure firmware image, optionally, the BL2 image (if building with TFM_BL2 is enabled), and the Non-Secure application firmware. config TFM_LOG_LEVEL_SILENCE bool "TF-M Disable secure logging" help Set the log level to silence for all TF-M modules (SPM, partition, etc.). On some platforms this will release the UART from the secure domain and reduce the uart driver's flash usage. choice TFM_SPM_LOG_LEVEL prompt "TF-M SPM Log Level" if !TFM_LOG_LEVEL_SILENCE default TFM_SPM_LOG_LEVEL_INFO config TFM_SPM_LOG_LEVEL_DEBUG bool "Debug" config TFM_SPM_LOG_LEVEL_INFO bool "Info" config TFM_SPM_LOG_LEVEL_ERROR bool "Error" config TFM_SPM_LOG_LEVEL_SILENCE bool "Off" endchoice config TFM_EXCEPTION_INFO_DUMP bool "TF-M exception info dump" default y help On fatal errors in the secure firmware, capture info about the exception. Print the info if the SPM log level is sufficient. endif # BUILD_WITH_TFM ```
/content/code_sandbox/modules/trusted-firmware-m/Kconfig.tfm
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,052
```objective-c /* * */ #ifndef DEVICE_CFG_H__ #define DEVICE_CFG_H__ #include <zephyr/autoconf.h> /* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */ #undef ARRAY_SIZE #include <zephyr/devicetree.h> #if DOMAIN_NS == 1U #define TFM_UART uart0 #endif #if DOMAIN_NS != 1U #define TFM_UART uart1 #endif #define DEFAULT_UART_BAUDRATE DT_PROP_OR(DT_NODELABEL(TFM_UART), current_speed, 115200) #if DT_PROP(DT_NODELABEL(TFM_UART), hw_flow_control) #define DEFAULT_UART_CONTROL ARM_USART_FLOW_CONTROL_RTS_CTS #else #define DEFAULT_UART_CONTROL 0 #endif #endif /* DEVICE_CFG_H__ */ ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/include/device_cfg.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
165
```objective-c /* * */ #ifndef TFM_PERIPHERALS_CONFIG_H__ #define TFM_PERIPHERALS_CONFIG_H__ #ifdef __cplusplus extern "C" { #endif #ifdef SECURE_UART1 #define TFM_PERIPHERAL_UARTE1_SECURE 1 #endif #if TEST_NS_SLIH_IRQ || TEST_NS_FLIH_IRQ #define TFM_PERIPHERAL_TIMER0_SECURE 1 #endif #ifdef PSA_API_TEST_IPC #define TFM_PERIPHERAL_EGU5_SECURE 1 #define TFM_PERIPHERAL_WDT_SECURE 1 #endif #if defined(NRF91_SERIES) #include <tfm_peripherals_config_nrf91.h> #elif defined(NRF5340_XXAA_APPLICATION) #include <tfm_peripherals_config_nrf5340_application.h> #else #error "Unknown device." #endif #ifdef __cplusplus } #endif #endif /* TFM_PERIPHERAL_CONFIG_H__ */ ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/include/tfm_peripherals_config.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
196
```objective-c /* * */ #ifndef TFM_IOCTL_API_H__ #define TFM_IOCTL_API_H__ #include <limits.h> #include <stdint.h> #include <tfm_platform_api.h> /* Include core IOCTL services */ #include <tfm_ioctl_core_api.h> #ifdef __cplusplus extern "C" { #endif /* Board specific IOCTL services can be added here */ #ifdef __cplusplus } #endif /** * @} */ #endif /* TFM_IOCTL_API_H__ */ ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/include/tfm_ioctl_api.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
93
```objective-c /* * */ #ifndef __ARRAY_H__ #define __ARRAY_H__ #ifdef __cplusplus extern "C" { #endif #include <zephyr/sys/util.h> #ifdef __cplusplus } #endif #endif /* __ARRAY_H__ */ ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/include/util/array.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
48
```objective-c /* * */ #ifndef TFM_READ_RANGES_H__ #define TFM_READ_RANGES_H__ #include <tfm_ioctl_core_api.h> #include <nrf.h> #ifdef NRF_FICR_S_BASE #define FICR_BASE NRF_FICR_S_BASE #define FICR_INFO_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, INFO)) #define FICR_INFO_SIZE (sizeof(FICR_INFO_Type)) #if defined(FICR_NFC_TAGHEADER0_MFGID_Msk) #define FICR_NFC_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, NFC)) #define FICR_NFC_SIZE (sizeof(FICR_NFC_Type)) #endif #if defined(FICR_XOSC32MTRIM_SLOPE_Msk) #define FICR_XOSC32MTRIM_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, XOSC32MTRIM)) #define FICR_XOSC32MTRIM_SIZE (sizeof(uint32_t)) #endif /* Used by nrf_erratas.h */ #define FICR_RESTRICTED_ADDR (FICR_BASE + 0x130) #define FICR_RESTRICTED_SIZE 0x8 #if defined(FICR_SIPINFO_PARTNO_PARTNO_Pos) #define FICR_SIPINFO_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, SIPINFO)) #define FICR_SIPINFO_SIZE (sizeof(FICR_SIPINFO_Type)) #endif #endif /* NRF_FICR_S_BASE */ static const struct tfm_read_service_range ranges[] = { #if defined(FICR_INFO_ADDR) { .start = FICR_INFO_ADDR, .size = FICR_INFO_SIZE }, #endif #if defined(FICR_NFC_ADDR) { .start = FICR_NFC_ADDR, .size = FICR_NFC_SIZE }, #endif #if defined(FICR_RESTRICTED_ADDR) { .start = FICR_RESTRICTED_ADDR, .size = FICR_RESTRICTED_SIZE }, #endif #if defined(FICR_XOSC32MTRIM_ADDR) { .start = FICR_XOSC32MTRIM_ADDR, .size = FICR_XOSC32MTRIM_SIZE }, #endif #if defined(FICR_SIPINFO_ADDR) { .start = FICR_SIPINFO_ADDR, .size = FICR_SIPINFO_SIZE }, #endif }; #endif /* TFM_READ_RANGES_H__ */ ```
/content/code_sandbox/modules/trusted-firmware-m/nordic/include/tfm_read_ranges.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
537
```c /* * */ #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/arch/arm/cortex_m/fpu.h> #include <tfm_ns_interface.h> /** * @file @brief Zephyr's TF-M NS interface implementation * */ /* Global mutex to be used by the TF-M NS dispatcher, preventing * the Non-Secure application from initiating multiple parallel * TF-M secure calls. */ K_MUTEX_DEFINE(tfm_mutex); int32_t tfm_ns_interface_dispatch(veneer_fn fn, uint32_t arg0, uint32_t arg1, uint32_t arg2, uint32_t arg3) { int32_t result; bool is_pre_kernel = k_is_pre_kernel(); int tfm_ns_saved_prio; if (!is_pre_kernel) { /* TF-M request protected by NS lock */ if (k_mutex_lock(&tfm_mutex, K_FOREVER) != 0) { return (int32_t)PSA_ERROR_GENERIC_ERROR; } #if !defined(CONFIG_ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS) /* Prevent the thread from being preempted, while executing a * Secure function. This is required to prevent system crashes * that could occur, if a thread context switch is triggered in * the middle of a Secure call. Note that the code below takes * into account MetaIRQ, which can preempt cooperative threads * of any priority. */ tfm_ns_saved_prio = k_thread_priority_get(k_current_get()); k_thread_priority_set(k_current_get(), K_HIGHEST_THREAD_PRIO); #else ARG_UNUSED(tfm_ns_saved_prio); #endif } struct fpu_ctx_full context_buffer; z_arm_save_fp_context(&context_buffer); result = fn(arg0, arg1, arg2, arg3); z_arm_restore_fp_context(&context_buffer); if (!is_pre_kernel) { #if !defined(CONFIG_ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS) /* Restore thread priority, to allow the thread to be preempted. */ k_thread_priority_set(k_current_get(), tfm_ns_saved_prio); #endif k_mutex_unlock(&tfm_mutex); } return result; } uint32_t tfm_ns_interface_init(void) { /* * The static K_MUTEX_DEFINE handles mutex initialization, * so this function may be implemented as no-op. */ return PSA_SUCCESS; } #if defined(TFM_PSA_API) #include "psa_manifest/sid.h" #endif /* TFM_PSA_API */ static int ns_interface_init(void) { __ASSERT(tfm_ns_interface_init() == PSA_SUCCESS, "TF-M NS interface init failed"); return 0; } /* Initialize the TFM NS interface */ SYS_INIT(ns_interface_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); ```
/content/code_sandbox/modules/trusted-firmware-m/interface/interface.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
614
```c /* * */ #include <zephyr/kernel.h> #include "tfm_platform_api.h" #if defined(TFM_PSA_API) #include "psa_manifest/sid.h" #endif /* TFM_PSA_API */ /** * * @brief Reset the system * * This routine resets the processor. * * The function requests Trusted-Firmware-M to reset the processor, * on behalf of the Non-Secure application. The function overrides * the weak implementation of sys_arch_reboot() in scb.c. * * \pre The implementation requires the TFM_PARTITION_PLATFORM be defined. */ #if defined(CONFIG_TFM_PARTITION_PLATFORM) void sys_arch_reboot(int type) { ARG_UNUSED(type); (void)tfm_platform_system_reset(); } #endif /* CONFIG_TFM_PARTITION_PLATFORM */ ```
/content/code_sandbox/modules/trusted-firmware-m/src/reboot.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
161
```c /* * */ #include <zephyr/sys/printk.h> int tfm_log_printf(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vprintk(fmt, ap); va_end(ap); return 0; } ```
/content/code_sandbox/modules/trusted-firmware-m/src/zephyr_tfm_log.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
52
```unknown config OPENTHREAD bool "OpenThread Support" help This option enables the OpenThread library if OPENTHREAD menu "OpenThread stack features" rsource "Kconfig.features" endmenu menu "Thread Network configuration" rsource "Kconfig.thread" endmenu endif # OPENTHREAD ```
/content/code_sandbox/modules/openthread/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```unknown # Thread network configuration options config OPENTHREAD_PANID int "Default PAN ID" default 43981 config OPENTHREAD_CHANNEL int "Default Channel" default 11 config OPENTHREAD_NETWORK_NAME string "Default network name" default "ot_zephyr" help Network name for OpenThread config OPENTHREAD_XPANID string "Default Extended PAN ID" default "de:ad:00:be:ef:00:ca:fe" help Extended PAN ID for OpenThread with format "de:ad:00:be:ef:00:ca:fe" config OPENTHREAD_NETWORKKEY string "Default Thread Network Key" help Network Key for OpenThread with format "00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff" config OPENTHREAD_JOINER_AUTOSTART bool "Automatic joiner start" depends on OPENTHREAD_JOINER config OPENTHREAD_JOINER_PSKD string "Default pre shared key for the Joiner" depends on OPENTHREAD_JOINER_AUTOSTART default "J01NME" choice OPENTHREAD_DEVICE_TYPE prompt "OpenThread device type" help This option selects Thread network device type config OPENTHREAD_FTD bool "FTD - Full Thread Device" config OPENTHREAD_MTD bool "MTD - Minimal Thread Device" endchoice config OPENTHREAD_MTD_SED bool "SED - Sleepy End Device" depends on OPENTHREAD_MTD config OPENTHREAD_POLL_PERIOD int "Poll period for sleepy end devices [ms]" default 236000 depends on OPENTHREAD_MTD_SED config OPENTHREAD_MAX_CHILDREN int "The maximum number of children" range 1 511 default 32 config OPENTHREAD_MAX_IP_ADDR_PER_CHILD int "The maximum number of IPv6 address registrations per child" range 4 $(UINT8_MAX) default 6 config OPENTHREAD_CONFIG_PLATFORM_INFO string "The platform-specific string to insert into the OpenThread version string" default "Zephyr" config OPENTHREAD_RADIO_LINK_IEEE_802_15_4_ENABLE bool "Support for IEEE802.15.4 radio link" default y config OPENTHREAD_CSL_AUTO_SYNC bool "CSL autosync" default y if OPENTHREAD_CSL_RECEIVER config OPENTHREAD_CSL_RECEIVE_TIME_AHEAD int "CSL receiver wake up margin in microseconds" default 5000 config OPENTHREAD_MIN_RECEIVE_ON_AHEAD int "Minimum receiving time before start of MHR" default 192 help The minimum time (microseconds) that radio has to be in receive mode before the start of the MHR. config OPENTHREAD_MIN_RECEIVE_ON_AFTER int "Minimum receiving time after start of MHR" default 5504 help The minimum time (microseconds) that radio should be in receive mode after the start of the MHR. config OPENTHREAD_PLATFORM_CSL_UNCERT int "CSL uncertainty" default $(UINT8_MAX) range 0 $(UINT8_MAX) help The fixed uncertainty of the Device for scheduling CSL Transmissions in units of 10 microseconds. config OPENTHREAD_CSL_TIMEOUT int "CSL timeout in seconds" default 100 help The default CSL timeout in seconds. config OPENTHREAD_MAC_SOFTWARE_TX_SECURITY_ENABLE bool "Software transmission security logic" default y if !OPENTHREAD_THREAD_VERSION_1_1 config OPENTHREAD_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH bool "Inform previous parent on reattach" default y if OPENTHREAD_PARENT_SEARCH help To allow end devices (EDs) in a Thread network to inform their previous parent router that they have attached to a new parent router, enable the Inform Previous Parent on Reattach feature. config OPENTHREAD_PARENT_SEARCH bool "Periodic parent search support" help To allow end devices (EDs) in a Thread network to switch to a better parent router than their current onewhile still attached to the networkenable the Periodic Parent Search feature. config OPENTHREAD_PARENT_SEARCH_CHECK_INTERVAL int "Interval to trigger parent search in seconds" default 540 depends on OPENTHREAD_PARENT_SEARCH config OPENTHREAD_PARENT_SEARCH_BACKOFF_INTERVAL int "Backoff interval to prevent parent search retry in seconds" default 36000 depends on OPENTHREAD_PARENT_SEARCH config OPENTHREAD_PARENT_SEARCH_RSS_THRESHOLD int "RSSI threshold to trigger parent search" default -65 depends on OPENTHREAD_PARENT_SEARCH config OPENTHREAD_CLI_MAX_LINE_LENGTH int "The maximum size of the CLI line in bytes" range 16 1024 default 384 config OPENTHREAD_IP6_MAX_EXT_UCAST_ADDRS int "The maximum number of supported IPv6 addresses allows to be externally added" range 0 32 default 4 config OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS int "The maximum number of supported IPv6 multicast addresses allows to be externally added" range 0 32 default 2 config OPENTHREAD_TCP_ENABLE bool "TCP support" config OPENTHREAD_CLI_TCP_ENABLE bool "TCP in the CLI tool" default y if SHELL depends on OPENTHREAD_TCP_ENABLE config OPENTHREAD_HISTORY_TRACKER bool "History tracker support" config OPENTHREAD_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS bool "Stay awake between packet fragments" help This optimization is done at the expense of power consumption on SED/SSED devices. config OPENTHREAD_DEFAULT_TX_POWER int "OpenThread default tx power in dBm" range -40 20 if NRF_802154_RADIO_DRIVER default 0 help Set the default TX output power [dBm] in radio driver for OpenThread purpose. config OPENTHREAD_BLE_TCAT_THREAD_STACK_SIZE int "Openthread default TCAT stack size" default 5120 if OPENTHREAD_CRYPTO_PSA default 4200 help Openthread default TCAT stack size. config OPENTHREAD_BLE_TCAT_RING_BUF_SIZE int "Openthread BLE ringbuffer size" default 512 help Openthread BLE TCAT ringbuffer size. config OPENTHREAD_NAT64_CIDR string "Set IPv4 CIDR used by NAT64" default "192.168.255.0/24" depends on OPENTHREAD_BORDER_ROUTING && OPENTHREAD_NAT64_TRANSLATOR help Set the IPv4 CIDR (Classless Inter-Domain Routing) used by NAT64 to set source address of the outgoing translated IPv4 packets. The CIDR must have four bytes in the address with the non-zero length of prefix (e.g., "127.0.0.1/24"). ```
/content/code_sandbox/modules/openthread/Kconfig.thread
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,551
```unknown # OpenThread stack features selection choice OPENTHREAD_STACK_VERSION prompt "OpenThread stack version" default OPENTHREAD_THREAD_VERSION_1_1 help This option selects version of Thread stack config OPENTHREAD_THREAD_VERSION_1_1 bool "Version 1.1" config OPENTHREAD_THREAD_VERSION_1_2 bool "Version 1.2" config OPENTHREAD_THREAD_VERSION_1_3 bool "Version 1.3" config OPENTHREAD_THREAD_VERSION_1_3_1 bool "Version 1.3.1" config OPENTHREAD_THREAD_VERSION_1_4 bool "Version 1.4" endchoice # OPENTHREAD_STACK_VERSION config OPENTHREAD_THREAD_VERSION string default "1.1" if OPENTHREAD_THREAD_VERSION_1_1 default "1.2" if OPENTHREAD_THREAD_VERSION_1_2 default "1.3" if OPENTHREAD_THREAD_VERSION_1_3 default "1.3.1" if OPENTHREAD_THREAD_VERSION_1_3_1 default "1.4" if OPENTHREAD_THREAD_VERSION_1_4 default "unknown" config OPENTHREAD_ANYCAST_LOCATOR bool "Anycast locator support" config OPENTHREAD_BACKBONE_ROUTER bool "Backbone Router functionality" config OPENTHREAD_BACKBONE_ROUTER_DUA_NDPROXYING bool "BBR DUA ND Proxy support" config OPENTHREAD_BACKBONE_ROUTER_MULTICAST_ROUTING bool "BBR MR support" config OPENTHREAD_BLE_TCAT bool "BLE TCAT support" select EXPERIMENTAL config OPENTHREAD_BORDER_AGENT bool "Border Agent support" config OPENTHREAD_BORDER_AGENT_EPHEMERAL_KEY_ENABLE bool "Border agent ephemeral PSKc" config OPENTHREAD_BORDER_ROUTER bool "Border Router support" config OPENTHREAD_BORDER_ROUTING bool "Border routing support" config OPENTHREAD_BORDER_ROUTING_COUNTERS bool "Border routing counters support" config OPENTHREAD_BORDER_ROUTING_DHCP6_PD bool "DHCPv6-PD support in border routing" config OPENTHREAD_CHANNEL_MONITOR bool "Channel monitor support" config OPENTHREAD_CHANNEL_MANAGER bool "Channel manager support" depends on OPENTHREAD_CHANNEL_MONITOR config OPENTHREAD_CHANNEL_MANAGER_CSL bool "Channel manager for CSL channel" config OPENTHREAD_COAP bool "OpenThread CoAP support" help Enable CoAP API for the application with use of OpenThread stack config OPENTHREAD_COAP_BLOCK bool "CoAP Block-wise option support" config OPENTHREAD_COAP_OBSERVE bool "CoAP Observe option support" config OPENTHREAD_COAPS bool "Secure CoAP API support" depends on OPENTHREAD_COAP config OPENTHREAD_COMMISSIONER bool "Commissioner functions support" help Enable commissioner capability in OpenThread stack. Note, that DTLS handshake used in the commissioning procedure requires a larger mbedTLS heap than the default value. A minimum recommended value of CONFIG_MBEDTLS_HEAP_SIZE for the commissioning is 10KB. config OPENTHREAD_CSL_DEBUG bool "CSL debugging" config OPENTHREAD_CSL_RECEIVER bool "CSL Receiver support" help Enable CSL Receiver support for Thread 1.2 config OPENTHREAD_CSL_RECEIVER_LOCAL_TIME_SYNC bool "Use local time for CSL synchronization" help Use host time rather than radio platform time to track elapsed time since last CSL synchronization. This reduces the usage of radio API calls, and it is useful for platforms in which those are costly. config OPENTHREAD_DEVICE_PROP_LEADER_WEIGHT bool "Device props for leader weight" default n if (OPENTHREAD_THREAD_VERSION_1_1 || \ OPENTHREAD_THREAD_VERSION_1_2 || \ OPENTHREAD_THREAD_VERSION_1_3) default y help Enable the device properties which are then used to determine and set the Leader Weight. config OPENTHREAD_DATASET_UPDATER bool "Dataset updater" config OPENTHREAD_DHCP6_CLIENT bool "DHCPv6 client support" config OPENTHREAD_DHCP6_SERVER bool "DHCPv6 server support" config OPENTHREAD_DIAG bool "Diagnostic functions support" help Enable OpenThread CLI diagnostic commands config OPENTHREAD_DNS_CLIENT bool "DNS client support" config OPENTHREAD_DNS_CLIENT_OVER_TCP bool "DNS query over tcp" config OPENTHREAD_DNS_DSO bool "DNS Stateful Operations (DSO) support" config OPENTHREAD_DNS_UPSTREAM_QUERY bool "Forwarding DNS queries to upstream" help Enable forwarding DNS queries to platform DNS upstream API config OPENTHREAD_DNSSD_SERVER bool "DNS-SD server support" config OPENTHREAD_DUA bool "Domain Unicast Address support" help Enable Domain Unicast Address feature for Thread 1.2 config OPENTHREAD_ECDSA bool "ECDSA support" config OPENTHREAD_ENABLE_SERVICE bool "Service support" help Enable Thread Services capability in OpenThread stack config OPENTHREAD_EXTERNAL_HEAP bool "External heap support" config OPENTHREAD_FIREWALL bool "Firewall support" config OPENTHREAD_FULL_LOGS bool "OpenThread full logs" config OPENTHREAD_IP6_FRAGM bool "IPv6 fragmentation support" config OPENTHREAD_JAM_DETECTION bool "Jam detection support" config OPENTHREAD_JOINER bool "Joiner functions support" help Enable joiner capability in OpenThread stack. Note, that DTLS handshake used in the commissioning procedure requires a larger mbedTLS heap than the default value. A minimum recommended value of CONFIG_MBEDTLS_HEAP_SIZE for the commissioning is 10KB. config OPENTHREAD_LEGACY bool "Legacy network support" config OPENTHREAD_LINK_METRICS_INITIATOR bool "Link Metrics initiator" config OPENTHREAD_LINK_METRICS_MANAGER bool "Link Metrics manager" config OPENTHREAD_LINK_METRICS_SUBJECT bool "Link Metrics subject" config OPENTHREAD_PLATFORM_LOG_CRASH_DUMP bool "Platform log crash dump" config OPENTHREAD_LOG_LEVEL_DYNAMIC bool "Dynamic log level control" config OPENTHREAD_MAC_FILTER bool "MAC filter support" config OPENTHREAD_MULTICAST_DNS bool "Multicast DNS (mDNS)" config OPENTHREAD_MESH_DIAG bool "Mesh Diagnostics" depends on OPENTHREAD_FTD help Enable Mesh Diagnostics config OPENTHREAD_MESSAGE_USE_HEAP bool "Heap allocator for message buffers" config OPENTHREAD_MLE_LONG_ROUTES bool "MLE long routes extension (experimental)" select EXPERIMENTAL help Enable MLE long routes extension (experimental, breaks Thread conformance) config OPENTHREAD_MLR bool "Multicast Listener Registration support" help Enable Multicast Listener Registration support for Thread 1.2 config OPENTHREAD_MULTIPAN_RCP bool "OpenThread multipan rcp" config OPENTHREAD_MULTIPLE_INSTANCE bool "OpenThread multiple instances" config OPENTHREAD_NAT64_BORDER_ROUTING bool "Border routing NAT64 support" config OPENTHREAD_NAT64_TRANSLATOR bool "NAT64 translator support" config OPENTHREAD_NETDIAG_CLIENT bool "TMF network diagnostics on client" config OPENTHREAD_NEIGHBOR_DISCOVERY_AGENT bool "Neighbor discovery agent support" config OPENTHREAD_NETDATA_PUBLISHER bool "Thread Network Data publisher" config OPENTHREAD_OPERATIONAL_DATASET_AUTO_INIT bool "Operational dataset auto init" default y config OPENTHREAD_OTNS bool "OTNS support" config OPENTHREAD_PING_SENDER bool "Ping sender support" config OPENTHREAD_PLATFORM_KEY_REF bool "Platform cryptographic key reference support" help Enable usage of cryptographic key references instead of literal keys. This requires a crypto backend library that supports key references. choice OPENTHREAD_PLATFORM_BOOTLOADER_MODE_CHOICE prompt "Platform bootloader mode configuration" optional config OPENTHREAD_PLATFORM_BOOTLOADER_MODE_RETENTION bool "Bootloader mode support with boot mode retention API" depends on RETENTION_BOOT_MODE && REBOOT select OPENTHREAD_PLATFORM_BOOTLOADER_MODE config OPENTHREAD_PLATFORM_BOOTLOADER_MODE_GPIO bool "Bootloader mode support with GPIO pin trigger" select OPENTHREAD_PLATFORM_BOOTLOADER_MODE endchoice # OPENTHREAD_PLATFORM_BOOTLOADER_MODE config OPENTHREAD_PLATFORM_BOOTLOADER_MODE bool help Platform bootloader mode support config OPENTHREAD_PLATFORM_NETIF bool "Platform netif support" config OPENTHREAD_PLATFORM_UDP bool "Platform UDP support" choice OPENTHREAD_POWER_SUPPLY_CHOICE prompt "Power supply configuration" default OPENTHREAD_POWER_SUPPLY_EXTERNAL config OPENTHREAD_POWER_SUPPLY_BATTERY bool "OT_POWER_SUPPLY_BATTERY" config OPENTHREAD_POWER_SUPPLY_EXTERNAL bool "OT_POWER_SUPPLY_EXTERNAL" config OPENTHREAD_POWER_SUPPLY_EXTERNAL_STABLE bool "OT_POWER_SUPPLY_EXTERNAL_STABLE" config OPENTHREAD_POWER_SUPPLY_EXTERNAL_UNSTABLE bool "OT_POWER_SUPPLY_EXTERNAL_UNSTABLE" endchoice # OPENTHREAD_POWER_SUPPLY_CHOICE config OPENTHREAD_POWER_SUPPLY string prompt "Power supply configuration" default "BATTERY" if OPENTHREAD_POWER_SUPPLY_BATTERY default "EXTERNAL" if OPENTHREAD_POWER_SUPPLY_EXTERNAL default "EXTERNAL_STABLE" if OPENTHREAD_POWER_SUPPLY_EXTERNAL_STABLE default "EXTERNAL_UNSTABLE" if OPENTHREAD_POWER_SUPPLY_EXTERNAL_UNSTABLE default "" config OPENTHREAD_RADIO_STATS bool "Support for Radio Statistics" config OPENTHREAD_RAW bool "Raw Link support" config OPENTHREAD_REFERENCE_DEVICE bool "Reference Device support" help Enable Thread Certification reference device support in OpenThread stack config OPENTHREAD_SETTINGS_RAM bool "Volatile-only storage of settings" config OPENTHREAD_SLAAC bool "SLAAC support" config OPENTHREAD_SNTP_CLIENT bool "SNTP Client support" config OPENTHREAD_SRP_ADV_PROXY bool "SRP Server Advertising Proxy support" depends on OPENTHREAD_SRP_SERVER depends on OPENTHREAD_BORDER_ROUTING config OPENTHREAD_SRP_CLIENT bool "SRP Client support" select OPENTHREAD_ECDSA config OPENTHREAD_SRP_SERVER bool "SRP Server support" select OPENTHREAD_NETDATA_PUBLISHER select OPENTHREAD_ECDSA config OPENTHREAD_TIME_SYNC bool "The time synchronization service feature [EXPERIMENTAL]" select EXPERIMENTAL config OPENTHREAD_TREL bool "TREL radio link for Thread over Infrastructure feature" config OPENTHREAD_TX_BEACON_PAYLOAD bool "TX beacon payload support" config OPENTHREAD_TX_QUEUE_STATISTICS bool "TX queue statistics support" config OPENTHREAD_UDP_FORWARD bool "UDP forward support" config OPENTHREAD_UPTIME bool "Openthread uptime counter" default y if OPENTHREAD_FTD config OPENTHREAD_VERHOEFF_CHECKSUM bool "Verhoeff checksum" ```
/content/code_sandbox/modules/openthread/Kconfig.features
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,517
```c /* * */ #include <zephyr/kernel.h> #include <openthread/platform/memory.h> #include <stdlib.h> void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } void otPlatFree(void *aPtr) { free(aPtr); } ```
/content/code_sandbox/modules/openthread/platform/memory.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```c /* * */ #include <zephyr/kernel.h> #include <stdio.h> #include <zephyr/net/openthread.h> #include <zephyr/sys/printk.h> #include <zephyr/shell/shell.h> #include <zephyr/shell/shell_uart.h> #include <openthread/cli.h> #include <openthread/instance.h> #include "platform-zephyr.h" #define OT_SHELL_BUFFER_SIZE CONFIG_SHELL_CMD_BUFF_SIZE static char rx_buffer[OT_SHELL_BUFFER_SIZE]; static const struct shell *shell_p; static bool is_shell_initialized; static int ot_console_cb(void *context, const char *format, va_list arg) { ARG_UNUSED(context); if (shell_p == NULL) { return 0; } shell_vfprintf(shell_p, SHELL_NORMAL, format, arg); return 0; } #define SHELL_HELP_OT "OpenThread subcommands\n" \ "Use \"ot help\" to get the list of subcommands" static int ot_cmd(const struct shell *sh, size_t argc, char *argv[]) { char *buf_ptr = rx_buffer; size_t buf_len = OT_SHELL_BUFFER_SIZE; size_t arg_len = 0; int i; if (!is_shell_initialized) { return -ENOEXEC; } for (i = 1; i < argc; i++) { if (arg_len) { buf_len -= arg_len + 1; if (buf_len) { buf_ptr[arg_len] = ' '; } buf_ptr += arg_len + 1; } arg_len = snprintk(buf_ptr, buf_len, "%s", argv[i]); if (arg_len >= buf_len) { shell_fprintf(sh, SHELL_WARNING, "OT shell buffer full\n"); return -ENOEXEC; } } if (i == argc) { buf_len -= arg_len; } shell_p = sh; openthread_api_mutex_lock(openthread_get_default_context()); otCliInputLine(rx_buffer); openthread_api_mutex_unlock(openthread_get_default_context()); return 0; } SHELL_CMD_ARG_REGISTER(ot, NULL, SHELL_HELP_OT, ot_cmd, 2, 255); void platformShellInit(otInstance *aInstance) { if (IS_ENABLED(CONFIG_SHELL_BACKEND_SERIAL)) { shell_p = shell_backend_uart_get_ptr(); } else { shell_p = NULL; } otCliInit(aInstance, ot_console_cb, NULL); is_shell_initialized = true; } ```
/content/code_sandbox/modules/openthread/platform/shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
551
```c /* * */ #include <zephyr/kernel.h> #include <stdarg.h> #include <stdio.h> #include <openthread/platform/logging.h> #include "openthread-core-zephyr-config.h" #define LOG_MODULE_NAME net_openthread #define LOG_LEVEL LOG_LEVEL_DBG #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include "platform-zephyr.h" /* Convert OT log level to zephyr log level. */ static inline int log_translate(otLogLevel aLogLevel) { switch (aLogLevel) { case OT_LOG_LEVEL_NONE: case OT_LOG_LEVEL_CRIT: return LOG_LEVEL_ERR; case OT_LOG_LEVEL_WARN: return LOG_LEVEL_WRN; case OT_LOG_LEVEL_NOTE: case OT_LOG_LEVEL_INFO: return LOG_LEVEL_INF; case OT_LOG_LEVEL_DEBG: return LOG_LEVEL_DBG; default: break; } return -1; } void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...) { ARG_UNUSED(aLogRegion); #if defined(CONFIG_LOG) int level = log_translate(aLogLevel); va_list param_list; if (level < 0) { return; } va_start(param_list, aFormat); log_generic(level, aFormat, param_list); va_end(param_list); #else ARG_UNUSED(aLogLevel); ARG_UNUSED(aFormat); #endif } ```
/content/code_sandbox/modules/openthread/platform/logging.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
293
```objective-c /* * */ /** * @file * This file includes Zephyr compile-time configuration constants * for OpenThread. */ #ifndef OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ #define OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ #include <zephyr/devicetree.h> #include <zephyr/toolchain.h> /** * @def OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT * * The assert is managed by platform defined logic when this flag is set. * */ #ifndef OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT #define OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT 1 #endif /** * @def OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS * * The number of message buffers in the buffer pool. * */ #ifdef CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS #define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS \ CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS #endif /** * @def OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS * * The maximum number of state-changed callback handlers * (set using `otSetStateChangedCallback()`). * */ #ifdef CONFIG_OPENTHREAD_MAX_STATECHANGE_HANDLERS #define OPENTHREAD_CONFIG_MAX_STATECHANGE_HANDLERS \ CONFIG_OPENTHREAD_MAX_STATECHANGE_HANDLERS #endif /** * @def OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES * * The number of EID-to-RLOC cache entries. * */ #ifdef CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES #define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES \ CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_ENTRIES #endif /** * @def CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES * * The maximum number of EID-to-RLOC cache entries that can be used for * "snoop optimization" where an entry is created by inspecting a received message. * */ #ifdef CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES #define OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES \ CONFIG_OPENTHREAD_TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES #endif /** * @def OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL * * Define to prepend the log level to all log messages. * */ #ifdef CONFIG_OPENTHREAD_LOG_PREPEND_LEVEL_ENABLE #define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 1 #endif /** * @def OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE * * Define to 1 to enable software ACK timeout logic. * */ #ifdef CONFIG_OPENTHREAD_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE #define OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE 1 #endif /** * @def OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE * * Define to 1 to enable software retransmission logic. * */ #ifdef CONFIG_OPENTHREAD_MAC_SOFTWARE_RETRANSMIT_ENABLE #define OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE 1 #endif /** * @def OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE * * Define to 1 if you want to enable software CSMA-CA backoff logic. * */ #ifdef CONFIG_OPENTHREAD_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE #define OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE 1 #endif /** * @def OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH * * Define as 1 for a child to inform its previous parent when it attaches to a new parent. * */ #ifdef CONFIG_OPENTHREAD_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH #define OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH 1 #endif /** * @def OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE * * Define as 1 to enable periodic parent search feature. * */ #ifdef CONFIG_OPENTHREAD_PARENT_SEARCH #define OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE 1 /** * @def OPENTHREAD_CONFIG_PARENT_SEARCH_CHECK_INTERVAL * * Specifies the interval in seconds for a child to check the trigger condition * to perform a parent search. * */ #define OPENTHREAD_CONFIG_PARENT_SEARCH_CHECK_INTERVAL \ CONFIG_OPENTHREAD_PARENT_SEARCH_CHECK_INTERVAL /** * @def OPENTHREAD_CONFIG_PARENT_SEARCH_BACKOFF_INTERVAL * * Specifies the backoff interval in seconds for a child to not perform a parent * search after triggering one. * */ #define OPENTHREAD_CONFIG_PARENT_SEARCH_BACKOFF_INTERVAL \ CONFIG_OPENTHREAD_PARENT_SEARCH_BACKOFF_INTERVAL /** * @def OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD * * Specifies the RSS threshold used to trigger a parent search. * */ #define OPENTHREAD_CONFIG_PARENT_SEARCH_RSS_THRESHOLD \ CONFIG_OPENTHREAD_PARENT_SEARCH_RSS_THRESHOLD #endif /** * @def OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE * * Define to 1 to enable software transmission target time logic. * */ #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE #define OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE \ (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) #endif /** * @def OPENTHREAD_CONFIG_MAC_SOFTWARE_RX_TIMING_ENABLE * * Define to 1 to enable software reception target time logic. * */ #ifndef OPENTHREAD_CONFIG_MAC_SOFTWARE_RX_TIMING_ENABLE #define OPENTHREAD_CONFIG_MAC_SOFTWARE_RX_TIMING_ENABLE \ (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) #endif /** * @def OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT * * Define as 1 to support IEEE 802.15.4-2015 Header IE (Information Element) generation and parsing, * it must be set to support following features: * 1. Time synchronization service feature (i.e., OPENTHREAD_CONFIG_TIME_SYNC_ENABLE is set). * 2. Thread 1.2. * * @note If it's enabled, platform must support interrupt context and concurrent access AES. * */ #ifndef OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT #if OPENTHREAD_CONFIG_TIME_SYNC_ENABLE || \ (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) #define OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT 1 #else #define OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT 0 #endif #endif /** * @def OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE * * Define to 1 if you want to enable microsecond backoff timer implemented * in platform. * */ #define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE \ (CONFIG_OPENTHREAD_CSL_RECEIVER && \ (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2)) /* Zephyr does not use OpenThread's heap. mbedTLS will use heap memory allocated * by Zephyr. Here, we use some dummy values to prevent OpenThread warnings. */ /** * @def OPENTHREAD_CONFIG_HEAP_SIZE * * The size of heap buffer when DTLS is enabled. * */ #define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE (4 * sizeof(void *)) /** * @def OPENTHREAD_CONFIG_HEAP_SIZE_NO_DTLS * * The size of heap buffer when DTLS is disabled. * */ #define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE_NO_DTLS (4 * sizeof(void *)) /* Disable software source address matching. */ /** * @def RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM * * The number of short source address table entries. * */ #define RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM 0 /** * @def OPENTHREAD_CONFIG_PLATFORM_INFO * * The platform-specific string to insert into the OpenThread version string. * */ #ifdef CONFIG_OPENTHREAD_CONFIG_PLATFORM_INFO #define OPENTHREAD_CONFIG_PLATFORM_INFO CONFIG_OPENTHREAD_CONFIG_PLATFORM_INFO #endif /* CONFIG_OPENTHREAD_CONFIG_PLATFORM_INFO */ /** * @def OPENTHREAD_CONFIG_MLE_MAX_CHILDREN * * The maximum number of children. * */ #ifdef CONFIG_OPENTHREAD_MAX_CHILDREN #define OPENTHREAD_CONFIG_MLE_MAX_CHILDREN CONFIG_OPENTHREAD_MAX_CHILDREN #endif /* CONFIG_OPENTHREAD_MAX_CHILDREN */ /** * @def OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD * * The maximum number of supported IPv6 address registrations per child. * */ #ifdef CONFIG_OPENTHREAD_MAX_IP_ADDR_PER_CHILD #define OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD \ CONFIG_OPENTHREAD_MAX_IP_ADDR_PER_CHILD #endif /* CONFIG_OPENTHREAD_MAX_IP_ADDR_PER_CHILD */ /** * @def RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM * * The number of extended source address table entries. * */ #define RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM 0 /** * @def OPENTHREAD_CONFIG_CSL_RECEIVE_TIME_AHEAD * * For some reasons, CSL receivers wake up a little later than expected. This * variable specifies how much time that CSL receiver would wake up earlier * than the expected sample window. The time is in unit of microseconds. * */ #ifdef CONFIG_OPENTHREAD_CSL_RECEIVE_TIME_AHEAD #define OPENTHREAD_CONFIG_CSL_RECEIVE_TIME_AHEAD \ CONFIG_OPENTHREAD_CSL_RECEIVE_TIME_AHEAD #endif /* CONFIG_OPENTHREAD_CSL_RECEIVE_TIME_AHEAD */ /** * @def OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AHEAD * * The minimum time (microseconds) that radio has to be in receive mode before the start of the MHR. * */ #ifdef CONFIG_OPENTHREAD_MIN_RECEIVE_ON_AHEAD #define OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AHEAD CONFIG_OPENTHREAD_MIN_RECEIVE_ON_AHEAD #endif /* CONFIG_OPENTHREAD_MIN_RECEIVE_ON_AHEAD */ /** * @def OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AFTER * * The minimum time (microseconds) that radio has to be in receive mode after the start of the MHR . * */ #ifdef CONFIG_OPENTHREAD_MIN_RECEIVE_ON_AFTER #define OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AFTER CONFIG_OPENTHREAD_MIN_RECEIVE_ON_AFTER #endif /* CONFIG_OPENTHREAD_MIN_RECEIVE_ON_AFTER */ /** * @def OPENTHREAD_CONFIG_CSL_TIMEOUT * * The default CSL timeout in seconds. * */ #ifdef CONFIG_OPENTHREAD_CSL_TIMEOUT #define OPENTHREAD_CONFIG_CSL_TIMEOUT CONFIG_OPENTHREAD_CSL_TIMEOUT #endif /* CONFIG_OPENTHREAD_CSL_TIMEOUT */ /** * @def OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_SECURITY_ENABLE * * Set to 1 to enable software transmission security logic. * */ #ifdef CONFIG_OPENTHREAD_MAC_SOFTWARE_TX_SECURITY_ENABLE #define OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_SECURITY_ENABLE \ CONFIG_OPENTHREAD_MAC_SOFTWARE_TX_SECURITY_ENABLE #endif /* CONFIG_OPENTHREAD_MAC_SOFTWARE_TX_SECURITY_ENABLE */ /** * @def OPENTHREAD_CONFIG_CLI_MAX_LINE_LENGTH * * The maximum size of the CLI line in bytes. * */ #ifdef CONFIG_OPENTHREAD_CLI_MAX_LINE_LENGTH #define OPENTHREAD_CONFIG_CLI_MAX_LINE_LENGTH CONFIG_OPENTHREAD_CLI_MAX_LINE_LENGTH #endif /* CONFIG_OPENTHREAD_CLI_MAX_LINE_LENGTH */ /** * @def OPENTHREAD_CONFIG_CLI_PROMPT_ENABLE * * Enable CLI prompt. * * When enabled, the CLI will print prompt on the output after processing a command. * Otherwise, no prompt is added to the output. * */ #define OPENTHREAD_CONFIG_CLI_PROMPT_ENABLE 0 /** * @def OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS * * The maximum number of supported IPv6 addresses allows to be externally added. * */ #ifdef CONFIG_OPENTHREAD_IP6_MAX_EXT_UCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS CONFIG_OPENTHREAD_IP6_MAX_EXT_UCAST_ADDRS #endif /* CONFIG_OPENTHREAD_IP6_MAX_EXT_UCAST_ADDRS */ /** * @def OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS * * The maximum number of supported IPv6 multicast addresses allows to be externally added. * */ #ifdef CONFIG_OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS #define OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS CONFIG_OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS #endif /* CONFIG_OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS */ /** * @def OPENTHREAD_CONFIG_CLI_TCP_ENABLE * * Enable TCP in the CLI tool. * */ #define OPENTHREAD_CONFIG_CLI_TCP_ENABLE IS_ENABLED(CONFIG_OPENTHREAD_CLI_TCP_ENABLE) /** * @def OPENTHREAD_CONFIG_CRYPTO_LIB * * Selects crypto backend library for OpenThread. * */ #ifdef CONFIG_OPENTHREAD_CRYPTO_PSA #define OPENTHREAD_CONFIG_CRYPTO_LIB OPENTHREAD_CONFIG_CRYPTO_LIB_PSA #endif /** * @def OPENTHREAD_CONFIG_PLATFORM_MAC_KEYS_EXPORTABLE_ENABLE * * Set to 1 if you want to make MAC keys exportable. * */ #ifdef CONFIG_OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE #define OPENTHREAD_CONFIG_PLATFORM_MAC_KEYS_EXPORTABLE_ENABLE 1 #endif /** * @def OPENTHREAD_CONFIG_MESSAGE_BUFFER_SIZE * * The size of a message buffer in bytes. * */ #ifdef CONFIG_OPENTHREAD_MESSAGE_BUFFER_SIZE #define OPENTHREAD_CONFIG_MESSAGE_BUFFER_SIZE CONFIG_OPENTHREAD_MESSAGE_BUFFER_SIZE #endif /** * @def OPENTHREAD_CONFIG_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS * * Enable to stay awake between fragments while transmitting a large packet, * and to stay awake after receiving a packet with frame pending set to true. * */ #ifdef CONFIG_OPENTHREAD_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS #define OPENTHREAD_CONFIG_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS \ CONFIG_OPENTHREAD_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS #endif /** * @def OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE * * In Zephyr, power calibration is handled by Radio Driver, so it can't be handled on OT level. * */ #ifndef OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE #define OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE 0 #endif /** * @def OPENTHREAD_CONFIG_RADIO_STATS * * Enable support for Radio Statistics. * */ #ifdef CONFIG_OPENTHREAD_RADIO_STATS #define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE CONFIG_OPENTHREAD_RADIO_STATS #endif #endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */ ```
/content/code_sandbox/modules/openthread/platform/openthread-core-zephyr-config.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,139
```c /* * */ #include <zephyr/kernel.h> #include <stdio.h> #include <stdlib.h> #include <openthread/platform/spi-slave.h> #include "platform-zephyr.h" /* Spi-slave stubs */ otError otPlatSpiSlaveEnable( otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback, otPlatSpiSlaveTransactionProcessCallback aProcessCallback, void *aContext) { ARG_UNUSED(aCompleteCallback); ARG_UNUSED(aProcessCallback); ARG_UNUSED(aContext); return OT_ERROR_NOT_IMPLEMENTED; } void otPlatSpiSlaveDisable(void) { /* Intentionally empty */ } otError otPlatSpiSlavePrepareTransaction( uint8_t *anOutputBuf, uint16_t anOutputBufLen, uint8_t *anInputBuf, uint16_t anInputBufLen, bool aRequestTransactionFlag ) { ARG_UNUSED(anOutputBuf); ARG_UNUSED(anOutputBufLen); ARG_UNUSED(anInputBuf); ARG_UNUSED(anInputBufLen); ARG_UNUSED(aRequestTransactionFlag); return OT_ERROR_NOT_IMPLEMENTED; } ```
/content/code_sandbox/modules/openthread/platform/spi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
232
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/settings/settings.h> #include <zephyr/random/random.h> #include <openthread/platform/settings.h> LOG_MODULE_REGISTER(net_otPlat_settings, CONFIG_OPENTHREAD_L2_LOG_LEVEL); #define OT_SETTINGS_ROOT_KEY "ot" #define OT_SETTINGS_MAX_PATH_LEN 32 struct ot_setting_delete_ctx { /* Setting subtree to delete. */ const char *subtree; /* Current entry index, used to iterate over multiple setting * instances. */ int index; /* Target index to delete. -1 to delete entire subtree. */ int target_index; /* Operation result. */ int status; /* Indicates if delete subtree root. */ bool delete_subtree_root; }; static int ot_setting_delete_cb(const char *key, size_t len, settings_read_cb read_cb, void *cb_arg, void *param) { int ret; char path[OT_SETTINGS_MAX_PATH_LEN]; struct ot_setting_delete_ctx *ctx = (struct ot_setting_delete_ctx *)param; ARG_UNUSED(len); ARG_UNUSED(read_cb); ARG_UNUSED(cb_arg); if ((ctx->target_index != -1) && (ctx->target_index != ctx->index)) { ctx->index++; return 0; } if (key == NULL && ctx->delete_subtree_root == false) { return 0; } ret = snprintk(path, sizeof(path), "%s%s%s", ctx->subtree, key ? "/" : "", key ? key : ""); __ASSERT(ret < sizeof(path), "Setting path buffer too small."); LOG_DBG("Removing: %s", path); ret = settings_delete(path); if (ret != 0) { LOG_ERR("Failed to remove setting %s, ret %d", path, ret); __ASSERT_NO_MSG(false); } ctx->status = 0; if (ctx->target_index == ctx->index) { /* Break the loop on index match, otherwise it was -1 * (delete all). */ return 1; } return 0; } static int ot_setting_delete_subtree(int key, int index, bool delete_subtree_root) { int ret; char subtree[OT_SETTINGS_MAX_PATH_LEN]; struct ot_setting_delete_ctx delete_ctx = { .subtree = subtree, .status = -ENOENT, .target_index = index, .delete_subtree_root = delete_subtree_root, }; if (key == -1) { ret = snprintk(subtree, sizeof(subtree), "%s", OT_SETTINGS_ROOT_KEY); } else { ret = snprintk(subtree, sizeof(subtree), "%s/%x", OT_SETTINGS_ROOT_KEY, key); } __ASSERT(ret < sizeof(subtree), "Setting path buffer too small."); ret = settings_load_subtree_direct(subtree, ot_setting_delete_cb, &delete_ctx); if (ret != 0) { LOG_ERR("Failed to delete OT subtree %s, index %d, ret %d", subtree, index, ret); __ASSERT_NO_MSG(false); } return delete_ctx.status; } static int ot_setting_exists_cb(const char *key, size_t len, settings_read_cb read_cb, void *cb_arg, void *param) { bool *exists = (bool *)param; ARG_UNUSED(len); ARG_UNUSED(read_cb); ARG_UNUSED(cb_arg); ARG_UNUSED(key); *exists = true; return 1; } static bool ot_setting_exists(const char *path) { bool exists = false; (void)settings_load_subtree_direct(path, ot_setting_exists_cb, &exists); return exists; } struct ot_setting_read_ctx { /* Buffer for the setting. */ uint8_t *value; /* Buffer length on input, setting length read on output. */ uint16_t *length; /* Current entry index, used to iterate over multiple setting * instances. */ int index; /* Target instance to read. */ int target_index; /* Operation result. */ int status; }; static int ot_setting_read_cb(const char *key, size_t len, settings_read_cb read_cb, void *cb_arg, void *param) { int ret; struct ot_setting_read_ctx *ctx = (struct ot_setting_read_ctx *)param; ARG_UNUSED(len); ARG_UNUSED(read_cb); ARG_UNUSED(cb_arg); if (ctx->target_index != ctx->index) { ctx->index++; return 0; } /* Found setting, break the loop. */ if ((ctx->value == NULL) || (ctx->length == NULL)) { goto out; } if (*(ctx->length) < len) { len = *(ctx->length); } ret = read_cb(cb_arg, ctx->value, len); if (ret <= 0) { LOG_ERR("Failed to read the setting, ret: %d", ret); ctx->status = -EIO; return 1; } out: if (ctx->length != NULL) { *(ctx->length) = len; } ctx->status = 0; return 1; } /* OpenThread APIs */ void otPlatSettingsInit(otInstance *aInstance, const uint16_t *aSensitiveKeys, uint16_t aSensitiveKeysLength) { int ret; ARG_UNUSED(aInstance); ARG_UNUSED(aSensitiveKeys); ARG_UNUSED(aSensitiveKeysLength); ret = settings_subsys_init(); if (ret != 0) { LOG_ERR("settings_subsys_init failed (ret %d)", ret); } } otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) { int ret; char path[OT_SETTINGS_MAX_PATH_LEN]; struct ot_setting_read_ctx read_ctx = { .value = aValue, .length = (uint16_t *)aValueLength, .status = -ENOENT, .target_index = aIndex }; ARG_UNUSED(aInstance); LOG_DBG("%s Entry aKey %u aIndex %d", __func__, aKey, aIndex); ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); __ASSERT(ret < sizeof(path), "Setting path buffer too small."); ret = settings_load_subtree_direct(path, ot_setting_read_cb, &read_ctx); if (ret != 0) { LOG_ERR("Failed to load OT setting aKey %d, aIndex %d, ret %d", aKey, aIndex, ret); } if (read_ctx.status != 0) { LOG_DBG("aKey %u aIndex %d not found", aKey, aIndex); return OT_ERROR_NOT_FOUND; } return OT_ERROR_NONE; } otError otPlatSettingsSet(otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength) { int ret; char path[OT_SETTINGS_MAX_PATH_LEN]; ARG_UNUSED(aInstance); LOG_DBG("%s Entry aKey %u", __func__, aKey); (void)ot_setting_delete_subtree(aKey, -1, false); ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); __ASSERT(ret < sizeof(path), "Setting path buffer too small."); ret = settings_save_one(path, aValue, aValueLength); if (ret != 0) { LOG_ERR("Failed to store setting %d, ret %d", aKey, ret); return OT_ERROR_NO_BUFS; } return OT_ERROR_NONE; } otError otPlatSettingsAdd(otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength) { int ret; char path[OT_SETTINGS_MAX_PATH_LEN]; ARG_UNUSED(aInstance); LOG_DBG("%s Entry aKey %u", __func__, aKey); do { ret = snprintk(path, sizeof(path), "%s/%x/%08x", OT_SETTINGS_ROOT_KEY, aKey, sys_rand32_get()); __ASSERT(ret < sizeof(path), "Setting path buffer too small."); } while (ot_setting_exists(path)); ret = settings_save_one(path, aValue, aValueLength); if (ret != 0) { LOG_ERR("Failed to store setting %d, ret %d", aKey, ret); return OT_ERROR_NO_BUFS; } return OT_ERROR_NONE; } otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex) { int ret; ARG_UNUSED(aInstance); LOG_DBG("%s Entry aKey %u aIndex %d", __func__, aKey, aIndex); ret = ot_setting_delete_subtree(aKey, aIndex, true); if (ret != 0) { LOG_DBG("Entry not found aKey %u aIndex %d", aKey, aIndex); return OT_ERROR_NOT_FOUND; } return OT_ERROR_NONE; } void otPlatSettingsWipe(otInstance *aInstance) { ARG_UNUSED(aInstance); (void)ot_setting_delete_subtree(-1, -1, true); } void otPlatSettingsDeinit(otInstance *aInstance) { ARG_UNUSED(aInstance); } ```
/content/code_sandbox/modules/openthread/platform/settings.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,032
```c /* * */ #include <openthread/platform/crypto.h> #include <psa/crypto.h> #include <zephyr/sys/__assert.h> #if !defined(CONFIG_BUILD_WITH_TFM) && defined(CONFIG_OPENTHREAD_CRYPTO_PSA) #include <zephyr/settings/settings.h> #endif #if defined(CONFIG_OPENTHREAD_ECDSA) #include <string.h> #include <mbedtls/asn1.h> #endif static otError psaToOtError(psa_status_t aStatus) { switch (aStatus) { case PSA_SUCCESS: return OT_ERROR_NONE; case PSA_ERROR_INVALID_ARGUMENT: return OT_ERROR_INVALID_ARGS; case PSA_ERROR_BUFFER_TOO_SMALL: return OT_ERROR_NO_BUFS; default: return OT_ERROR_FAILED; } } static psa_key_type_t toPsaKeyType(otCryptoKeyType aType) { switch (aType) { case OT_CRYPTO_KEY_TYPE_RAW: return PSA_KEY_TYPE_RAW_DATA; case OT_CRYPTO_KEY_TYPE_AES: return PSA_KEY_TYPE_AES; case OT_CRYPTO_KEY_TYPE_HMAC: return PSA_KEY_TYPE_HMAC; case OT_CRYPTO_KEY_TYPE_ECDSA: return PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1); default: return PSA_KEY_TYPE_NONE; } } static psa_algorithm_t toPsaAlgorithm(otCryptoKeyAlgorithm aAlgorithm) { switch (aAlgorithm) { case OT_CRYPTO_KEY_ALG_AES_ECB: return PSA_ALG_ECB_NO_PADDING; case OT_CRYPTO_KEY_ALG_HMAC_SHA_256: return PSA_ALG_HMAC(PSA_ALG_SHA_256); case OT_CRYPTO_KEY_ALG_ECDSA: return PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256); default: /* * There is currently no constant like PSA_ALG_NONE, but 0 is used * to indicate an unknown algorithm. */ return (psa_algorithm_t)0; } } static psa_key_usage_t toPsaKeyUsage(int aUsage) { psa_key_usage_t usage = 0; if (aUsage & OT_CRYPTO_KEY_USAGE_EXPORT) { usage |= PSA_KEY_USAGE_EXPORT; } if (aUsage & OT_CRYPTO_KEY_USAGE_ENCRYPT) { usage |= PSA_KEY_USAGE_ENCRYPT; } if (aUsage & OT_CRYPTO_KEY_USAGE_DECRYPT) { usage |= PSA_KEY_USAGE_DECRYPT; } if (aUsage & OT_CRYPTO_KEY_USAGE_SIGN_HASH) { usage |= PSA_KEY_USAGE_SIGN_HASH; } if (aUsage & OT_CRYPTO_KEY_USAGE_VERIFY_HASH) { usage |= PSA_KEY_USAGE_VERIFY_HASH; } return usage; } static bool checkKeyUsage(int aUsage) { /* Check if only supported flags have been passed */ int supported_flags = OT_CRYPTO_KEY_USAGE_EXPORT | OT_CRYPTO_KEY_USAGE_ENCRYPT | OT_CRYPTO_KEY_USAGE_DECRYPT | OT_CRYPTO_KEY_USAGE_SIGN_HASH | OT_CRYPTO_KEY_USAGE_VERIFY_HASH; return (aUsage & ~supported_flags) == 0; } static bool checkContext(otCryptoContext *aContext, size_t aMinSize) { /* Verify that the passed context is initialized and points to a big enough buffer */ return aContext != NULL && aContext->mContext != NULL && aContext->mContextSize >= aMinSize; } void otPlatCryptoInit(void) { psa_crypto_init(); #if !defined(CONFIG_BUILD_WITH_TFM) && defined(CONFIG_OPENTHREAD_CRYPTO_PSA) /* * In OpenThread, Settings are initialized after KeyManager by default. If device uses * PSA with emulated TFM, Settings have to be initialized at the end of otPlatCryptoInit(), * to be available before storing Network Key. */ __ASSERT_EVAL((void)settings_subsys_init(), int err = settings_subsys_init(), !err, "Failed to initialize settings"); #endif } otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, otCryptoKeyType aKeyType, otCryptoKeyAlgorithm aKeyAlgorithm, int aKeyUsage, otCryptoKeyStorage aKeyPersistence, const uint8_t *aKey, size_t aKeyLen) { #if defined(CONFIG_OPENTHREAD_ECDSA) int version; size_t len; unsigned char *p = (unsigned char *)aKey; unsigned char *end; #endif psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_status_t status = 0; if (aKeyRef == NULL || aKey == NULL || !checkKeyUsage(aKeyUsage)) { return OT_ERROR_INVALID_ARGS; } #if defined(CONFIG_OPENTHREAD_ECDSA) /* Check if key is ECDSA pair and extract private key from it since PSA expects it. */ if (aKeyType == OT_CRYPTO_KEY_TYPE_ECDSA) { end = p + aKeyLen; status = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE); if (status != 0) { return OT_ERROR_FAILED; } end = p + len; status = mbedtls_asn1_get_int(&p, end, &version); if (status != 0) { return OT_ERROR_FAILED; } status = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_OCTET_STRING); if (status != 0 || len != 32) { return OT_ERROR_FAILED; } aKey = p; aKeyLen = len; } #endif psa_set_key_type(&attributes, toPsaKeyType(aKeyType)); psa_set_key_algorithm(&attributes, toPsaAlgorithm(aKeyAlgorithm)); psa_set_key_usage_flags(&attributes, toPsaKeyUsage(aKeyUsage)); switch (aKeyPersistence) { case OT_CRYPTO_KEY_STORAGE_PERSISTENT: psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_PERSISTENT); psa_set_key_id(&attributes, *aKeyRef); break; case OT_CRYPTO_KEY_STORAGE_VOLATILE: psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_VOLATILE); break; } status = psa_import_key(&attributes, aKey, aKeyLen, aKeyRef); psa_reset_key_attributes(&attributes); return psaToOtError(status); } otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *aKeyLen) { if (aBuffer == NULL) { return OT_ERROR_INVALID_ARGS; } return psaToOtError(psa_export_key(aKeyRef, aBuffer, aBufferLen, aKeyLen)); } otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef) { return psaToOtError(psa_destroy_key(aKeyRef)); } bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_status_t status; status = psa_get_key_attributes(aKeyRef, &attributes); psa_reset_key_attributes(&attributes); return status == PSA_SUCCESS; } otError otPlatCryptoHmacSha256Init(otCryptoContext *aContext) { psa_mac_operation_t *operation; if (!checkContext(aContext, sizeof(psa_mac_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; *operation = psa_mac_operation_init(); return OT_ERROR_NONE; } otError otPlatCryptoHmacSha256Deinit(otCryptoContext *aContext) { psa_mac_operation_t *operation; if (!checkContext(aContext, sizeof(psa_mac_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_mac_abort(operation)); } otError otPlatCryptoHmacSha256Start(otCryptoContext *aContext, const otCryptoKey *aKey) { psa_mac_operation_t *operation; psa_status_t status; if (aKey == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; status = psa_mac_sign_setup(operation, aKey->mKeyRef, PSA_ALG_HMAC(PSA_ALG_SHA_256)); return psaToOtError(status); } otError otPlatCryptoHmacSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength) { psa_mac_operation_t *operation; if (aBuf == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_mac_update(operation, (const uint8_t *)aBuf, aBufLength)); } otError otPlatCryptoHmacSha256Finish(otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength) { psa_mac_operation_t *operation; size_t mac_length; if (aBuf == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_mac_sign_finish(operation, aBuf, aBufLength, &mac_length)); } otError otPlatCryptoAesInit(otCryptoContext *aContext) { psa_key_id_t *key_ref; if (!checkContext(aContext, sizeof(psa_key_id_t))) { return OT_ERROR_INVALID_ARGS; } key_ref = aContext->mContext; *key_ref = (psa_key_id_t)0; /* In TF-M 1.5.0 this can be replaced with PSA_KEY_ID_NULL */ return OT_ERROR_NONE; } otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey) { psa_key_id_t *key_ref; if (aKey == NULL || !checkContext(aContext, sizeof(psa_key_id_t))) { return OT_ERROR_INVALID_ARGS; } key_ref = aContext->mContext; *key_ref = aKey->mKeyRef; return OT_ERROR_NONE; } otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput) { const size_t block_size = PSA_BLOCK_CIPHER_BLOCK_LENGTH(PSA_KEY_TYPE_AES); psa_status_t status = PSA_SUCCESS; psa_key_id_t *key_ref; size_t cipher_length; if (aInput == NULL || aOutput == NULL || !checkContext(aContext, sizeof(psa_key_id_t))) { return OT_ERROR_INVALID_ARGS; } key_ref = aContext->mContext; status = psa_cipher_encrypt(*key_ref, PSA_ALG_ECB_NO_PADDING, aInput, block_size, aOutput, block_size, &cipher_length); return psaToOtError(status); } otError otPlatCryptoAesFree(otCryptoContext *aContext) { return OT_ERROR_NONE; } otError otPlatCryptoSha256Init(otCryptoContext *aContext) { psa_hash_operation_t *operation; if (!checkContext(aContext, sizeof(psa_hash_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; *operation = psa_hash_operation_init(); return OT_ERROR_NONE; } otError otPlatCryptoSha256Deinit(otCryptoContext *aContext) { psa_hash_operation_t *operation; if (!checkContext(aContext, sizeof(psa_hash_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_hash_abort(operation)); } otError otPlatCryptoSha256Start(otCryptoContext *aContext) { psa_hash_operation_t *operation; if (!checkContext(aContext, sizeof(psa_hash_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_hash_setup(operation, PSA_ALG_SHA_256)); } otError otPlatCryptoSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength) { psa_hash_operation_t *operation; if (aBuf == NULL || !checkContext(aContext, sizeof(psa_hash_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_hash_update(operation, (const uint8_t *)aBuf, aBufLength)); } otError otPlatCryptoSha256Finish(otCryptoContext *aContext, uint8_t *aHash, uint16_t aHashSize) { psa_hash_operation_t *operation; size_t hash_size; if (aHash == NULL || !checkContext(aContext, sizeof(psa_hash_operation_t))) { return OT_ERROR_INVALID_ARGS; } operation = aContext->mContext; return psaToOtError(psa_hash_finish(operation, aHash, aHashSize, &hash_size)); } void otPlatCryptoRandomInit(void) { psa_crypto_init(); } void otPlatCryptoRandomDeinit(void) { } otError otPlatCryptoRandomGet(uint8_t *aBuffer, uint16_t aSize) { return psaToOtError(psa_generate_random(aBuffer, aSize)); } #if defined(CONFIG_OPENTHREAD_ECDSA) otError otPlatCryptoEcdsaGenerateKey(otPlatCryptoEcdsaKeyPair *aKeyPair) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_key_id_t key_id = 0; psa_status_t status; size_t exported_length; psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_EXPORT); psa_set_key_algorithm(&attributes, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256)); psa_set_key_type(&attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); psa_set_key_bits(&attributes, 256); status = psa_generate_key(&attributes, &key_id); if (status != PSA_SUCCESS) { goto out; } status = psa_export_key(key_id, aKeyPair->mDerBytes, OT_CRYPTO_ECDSA_MAX_DER_SIZE, &exported_length); if (status != PSA_SUCCESS) { goto out; } aKeyPair->mDerLength = exported_length; out: psa_reset_key_attributes(&attributes); psa_destroy_key(key_id); return psaToOtError(status); } otError otPlatCryptoEcdsaSign(const otPlatCryptoEcdsaKeyPair *aKeyPair, const otPlatCryptoSha256Hash *aHash, otPlatCryptoEcdsaSignature *aSignature) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_key_id_t key_id; psa_status_t status; size_t signature_length; psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_SIGN_HASH); psa_set_key_algorithm(&attributes, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256)); psa_set_key_type(&attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); psa_set_key_bits(&attributes, 256); status = psa_import_key(&attributes, aKeyPair->mDerBytes, aKeyPair->mDerLength, &key_id); if (status != PSA_SUCCESS) { goto out; } status = psa_sign_hash(key_id, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, OT_CRYPTO_SHA256_HASH_SIZE, aSignature->m8, OT_CRYPTO_ECDSA_SIGNATURE_SIZE, &signature_length); if (status != PSA_SUCCESS) { goto out; } out: psa_reset_key_attributes(&attributes); psa_destroy_key(key_id); return psaToOtError(status); } otError otPlatCryptoEcdsaVerify(const otPlatCryptoEcdsaPublicKey *aPublicKey, const otPlatCryptoSha256Hash *aHash, const otPlatCryptoEcdsaSignature *aSignature) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_key_id_t key_id; psa_status_t status; uint8_t buffer[1 + OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE]; psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_VERIFY_HASH); psa_set_key_algorithm(&attributes, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256)); psa_set_key_type(&attributes, PSA_KEY_TYPE_ECC_PUBLIC_KEY(PSA_ECC_FAMILY_SECP_R1)); psa_set_key_bits(&attributes, 256); /* * `psa_import_key` expects a key format as specified by SEC1 &sect;2.3.3 for the * uncompressed representation of the ECPoint. */ buffer[0] = 0x04; memcpy(buffer + 1, aPublicKey->m8, OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE); status = psa_import_key(&attributes, buffer, sizeof(buffer), &key_id); if (status != PSA_SUCCESS) { goto out; } status = psa_verify_hash(key_id, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, OT_CRYPTO_SHA256_HASH_SIZE, aSignature->m8, OT_CRYPTO_ECDSA_SIGNATURE_SIZE); if (status != PSA_SUCCESS) { goto out; } out: psa_reset_key_attributes(&attributes); psa_destroy_key(key_id); return psaToOtError(status); } otError otPlatCryptoEcdsaSignUsingKeyRef(otCryptoKeyRef aKeyRef, const otPlatCryptoSha256Hash *aHash, otPlatCryptoEcdsaSignature *aSignature) { psa_status_t status; size_t signature_length; status = psa_sign_hash(aKeyRef, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, OT_CRYPTO_SHA256_HASH_SIZE, aSignature->m8, OT_CRYPTO_ECDSA_SIGNATURE_SIZE, &signature_length); if (status != PSA_SUCCESS) { goto out; } __ASSERT_NO_MSG(signature_length == OT_CRYPTO_ECDSA_SIGNATURE_SIZE); out: return psaToOtError(status); } otError otPlatCryptoEcdsaVerifyUsingKeyRef(otCryptoKeyRef aKeyRef, const otPlatCryptoSha256Hash *aHash, const otPlatCryptoEcdsaSignature *aSignature) { psa_status_t status; status = psa_verify_hash(aKeyRef, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, OT_CRYPTO_SHA256_HASH_SIZE, aSignature->m8, OT_CRYPTO_ECDSA_SIGNATURE_SIZE); if (status != PSA_SUCCESS) { goto out; } out: return psaToOtError(status); } otError otPlatCryptoEcdsaExportPublicKey(otCryptoKeyRef aKeyRef, otPlatCryptoEcdsaPublicKey *aPublicKey) { psa_status_t status; size_t exported_length; uint8_t buffer[1 + OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE]; status = psa_export_public_key(aKeyRef, buffer, sizeof(buffer), &exported_length); if (status != PSA_SUCCESS) { goto out; } __ASSERT_NO_MSG(exported_length == sizeof(buffer)); memcpy(aPublicKey->m8, buffer + 1, OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE); out: return psaToOtError(status); } otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_status_t status; psa_key_id_t key_id = (psa_key_id_t)aKeyRef; psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_VERIFY_HASH | PSA_KEY_USAGE_SIGN_HASH); psa_set_key_algorithm(&attributes, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256)); psa_set_key_type(&attributes, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_PERSISTENT); psa_set_key_id(&attributes, key_id); psa_set_key_bits(&attributes, 256); status = psa_generate_key(&attributes, &key_id); if (status != PSA_SUCCESS) { goto out; } out: psa_reset_key_attributes(&attributes); return psaToOtError(status); } otError otPlatCryptoPbkdf2GenerateKey(const uint8_t *aPassword, uint16_t aPasswordLen, const uint8_t *aSalt, uint16_t aSaltLen, uint32_t aIterationCounter, uint16_t aKeyLen, uint8_t *aKey) { psa_status_t status = PSA_SUCCESS; psa_key_id_t key_id = PSA_KEY_ID_NULL; psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_algorithm_t algorithm = PSA_ALG_PBKDF2_AES_CMAC_PRF_128; psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT; psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_DERIVE); psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_VOLATILE); psa_set_key_algorithm(&attributes, algorithm); psa_set_key_type(&attributes, PSA_KEY_TYPE_PASSWORD); psa_set_key_bits(&attributes, PSA_BYTES_TO_BITS(aPasswordLen)); status = psa_import_key(&attributes, aPassword, aPasswordLen, &key_id); if (status != PSA_SUCCESS) { goto out; } status = psa_key_derivation_setup(&operation, algorithm); if (status != PSA_SUCCESS) { goto out; } status = psa_key_derivation_input_integer(&operation, PSA_KEY_DERIVATION_INPUT_COST, aIterationCounter); if (status != PSA_SUCCESS) { goto out; } status = psa_key_derivation_input_bytes(&operation, PSA_KEY_DERIVATION_INPUT_SALT, aSalt, aSaltLen); if (status != PSA_SUCCESS) { goto out; } status = psa_key_derivation_input_key(&operation, PSA_KEY_DERIVATION_INPUT_PASSWORD, key_id); if (status != PSA_SUCCESS) { goto out; } status = psa_key_derivation_output_bytes(&operation, aKey, aKeyLen); if (status != PSA_SUCCESS) { goto out; } out: psa_reset_key_attributes(&attributes); psa_key_derivation_abort(&operation); psa_destroy_key(key_id); __ASSERT_NO_MSG(status == PSA_SUCCESS); return psaToOtError(status); } #endif /* #if CONFIG_OPENTHREAD_ECDSA */ ```
/content/code_sandbox/modules/openthread/platform/crypto_psa.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,984
```c /* * */ #include <stddef.h> #include <string.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/types.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/uuid.h> #include <zephyr/bluetooth/gatt.h> /* Zephyr OpenThread integration Library */ #include <zephyr/net/openthread.h> /* OpenThread BLE driver API */ #include <openthread/error.h> #include <openthread/platform/ble.h> #include <openthread/tcat.h> /* Zephyr Logging */ #define LOG_MODULE_NAME net_openthread_tcat #define LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL LOG_MODULE_REGISTER(LOG_MODULE_NAME); /* BLE connection constants as defined in thread specification. */ #define TOBLE_SERVICE_UUID 0xfffb #define RX_CHARACTERISTIC_UUID \ BT_UUID_128_ENCODE(0x6bd10d8b, 0x85a7, 0x4e5a, 0xba2d, 0xc83558a5f220) #define TX_CHARACTERISTIC_UUID \ BT_UUID_128_ENCODE(0x7fddf61f, 0x280a, 0x4773, 0xb448, 0xba1b8fe0dd69) #define BT_UUID_TCAT_SERVICE BT_UUID_DECLARE_16(TOBLE_SERVICE_UUID) #define BT_UUID_TCAT_SERVICE_RX BT_UUID_DECLARE_128(RX_CHARACTERISTIC_UUID) #define BT_UUID_TCAT_SERVICE_TX BT_UUID_DECLARE_128(TX_CHARACTERISTIC_UUID) #define PLAT_BLE_THREAD_DEALY 500 #define PLAT_BLE_MSG_DATA_MAX CONFIG_BT_L2CAP_TX_MTU /* must match the maximum MTU size used */ #define PLAT_BLE_MSG_CONNECT (PLAT_BLE_MSG_DATA_MAX + 1U) #define PLAT_BLE_MSG_DISCONNECT (PLAT_BLE_MSG_CONNECT + 1U) /* Zephyr Kernel Objects */ static void ot_plat_ble_thread(void *, void *, void *); static uint8_t ot_plat_ble_msg_buf[PLAT_BLE_MSG_DATA_MAX]; static K_SEM_DEFINE(ot_plat_ble_init_semaphore, 0, 1); static K_SEM_DEFINE(ot_plat_ble_event_semaphore, 0, K_SEM_MAX_LIMIT); RING_BUF_DECLARE(ot_plat_ble_ring_buf, CONFIG_OPENTHREAD_BLE_TCAT_RING_BUF_SIZE); static K_THREAD_DEFINE(ot_plat_ble_tid, CONFIG_OPENTHREAD_BLE_TCAT_THREAD_STACK_SIZE, ot_plat_ble_thread, NULL, NULL, NULL, 5, 0, PLAT_BLE_THREAD_DEALY); /* OpenThread Objects */ static otInstance *ble_openthread_instance; /* BLE service Objects */ /* forward declaration for callback functions */ static ssize_t on_receive(struct bt_conn *conn, const struct bt_gatt_attr *attr, const void *buf, uint16_t len, uint16_t offset, uint8_t flags); static void on_cccd_changed(const struct bt_gatt_attr *attr, uint16_t value); /* Service Declaration and Registration */ BT_GATT_SERVICE_DEFINE(my_service, BT_GATT_PRIMARY_SERVICE(BT_UUID_TCAT_SERVICE), BT_GATT_CHARACTERISTIC(BT_UUID_TCAT_SERVICE_RX, BT_GATT_CHRC_WRITE | BT_GATT_CHRC_WRITE_WITHOUT_RESP, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE, NULL, on_receive, NULL), BT_GATT_CHARACTERISTIC(BT_UUID_TCAT_SERVICE_TX, BT_GATT_CHRC_NOTIFY, BT_GATT_PERM_READ, NULL, NULL, NULL), BT_GATT_CCC(on_cccd_changed, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE),); /* Zephyr BLE Objects */ /* forward declaration for callback functions */ static void connected(struct bt_conn *conn, uint8_t err); static void disconnected(struct bt_conn *conn, uint8_t reason); static bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param); static void le_param_updated(struct bt_conn *conn, uint16_t interval, uint16_t latency, uint16_t timeout); static struct bt_conn *ot_plat_ble_connection; static struct bt_conn_cb conn_callbacks = {.connected = connected, .disconnected = disconnected, .le_param_req = le_param_req, .le_param_updated = le_param_updated}; static uint8_t service_data[OT_TCAT_ADVERTISEMENT_MAX_LEN] = {0}; static const uint8_t service_data_size = ARRAY_SIZE(service_data); static struct bt_data ad[] = { BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)), BT_DATA(BT_DATA_SVC_DATA16, service_data, service_data_size), }; static struct bt_data sd[] = { BT_DATA_BYTES(BT_DATA_UUID16_ALL, BT_UUID_16_ENCODE(TOBLE_SERVICE_UUID)), BT_DATA(BT_DATA_SVC_DATA16, service_data, service_data_size), }; /* Zephyr BLE Message Queue and Thread */ static bool ot_plat_ble_queue_msg(const uint8_t *aData, uint16_t aLen, int8_t aRssi) { otError error = OT_ERROR_NONE; uint16_t len = 0; if (aLen <= PLAT_BLE_MSG_DATA_MAX && aData == NULL) { return OT_ERROR_INVALID_ARGS; } k_sched_lock(); len = sizeof(aLen) + sizeof(aRssi) + ((aLen <= PLAT_BLE_MSG_DATA_MAX) ? aLen : 0); if (ring_buf_space_get(&ot_plat_ble_ring_buf) >= len) { ring_buf_put(&ot_plat_ble_ring_buf, (uint8_t *)&aLen, sizeof(aLen)); ring_buf_put(&ot_plat_ble_ring_buf, &aRssi, sizeof(aRssi)); if (aLen <= PLAT_BLE_MSG_DATA_MAX) { ring_buf_put(&ot_plat_ble_ring_buf, aData, aLen); } k_sem_give(&ot_plat_ble_event_semaphore); } else { error = OT_ERROR_NO_BUFS; } k_sched_unlock(); return error; } static void ot_plat_ble_thread(void *unused1, void *unused2, void *unused3) { ARG_UNUSED(unused1); ARG_UNUSED(unused2); ARG_UNUSED(unused3); uint16_t len; int8_t rssi; otBleRadioPacket my_packet; LOG_INF("%s started", __func__); while (1) { k_sem_take(&ot_plat_ble_event_semaphore, K_FOREVER); ring_buf_get(&ot_plat_ble_ring_buf, (uint8_t *)&len, sizeof(len)); ring_buf_get(&ot_plat_ble_ring_buf, &rssi, sizeof(rssi)); if (len <= PLAT_BLE_MSG_DATA_MAX) { ring_buf_get(&ot_plat_ble_ring_buf, ot_plat_ble_msg_buf, len); } openthread_api_mutex_lock(openthread_get_default_context()); if (len <= PLAT_BLE_MSG_DATA_MAX) { /* The packet parameter in otPlatBleGattServerOnWriteRequest is not const. * Re-write all members. */ my_packet.mValue = ot_plat_ble_msg_buf; my_packet.mPower = rssi; my_packet.mLength = len; otPlatBleGattServerOnWriteRequest(ble_openthread_instance, 0, &my_packet); } else if (len == PLAT_BLE_MSG_CONNECT) { otPlatBleGapOnConnected(ble_openthread_instance, 0); } else if (len == PLAT_BLE_MSG_DISCONNECT) { otPlatBleGapOnDisconnected(ble_openthread_instance, 0); } openthread_api_mutex_unlock(openthread_get_default_context()); } } /* Zephyr BLE service callbacks */ /* This function is called whenever the RX Characteristic has been written to by a Client */ static ssize_t on_receive(struct bt_conn *conn, const struct bt_gatt_attr *attr, const void *buf, uint16_t len, uint16_t offset, uint8_t flags) { LOG_DBG("Received data, handle %" PRIu16 ", len %" PRIu16, attr->handle, len); otError error = ot_plat_ble_queue_msg(buf, len, 0); if (error != OT_ERROR_NONE) { LOG_WRN("Error queuing message: %s", otThreadErrorToString(error)); } return len; } /* This function is called whenever a Notification has been sent by the TX Characteristic */ static void on_sent(struct bt_conn *conn, void *user_data) { ARG_UNUSED(conn); ARG_UNUSED(user_data); LOG_DBG("Data sent"); } /* This function is called whenever the CCCD register has been changed by the client */ void on_cccd_changed(const struct bt_gatt_attr *attr, uint16_t value) { uint16_t mtu; otError error = OT_ERROR_NONE; ARG_UNUSED(attr); switch (value) { case BT_GATT_CCC_NOTIFY: error = ot_plat_ble_queue_msg(NULL, PLAT_BLE_MSG_CONNECT, 0); if (error != OT_ERROR_NONE) { LOG_WRN("Error queuing message: %s", otThreadErrorToString(error)); } error = otPlatBleGattMtuGet(ble_openthread_instance, &mtu); if (error != OT_ERROR_NONE) { LOG_WRN("Error retrieving mtu: %s", otThreadErrorToString(error)); } LOG_INF("CCCD update (mtu=%" PRIu16 ")!", mtu); break; default: break; } } otError otPlatBleGattServerIndicate(otInstance *aInstance, uint16_t aHandle, const otBleRadioPacket *aPacket) { ARG_UNUSED(aInstance); /* TO DO change to indications. */ const struct bt_gatt_attr *attr = &my_service.attrs[3]; struct bt_gatt_notify_params params = {.uuid = BT_UUID_TCAT_SERVICE_TX, .attr = attr, .data = aPacket->mValue, .len = aPacket->mLength, .func = on_sent}; LOG_DBG("Send data, handle %d, len %d", attr->handle, aPacket->mLength); /* Only one connection supported */ if (aHandle != 0) { return OT_ERROR_INVALID_ARGS; } if (ot_plat_ble_connection == NULL) { return OT_ERROR_INVALID_STATE; } /* Check whether notifications are enabled or not */ if (bt_gatt_is_subscribed(ot_plat_ble_connection, attr, BT_GATT_CCC_NOTIFY)) { if (bt_gatt_notify_cb(ot_plat_ble_connection, &params)) { LOG_WRN("Error, unable to send notification"); return OT_ERROR_INVALID_ARGS; } } else { LOG_WRN("Warning, notification not enabled on the selected attribute"); return OT_ERROR_INVALID_STATE; } return OT_ERROR_NONE; } otError otPlatBleGattMtuGet(otInstance *aInstance, uint16_t *aMtu) { ARG_UNUSED(aInstance); if (ot_plat_ble_connection == NULL) { return OT_ERROR_FAILED; } if (aMtu != NULL) { *aMtu = bt_gatt_get_mtu(ot_plat_ble_connection); } return OT_ERROR_NONE; } otError otPlatBleGapDisconnect(otInstance *aInstance) { ARG_UNUSED(aInstance); if (ot_plat_ble_connection == NULL) { return OT_ERROR_INVALID_STATE; } if (bt_conn_disconnect(ot_plat_ble_connection, BT_HCI_ERR_REMOTE_USER_TERM_CONN)) { return OT_ERROR_INVALID_STATE; } return OT_ERROR_NONE; } /* Zephyr BLE callbacks */ static void connected(struct bt_conn *conn, uint8_t err) { struct bt_conn_info info; char addr[BT_ADDR_LE_STR_LEN]; uint16_t mtu; otError error = OT_ERROR_NONE; ot_plat_ble_connection = bt_conn_ref(conn); if (err) { LOG_WRN("Connection failed err %u %s", err, bt_hci_err_to_str(err)); return; } else if (bt_conn_get_info(conn, &info)) { LOG_WRN("Could not parse connection info"); } else { bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); error = otPlatBleGattMtuGet(ble_openthread_instance, &mtu); if (error != OT_ERROR_NONE) { LOG_WRN("Error retrieving mtu: %s", otThreadErrorToString(error)); } LOG_INF("Connection established (mtu=%" PRIu16 ")!", mtu); } } static void disconnected(struct bt_conn *conn, uint8_t reason) { otError error = OT_ERROR_NONE; LOG_INF("Disconnected, reason 0x%02x %s", reason, bt_hci_err_to_str(reason)); if (ot_plat_ble_connection) { bt_conn_unref(ot_plat_ble_connection); ot_plat_ble_connection = NULL; error = ot_plat_ble_queue_msg(NULL, PLAT_BLE_MSG_DISCONNECT, 0); if (error != OT_ERROR_NONE) { LOG_WRN("Error queuing message: %s", otThreadErrorToString(error)); } } } static bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param) { return true; } static void le_param_updated(struct bt_conn *conn, uint16_t interval, uint16_t latency, uint16_t timeout) { struct bt_conn_info info; char addr[BT_ADDR_LE_STR_LEN]; uint16_t mtu; otError error = OT_ERROR_NONE; if (bt_conn_get_info(conn, &info)) { LOG_INF("Could not parse connection info"); } else { bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); error = otPlatBleGattMtuGet(ble_openthread_instance, &mtu); if (error != OT_ERROR_NONE) { LOG_WRN("Error retrieving mtu: %s", otThreadErrorToString(error)); } LOG_INF("Connection parameters updated (mtu=%" PRIu16 ")!", mtu); } } static void bt_ready(int err) { if (err) { LOG_WRN("BLE init failed with error code %d", err); return; } bt_conn_cb_register(&conn_callbacks); k_sem_give(&ot_plat_ble_init_semaphore); /* BLE stack up an running */ } void otPlatBleGetLinkCapabilities(otInstance *aInstance, otBleLinkCapabilities *aBleLinkCapabilities) { ARG_UNUSED(aInstance); aBleLinkCapabilities->mGattNotifications = 1; aBleLinkCapabilities->mL2CapDirect = 0; aBleLinkCapabilities->mRsv = 0; } bool otPlatBleSupportsMultiRadio(otInstance *aInstance) { OT_UNUSED_VARIABLE(aInstance); return false; } otError otPlatBleGetAdvertisementBuffer(otInstance *aInstance, uint8_t **aAdvertisementBuffer) { ARG_UNUSED(aInstance); *aAdvertisementBuffer = service_data; return OT_ERROR_NONE; } otError otPlatBleGapAdvSetData(otInstance *aInstance, uint8_t *aAdvertisementData, uint16_t aAdvertisementLen) { ARG_UNUSED(aInstance); if (aAdvertisementLen > OT_TCAT_ADVERTISEMENT_MAX_LEN || aAdvertisementData == NULL) { LOG_ERR("Invalid TCAT Advertisement parameters advlen: %d", aAdvertisementLen); return OT_ERROR_INVALID_ARGS; } ad[1].data_len = (uint8_t)aAdvertisementLen; sd[1].data_len = (uint8_t)aAdvertisementLen; return OT_ERROR_NONE; } otError otPlatBleGapAdvStart(otInstance *aInstance, uint16_t aInterval) { ARG_UNUSED(aInstance); ARG_UNUSED(aInterval); int err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); if (err != 0 && err != -EALREADY) { LOG_WRN("Advertising failed to start (err %d)", err); return OT_ERROR_INVALID_STATE; } LOG_INF("Advertising successfully started"); return OT_ERROR_NONE; } otError otPlatBleGapAdvStop(otInstance *aInstance) { ARG_UNUSED(aInstance); int err = bt_le_adv_stop(); if (err != 0 && err != -EALREADY) { LOG_WRN("Advertisement failed to stop (err %d)", err); return OT_ERROR_FAILED; } return OT_ERROR_NONE; } /* Zephyr BLE initialization */ otError otPlatBleEnable(otInstance *aInstance) { int err; ble_openthread_instance = aInstance; err = bt_enable(bt_ready); if (err != 0 && err != -EALREADY) { LOG_WRN("BLE enable failed with error code %d", err); return OT_ERROR_FAILED; } else if (err == -EALREADY) { err = k_sem_take(&ot_plat_ble_init_semaphore, K_MSEC(500)); return OT_ERROR_NONE; } err = k_sem_take(&ot_plat_ble_init_semaphore, K_MSEC(500)); if (!err) { LOG_INF("Bluetooth initialized"); } else { LOG_INF("BLE initialization did not complete in time"); return OT_ERROR_FAILED; } return OT_ERROR_NONE; } otError otPlatBleDisable(otInstance *aInstance) { ARG_UNUSED(aInstance); /* This function intentionally does nothing since disabling advertisement disables BLE * stack. */ return OT_ERROR_NONE; } ```
/content/code_sandbox/modules/openthread/platform/ble.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,925
```objective-c /* * */ /** * @file * @brief * This file includes the Zephyr platform-specific initializers. */ #ifndef PLATFORM_ZEPHYR_H_ #define PLATFORM_ZEPHYR_H_ #include <stdint.h> #include <openthread/instance.h> #include <zephyr/net/net_pkt.h> /** * This function initializes the alarm service used by OpenThread. * */ void platformAlarmInit(void); /** * This function performs alarm driver processing. * * @param[in] aInstance The OpenThread instance structure. * */ void platformAlarmProcess(otInstance *aInstance); /** * This function initializes the radio service used by OpenThread. * */ void platformRadioInit(void); /** * This function performs radio driver processing. * * @param[in] aInstance The OpenThread instance structure. * */ void platformRadioProcess(otInstance *aInstance); /** * This function performs UART driver processing. * * @param[in] aInstance The OpenThread instance structure. * */ void platformUartProcess(otInstance *aInstance); /** * Outer component calls this method to notify UART driver that it should * switch to panic mode and work in synchronous way. */ void platformUartPanic(void); /** * Get current channel from radio driver. * * @param[in] aInstance The OpenThread instance structure. * * @return Current channel radio driver operates on. * */ uint16_t platformRadioChannelGet(otInstance *aInstance); /** * Start/stop continuous carrier wave transmission. */ otError platformRadioTransmitCarrier(otInstance *aInstance, bool aEnable); /** * This function initializes the random number service used by OpenThread. * */ void platformRandomInit(void); /** * Initialize platform Shell driver. */ void platformShellInit(otInstance *aInstance); /** * Notify OpenThread task about new rx message. */ int notify_new_rx_frame(struct net_pkt *pkt); /** * Notify OpenThread task about new tx message. */ int notify_new_tx_frame(struct net_pkt *pkt); #endif /* PLATFORM_POSIX_H_ */ ```
/content/code_sandbox/modules/openthread/platform/platform-zephyr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
438
```c /* * */ /** * @file * @brief * This file includes the platform-specific initializers. */ #include <zephyr/kernel.h> #include <openthread/instance.h> #include <openthread/tasklet.h> #include "platform-zephyr.h" void otSysInit(int argc, char *argv[]) { ARG_UNUSED(argc); ARG_UNUSED(argv); platformRadioInit(); platformAlarmInit(); } void otSysProcessDrivers(otInstance *aInstance) { platformRadioProcess(aInstance); platformAlarmProcess(aInstance); if (IS_ENABLED(CONFIG_OPENTHREAD_COPROCESSOR)) { platformUartProcess(aInstance); } } ```
/content/code_sandbox/modules/openthread/platform/platform.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
147
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <openthread/platform/diag.h> #include "platform-zephyr.h" /** * Diagnostics mode variables. * */ static bool sDiagMode; static void *sDiagCallbackContext; static otPlatDiagOutputCallback sDiagOutputCallback; static void diag_output(const char *aFormat, ...) { va_list args; va_start(args, aFormat); if (sDiagOutputCallback != NULL) { sDiagOutputCallback(aFormat, args, sDiagCallbackContext); } va_end(args); } void otPlatDiagSetOutputCallback(otInstance *aInstance, otPlatDiagOutputCallback aCallback, void *aContext) { OT_UNUSED_VARIABLE(aInstance); sDiagOutputCallback = aCallback; sDiagCallbackContext = aContext; } otError otPlatDiagProcess(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[]) { ARG_UNUSED(aInstance); ARG_UNUSED(aArgsLength); /* Add more platform specific diagnostics features here. */ diag_output("diag feature '%s' is not supported\r\n", aArgs[0]); return OT_ERROR_NOT_IMPLEMENTED; } void otPlatDiagModeSet(bool aMode) { sDiagMode = aMode; if (!sDiagMode) { otPlatRadioSleep(NULL); } } bool otPlatDiagModeGet(void) { return sDiagMode; } void otPlatDiagChannelSet(uint8_t aChannel) { ARG_UNUSED(aChannel); } void otPlatDiagTxPowerSet(int8_t aTxPower) { ARG_UNUSED(aTxPower); } void otPlatDiagRadioReceived(otInstance *aInstance, otRadioFrame *aFrame, otError aError) { ARG_UNUSED(aInstance); ARG_UNUSED(aFrame); ARG_UNUSED(aError); } otError otPlatDiagRadioTransmitCarrier(otInstance *aInstance, bool aEnable) { if (!otPlatDiagModeGet()) { return OT_ERROR_INVALID_STATE; } return platformRadioTransmitCarrier(aInstance, aEnable); } void otPlatDiagAlarmCallback(otInstance *aInstance) { ARG_UNUSED(aInstance); } /* * To enable gpio diag commands, in Devicetree create `openthread` node in `/options/` path * with `compatible = "openthread,config"` property and `diag-gpios` property, * which should contain array of GPIO pin's configuration properties containing controller phandles, * pin numbers and pin flags. e.g: * * options { * openthread { * compatible = "openthread,config"; * diag-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, * <&gpio1 0 GPIO_ACTIVE_LOW>; * }; * }; * * To enable reading current gpio pin mode, define * `CONFIG_GPIO_GET_DIRECTION` in prj.conf. * * Note: `<gpio>` in `diag gpio` commands is an index of diag-gpios array. For example shown above, * `ot diag gpio mode 0` will return current mode of pin nmb 0 controlled by `gpio0` controller. */ #if DT_HAS_COMPAT_STATUS_OKAY(openthread_config) && \ DT_NODE_HAS_PROP(DT_COMPAT_GET_ANY_STATUS_OKAY(openthread_config), diag_gpios) static const struct gpio_dt_spec gpio_spec[] = { DT_FOREACH_PROP_ELEM_SEP(DT_COMPAT_GET_ANY_STATUS_OKAY(openthread_config), diag_gpios, GPIO_DT_SPEC_GET_BY_IDX, (,))}; static otError gpio_get_spec(uint32_t gpio_idx, const struct gpio_dt_spec **spec) { if (gpio_idx >= ARRAY_SIZE(gpio_spec)) { return OT_ERROR_INVALID_ARGS; } *spec = &gpio_spec[gpio_idx]; if (!otPlatDiagModeGet()) { return OT_ERROR_INVALID_STATE; } if (!gpio_is_ready_dt(*spec)) { return OT_ERROR_INVALID_ARGS; } const struct gpio_driver_config *const cfg = (const struct gpio_driver_config *)((*spec)->port->config); if ((cfg->port_pin_mask & (gpio_port_pins_t)BIT((*spec)->pin)) == 0U) { return OT_ERROR_INVALID_ARGS; } return OT_ERROR_NONE; } otError otPlatDiagGpioSet(uint32_t aGpio, bool aValue) { const struct gpio_dt_spec *spec; otError error; error = gpio_get_spec(aGpio, &spec); if (error != OT_ERROR_NONE) { return error; } #if defined(CONFIG_GPIO_GET_DIRECTION) if (gpio_pin_is_output_dt(spec) != 1) { return OT_ERROR_INVALID_STATE; } #endif if (gpio_pin_set_dt(spec, (int)aValue) != 0) { return OT_ERROR_FAILED; } return OT_ERROR_NONE; } otError otPlatDiagGpioGet(uint32_t aGpio, bool *aValue) { const struct gpio_dt_spec *spec; otError error; int rv; error = gpio_get_spec(aGpio, &spec); if (error != OT_ERROR_NONE) { return error; } if (aValue == NULL) { return OT_ERROR_INVALID_ARGS; } #if defined(CONFIG_GPIO_GET_DIRECTION) if (gpio_pin_is_input_dt(spec) != 1) { return OT_ERROR_INVALID_STATE; } #endif rv = gpio_pin_get_dt(spec); if (rv < 0) { return OT_ERROR_FAILED; } *aValue = (bool)rv; return OT_ERROR_NONE; } otError otPlatDiagGpioSetMode(uint32_t aGpio, otGpioMode aMode) { const struct gpio_dt_spec *spec; otError error; int rv = 0; error = gpio_get_spec(aGpio, &spec); if (error != OT_ERROR_NONE) { return error; } switch (aMode) { case OT_GPIO_MODE_INPUT: rv = gpio_pin_configure_dt(spec, GPIO_INPUT); break; case OT_GPIO_MODE_OUTPUT: rv = gpio_pin_configure_dt(spec, GPIO_OUTPUT); break; default: return OT_ERROR_INVALID_ARGS; } if (rv != 0) { return OT_ERROR_FAILED; } return OT_ERROR_NONE; } #if defined(CONFIG_GPIO_GET_DIRECTION) otError otPlatDiagGpioGetMode(uint32_t aGpio, otGpioMode *aMode) { const struct gpio_dt_spec *spec; otError error; gpio_port_pins_t pins_in, pins_out; error = gpio_get_spec(aGpio, &spec); if (error != OT_ERROR_NONE) { return error; } if (aMode == NULL) { return OT_ERROR_INVALID_ARGS; } if (gpio_port_get_direction(spec->port, BIT(spec->pin), &pins_in, &pins_out) < 0) { return OT_ERROR_FAILED; } if (((gpio_port_pins_t)BIT(spec->pin) & pins_in) != 0U) { *aMode = OT_GPIO_MODE_INPUT; } else if (((gpio_port_pins_t)BIT(spec->pin) & pins_out) != 0U) { *aMode = OT_GPIO_MODE_OUTPUT; } else { return OT_ERROR_FAILED; } return OT_ERROR_NONE; } #endif /* CONFIG_GPIO_GET_DIRECTION */ #endif /* DT_HAS_COMPAT_STATUS_OKAY(openthread_config) && \ * DT_NODE_HAS_PROP(DT_COMPAT_GET_ANY_STATUS_OKAY(openthread_config), diag_gpios) */ ```
/content/code_sandbox/modules/openthread/platform/diag.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,659
```c /* * */ #define LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL #define LOG_MODULE_NAME net_otPlat_uart #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <zephyr/kernel.h> #include <stdio.h> #include <stdlib.h> #include <zephyr/drivers/uart.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/sys/atomic.h> #include <zephyr/usb/usb_device.h> #include <openthread/ncp.h> #include <openthread-system.h> #include <utils/uart.h> #include "platform-zephyr.h" struct openthread_uart { struct ring_buf *rx_ringbuf; const struct device *dev; atomic_t tx_busy; atomic_t tx_finished; }; #define OT_UART_DEFINE(_name, _ringbuf_size) \ RING_BUF_DECLARE(_name##_rx_ringbuf, _ringbuf_size); \ static struct openthread_uart _name = { \ .rx_ringbuf = &_name##_rx_ringbuf, \ } OT_UART_DEFINE(ot_uart, CONFIG_OPENTHREAD_COPROCESSOR_UART_RING_BUFFER_SIZE); #define RX_FIFO_SIZE 128 static bool is_panic_mode; static const uint8_t *write_buffer; static uint16_t write_length; static void uart_rx_handle(const struct device *dev) { uint8_t *data; uint32_t len; uint32_t rd_len; bool new_data = false; do { len = ring_buf_put_claim( ot_uart.rx_ringbuf, &data, ot_uart.rx_ringbuf->size); if (len > 0) { rd_len = uart_fifo_read(dev, data, len); if (rd_len > 0) { new_data = true; } int err = ring_buf_put_finish( ot_uart.rx_ringbuf, rd_len); (void)err; __ASSERT_NO_MSG(err == 0); } else { uint8_t dummy; /* No space in the ring buffer - consume byte. */ LOG_WRN("RX ring buffer full."); rd_len = uart_fifo_read(dev, &dummy, 1); } } while (rd_len && (rd_len == len)); if (new_data) { otSysEventSignalPending(); } } static void uart_tx_handle(const struct device *dev) { uint32_t len; if (write_length) { len = uart_fifo_fill(dev, write_buffer, write_length); write_buffer += len; write_length -= len; } else { uart_irq_tx_disable(dev); ot_uart.tx_busy = 0; atomic_set(&(ot_uart.tx_finished), 1); otSysEventSignalPending(); } } static void uart_callback(const struct device *dev, void *user_data) { ARG_UNUSED(user_data); while (uart_irq_update(dev) && uart_irq_is_pending(dev)) { if (uart_irq_rx_ready(dev)) { uart_rx_handle(dev); } if (uart_irq_tx_ready(dev) && atomic_get(&ot_uart.tx_busy) == 1) { uart_tx_handle(dev); } } } void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength) { otNcpHdlcReceive(aBuf, aBufLength); } void otPlatUartSendDone(void) { otNcpHdlcSendDone(); } void platformUartProcess(otInstance *aInstance) { uint32_t len = 0; const uint8_t *data; /* Process UART RX */ while ((len = ring_buf_get_claim( ot_uart.rx_ringbuf, (uint8_t **)&data, ot_uart.rx_ringbuf->size)) > 0) { int err; otPlatUartReceived(data, len); err = ring_buf_get_finish( ot_uart.rx_ringbuf, len); (void)err; __ASSERT_NO_MSG(err == 0); } /* Process UART TX */ if (ot_uart.tx_finished) { LOG_DBG("UART TX done"); otPlatUartSendDone(); ot_uart.tx_finished = 0; } } otError otPlatUartEnable(void) { ot_uart.dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_ot_uart)); if (!device_is_ready(ot_uart.dev)) { LOG_ERR("UART device not ready"); return OT_ERROR_FAILED; } uart_irq_callback_user_data_set(ot_uart.dev, uart_callback, (void *)&ot_uart); if (DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_ot_uart), zephyr_cdc_acm_uart)) { int ret; ret = usb_enable(NULL); if (ret != 0 && ret != -EALREADY) { LOG_ERR("Failed to enable USB"); return OT_ERROR_FAILED; } /* Data Carrier Detect Modem - mark connection as established */ (void)uart_line_ctrl_set(ot_uart.dev, UART_LINE_CTRL_DCD, 1); /* Data Set Ready - the NCP SoC is ready to communicate */ (void)uart_line_ctrl_set(ot_uart.dev, UART_LINE_CTRL_DSR, 1); } uart_irq_rx_enable(ot_uart.dev); return OT_ERROR_NONE; } otError otPlatUartDisable(void) { if (DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_ot_uart), zephyr_cdc_acm_uart)) { int ret = usb_disable(); if (ret) { LOG_WRN("Failed to disable USB (%d)", ret); } } uart_irq_tx_disable(ot_uart.dev); uart_irq_rx_disable(ot_uart.dev); return OT_ERROR_NONE; } otError otPlatUartSend(const uint8_t *aBuf, uint16_t aBufLength) { if (aBuf == NULL) { return OT_ERROR_FAILED; } if (atomic_cas(&(ot_uart.tx_busy), 0, 1)) { write_buffer = aBuf; write_length = aBufLength; if (is_panic_mode) { /* In panic mode all data have to be send immediately * without using interrupts */ otPlatUartFlush(); } else { uart_irq_tx_enable(ot_uart.dev); } return OT_ERROR_NONE; } return OT_ERROR_BUSY; } otError otPlatUartFlush(void) { otError result = OT_ERROR_NONE; if (write_length) { for (size_t i = 0; i < write_length; i++) { uart_poll_out(ot_uart.dev, *(write_buffer+i)); } } ot_uart.tx_busy = 0; atomic_set(&(ot_uart.tx_finished), 1); otSysEventSignalPending(); return result; } void platformUartPanic(void) { is_panic_mode = true; /* In panic mode data are send without using interrupts. * Reception in this mode is not supported. */ uart_irq_tx_disable(ot_uart.dev); uart_irq_rx_disable(ot_uart.dev); } ```
/content/code_sandbox/modules/openthread/platform/uart.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,566
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/reboot.h> #include <openthread/instance.h> #include <openthread/platform/misc.h> #if defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_RETENTION) #include <zephyr/retention/bootmode.h> #elif defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_GPIO) BUILD_ASSERT(DT_HAS_COMPAT_STATUS_OKAY(openthread_config), "`openthread,config` compatible node not found"); BUILD_ASSERT(DT_NODE_HAS_PROP(DT_COMPAT_GET_ANY_STATUS_OKAY(openthread_config), bootloader_gpios), "`bootloader-gpios` property missing from `openthread,config` compatible node"); #include <zephyr/drivers/gpio.h> static const struct gpio_dt_spec bootloader_gpio = GPIO_DT_SPEC_GET(DT_COMPAT_GET_ANY_STATUS_OKAY(openthread_config), bootloader_gpios); #endif #include "platform-zephyr.h" void otPlatReset(otInstance *aInstance) { ARG_UNUSED(aInstance); /* This function does nothing on the Posix platform. */ sys_reboot(SYS_REBOOT_WARM); } #if defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE) otError otPlatResetToBootloader(otInstance *aInstance) { OT_UNUSED_VARIABLE(aInstance); #if defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_RETENTION) if (bootmode_set(BOOT_MODE_TYPE_BOOTLOADER)) { return OT_ERROR_NOT_CAPABLE; } sys_reboot(SYS_REBOOT_WARM); #elif defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_GPIO) /* * To enable resetting to bootloader by triggering gpio pin, * select `CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE_GPIO=y`, * and in Devicetree create `openthread` node in `/options/` path with * `compatible = "openthread,config"` property and `bootloader-gpios` property, * which should represent GPIO pin's configuration, * containing controller phandle, pin number and pin flags. e.g: * * options { * openthread { * compatible = "openthread,config"; * bootloader-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; * }; * }; * * Note: in below implementation, chosen GPIO pin is configured as output * and initialized to active state (logical value 1). * Configuring pin flags in `bootloader-gpios` allows to choose * if pin should be active in high or in low state. */ if (!gpio_is_ready_dt(&bootloader_gpio)) { return OT_ERROR_NOT_CAPABLE; } gpio_pin_configure_dt(&bootloader_gpio, GPIO_OUTPUT_ACTIVE); #endif /* * Return OT_ERROR_NOT_CAPABLE if resetting has been unsuccessful (invalid configuration or * triggering reset had no effect) */ return OT_ERROR_NOT_CAPABLE; } #endif /* defined(CONFIG_OPENTHREAD_PLATFORM_BOOTLOADER_MODE) */ otPlatResetReason otPlatGetResetReason(otInstance *aInstance) { ARG_UNUSED(aInstance); return OT_PLAT_RESET_REASON_POWER_ON; } void otPlatWakeHost(void) { /* TODO */ } void otPlatAssertFail(const char *aFilename, int aLineNumber) { /* * The code below is used instead of __ASSERT(false) to print the actual assert * location instead of __FILE__:__LINE__, which would point to this function. */ __ASSERT_PRINT("OpenThread ASSERT @ %s:%d\n", aFilename, aLineNumber); __ASSERT_POST_ACTION(); } ```
/content/code_sandbox/modules/openthread/platform/misc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
785
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/random/random.h> #include <zephyr/logging/log.h> #include <openthread/platform/entropy.h> LOG_MODULE_REGISTER(net_otPlat_entropy, CONFIG_OPENTHREAD_L2_LOG_LEVEL); #if !defined(CONFIG_CSPRNG_ENABLED) #error OpenThread requires an entropy source for a TRNG #endif otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) { int err; if ((aOutput == NULL) || (aOutputLength == 0)) { return OT_ERROR_INVALID_ARGS; } err = sys_csrand_get(aOutput, aOutputLength); if (err != 0) { LOG_ERR("Failed to obtain entropy, err %d", err); return OT_ERROR_FAILED; } return OT_ERROR_NONE; } ```
/content/code_sandbox/modules/openthread/platform/entropy.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
184
```c /* * */ #define LOG_MODULE_NAME net_openthread_alarm #define LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <zephyr/kernel.h> #include <string.h> #include <inttypes.h> #include <openthread/platform/alarm-milli.h> #include <openthread/platform/alarm-micro.h> #include <openthread/platform/diag.h> #include <openthread-system.h> #include <stdio.h> #include "platform-zephyr.h" #include "openthread-core-zephyr-config.h" static bool timer_ms_fired, timer_us_fired; static int32_t time_offset_us; static int32_t time_offset_ms; static void ot_timer_ms_fired(struct k_timer *timer) { ARG_UNUSED(timer); timer_ms_fired = true; otSysEventSignalPending(); } static void ot_timer_us_fired(struct k_timer *timer) { ARG_UNUSED(timer); timer_us_fired = true; otSysEventSignalPending(); } K_TIMER_DEFINE(ot_ms_timer, ot_timer_ms_fired, NULL); K_TIMER_DEFINE(ot_us_timer, ot_timer_us_fired, NULL); void platformAlarmInit(void) { #if defined(CONFIG_NET_PKT_TXTIME) time_offset_us = (int32_t)((int64_t)otPlatAlarmMicroGetNow() - (uint32_t)otPlatRadioGetNow(NULL)); time_offset_ms = time_offset_us / 1000; #endif } void platformAlarmProcess(otInstance *aInstance) { #if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE if (timer_us_fired) { timer_us_fired = false; otPlatAlarmMicroFired(aInstance); } #endif if (timer_ms_fired) { timer_ms_fired = false; #if defined(CONFIG_OPENTHREAD_DIAG) if (otPlatDiagModeGet()) { otPlatDiagAlarmFired(aInstance); } else #endif { otPlatAlarmMilliFired(aInstance); } } } uint32_t otPlatAlarmMilliGetNow(void) { return k_uptime_get_32() - time_offset_ms; } void otPlatAlarmMilliStartAt(otInstance *aInstance, uint32_t aT0, uint32_t aDt) { ARG_UNUSED(aInstance); int32_t delta = (int32_t)(aT0 + aDt - otPlatAlarmMilliGetNow()); if (delta > 0) { k_timer_start(&ot_ms_timer, K_MSEC(delta), K_NO_WAIT); } else { ot_timer_ms_fired(NULL); } } void otPlatAlarmMilliStop(otInstance *aInstance) { ARG_UNUSED(aInstance); k_timer_stop(&ot_ms_timer); } void otPlatAlarmMicroStartAt(otInstance *aInstance, uint32_t aT0, uint32_t aDt) { ARG_UNUSED(aInstance); int32_t delta = (int32_t)(aT0 + aDt - otPlatAlarmMicroGetNow()); if (delta > 0) { k_timer_start(&ot_us_timer, K_USEC(delta), K_NO_WAIT); } else { ot_timer_us_fired(NULL); } } void otPlatAlarmMicroStop(otInstance *aInstance) { ARG_UNUSED(aInstance); k_timer_stop(&ot_us_timer); } uint32_t otPlatAlarmMicroGetNow(void) { return (uint32_t)(k_ticks_to_us_floor64(k_uptime_ticks()) - time_offset_us); } uint16_t otPlatTimeGetXtalAccuracy(void) { return otPlatRadioGetCslAccuracy(NULL); } ```
/content/code_sandbox/modules/openthread/platform/alarm.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
812
```objective-c /* * */ /** * @file * @brief CMSIS interface file * * This header contains the interface to the ARM CMSIS Core headers. */ #ifndef ZEPHYR_MODULES_CMSIS_CMSIS_M_H_ #define ZEPHYR_MODULES_CMSIS_CMSIS_M_H_ #if defined(CONFIG_CMSIS_M_CHECK_DEVICE_DEFINES) && CONFIG_CMSIS_M_CHECK_DEVICE_DEFINES == 1U #define __CHECK_DEVICE_DEFINES 1U #endif #include <zephyr/arch/arm/cortex_m/nvic.h> #include <soc.h> #if __NVIC_PRIO_BITS != NUM_IRQ_PRIO_BITS #error "NUM_IRQ_PRIO_BITS and __NVIC_PRIO_BITS are not set to the same value" #endif #if __MPU_PRESENT != CONFIG_CPU_HAS_ARM_MPU #error "__MPU_PRESENT and CONFIG_CPU_HAS_ARM_MPU are not set to the same value" #endif #if __FPU_PRESENT != CONFIG_CPU_HAS_FPU #error "__FPU_PRESENT and CONFIG_CPU_HAS_FPU are not set to the same value" #endif /* VTOR is only optional on armv6-m and armv8-m baseline. __VTOR_PRESENT is often * left undefined on platform where it is not optional. */ #if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) && \ (__VTOR_PRESENT != CONFIG_CPU_CORTEX_M_HAS_VTOR) #error "__VTOR_PRESENT and CONFIG_CPU_CORTEX_M_HAS_VTOR are not set to the same value." #endif /* Some platforms sdk incorrectly define __DSP_PRESENT for Cortex-M4 & Cortex-M7 * DSP extension. __ARM_FEATURE_DSP is set by the compiler for these. So ignore * __DSP_PRESENT discrepancy when __ARM_FEATURE_DSP is defined. */ #if !defined(__ARM_FEATURE_DSP) && (__DSP_PRESENT != CONFIG_ARMV8_M_DSP) #error "__DSP_PRESENT and CONFIG_ARMV8_M_DSP are not set to the same value" #endif #if defined(__ICACHE_PRESENT) && (__ICACHE_PRESENT != CONFIG_CPU_HAS_ICACHE) #error "__ICACHE_PRESENT and CONFIG_CPU_HAS_ICACHE are not set to the same value" #endif #if defined(__DCACHE_PRESENT) && (__DCACHE_PRESENT != CONFIG_CPU_HAS_DCACHE) #error "__DCACHE_PRESENT and CONFIG_CPU_HAS_DCACHE are not set to the same value" #endif #if defined(__MVE_PRESENT) && (__MVE_PRESENT != CONFIG_ARMV8_1_M_MVEI) #error "__MVE_PRESENT and CONFIG_ARMV8_1_M_MVEI are not set to the same value" #endif #if defined(__SAUREGION_PRESENT) && (__SAUREGION_PRESENT != CONFIG_CPU_HAS_ARM_SAU) #error "__SAUREGION_PRESENT and CONFIG_CPU_HAS_ARM_SAU are not set to the same value" #endif #endif /* ZEPHYR_MODULES_CMSIS_CMSIS_M_H_ */ ```
/content/code_sandbox/modules/cmsis/cmsis_core_m.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
607
```objective-c /* * */ /** * @file * @brief CMSIS extension * * This header provides CMSIS-style register access functions and macros that * are not currently available in the CMSIS. * * NOTE: cmsis.h includes this file; do not manually include this file. */ #ifndef ZEPHYR_MODULES_CMSIS_CMSIS_A_R_EXT_H_ #define ZEPHYR_MODULES_CMSIS_CMSIS_A_R_EXT_H_ /* FSR Register Definitions */ #if defined(CONFIG_AARCH32_ARMV8_R) #define FSR_FS_TRANSLATION_FAULT (4) #define FSR_FS_PERMISSION_FAULT (12) #define FSR_FS_SYNC_EXTERNAL_ABORT (16) #define FSR_FS_ASYNC_EXTERNAL_ABORT (17) #define FSR_FS_SYNC_PARITY_ERROR (24) #define FSR_FS_ASYNC_PARITY_ERROR (25) #define FSR_FS_ALIGNMENT_FAULT (33) #define FSR_FS_DEBUG_EVENT (34) #define FSR_FS_UNSUPPORTED_EXCLUSIVE_ACCESS_FAULT (53) #else #define FSR_FS_BACKGROUND_FAULT (0) #define FSR_FS_ALIGNMENT_FAULT (1) #define FSR_FS_DEBUG_EVENT (2) #define FSR_FS_SYNC_EXTERNAL_ABORT (8) #define FSR_FS_PERMISSION_FAULT (13) #define FSR_FS_ASYNC_EXTERNAL_ABORT (22) #define FSR_FS_ASYNC_PARITY_ERROR (24) #define FSR_FS_SYNC_PARITY_ERROR (25) #endif /* DBGDSCR Register Definitions */ #define DBGDSCR_MOE_Pos (2U) #define DBGDSCR_MOE_Msk (0xFUL << DBGDSCR_MOE_Pos) #define DBGDSCR_MOE_HALT_REQUEST (0) #define DBGDSCR_MOE_BREAKPOINT (1) #define DBGDSCR_MOE_ASYNC_WATCHPOINT (2) #define DBGDSCR_MOE_BKPT_INSTRUCTION (3) #define DBGDSCR_MOE_EXT_DEBUG_REQUEST (4) #define DBGDSCR_MOE_VECTOR_CATCH (5) #define DBGDSCR_MOE_OS_UNLOCK_CATCH (8) #define DBGDSCR_MOE_SYNC_WATCHPOINT (10) __STATIC_FORCEINLINE uint32_t __get_DFAR(void) { uint32_t result; __get_CP(15, 0, result, 6, 0, 0); return result; } __STATIC_FORCEINLINE uint32_t __get_IFAR(void) { uint32_t result; __get_CP(15, 0, result, 6, 0, 2); return result; } __STATIC_FORCEINLINE uint32_t __get_DBGDSCR(void) { uint32_t result; __get_CP(14, 0, result, 0, 1, 0); return result; } #endif /* ZEPHYR_MODULES_CMSIS_CMSIS_A_R_EXT_H_ */ ```
/content/code_sandbox/modules/cmsis/cmsis_core_a_r_ext.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
613
```objective-c /* * */ /** * @file * @brief CMSIS interface file * * This header contains the interface to the ARM CMSIS Core headers. */ #ifndef ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_ #define ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_ #include <soc.h> #ifdef __cplusplus extern "C" { #endif #ifndef __CR_REV #define __CR_REV 0U #endif #ifndef __CA_REV #define __CA_REV 0U #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT CONFIG_CPU_HAS_FPU #endif #ifndef __MMU_PRESENT #define __MMU_PRESENT CONFIG_CPU_HAS_MMU #endif #ifdef __cplusplus } #endif #if defined(CONFIG_CPU_CORTEX_R4) #include <core_cr4.h> #elif defined(CONFIG_CPU_CORTEX_R5) #include <core_cr5.h> #elif defined(CONFIG_CPU_CORTEX_R7) #include <core_cr7.h> #elif defined(CONFIG_CPU_CORTEX_R52) #include <core_cr52.h> #elif defined(CONFIG_CPU_AARCH32_CORTEX_A) /* * Any defines relevant for the proper inclusion of CMSIS' Cortex-A * Common Peripheral Access Layer (such as __CORTEX_A) which are not * covered by the Kconfig-based default assignments above must be * provided by each aarch32 Cortex-A SoC's header file (already in- * cluded above). */ #include <core_ca.h> #else #error "Unknown device" #endif #include "cmsis_core_a_r_ext.h" #endif /* ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_ */ ```
/content/code_sandbox/modules/cmsis/cmsis_core_a_r.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
348
```c /* * */ /** * @file * This file implements the OpenThread platform abstraction * for radio communication. * */ #define LOG_MODULE_NAME net_otPlat_radio #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_OPENTHREAD_L2_LOG_LEVEL); #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/net/ieee802154_radio.h> #include <zephyr/net/net_pkt.h> #include <zephyr/net/net_time.h> #include <zephyr/sys/__assert.h> #include <openthread/ip6.h> #include <openthread-system.h> #include <openthread/instance.h> #include <openthread/platform/radio.h> #include <openthread/platform/diag.h> #include <openthread/platform/time.h> #include <openthread/message.h> #include "platform-zephyr.h" #if defined(CONFIG_OPENTHREAD_NAT64_TRANSLATOR) #include <openthread/nat64.h> #endif #define PKT_IS_IPv6(_p) ((NET_IPV6_HDR(_p)->vtc & 0xf0) == 0x60) #define SHORT_ADDRESS_SIZE 2 #define FCS_SIZE 2 #if defined(CONFIG_OPENTHREAD_THREAD_VERSION_1_1) #define ACK_PKT_LENGTH 5 #else #define ACK_PKT_LENGTH 127 #endif #define FRAME_TYPE_MASK 0x07 #define FRAME_TYPE_ACK 0x02 #if defined(CONFIG_NET_TC_THREAD_COOPERATIVE) #define OT_WORKER_PRIORITY K_PRIO_COOP(CONFIG_OPENTHREAD_THREAD_PRIORITY) #else #define OT_WORKER_PRIORITY K_PRIO_PREEMPT(CONFIG_OPENTHREAD_THREAD_PRIORITY) #endif #define CHANNEL_COUNT OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MAX - OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN + 1 /* PHY header duration in us (i.e. 2 symbol periods @ 62.5k symbol rate), see * IEEE 802.15.4, sections 12.1.3.1, 12.2.5 and 12.3.3. */ #define PHR_DURATION_US 32U #define DEFAULT_SENSITIVITY -100 enum pending_events { PENDING_EVENT_FRAME_TO_SEND, /* There is a tx frame to send */ PENDING_EVENT_FRAME_RECEIVED, /* Radio has received new frame */ PENDING_EVENT_RX_FAILED, /* The RX failed */ PENDING_EVENT_TX_STARTED, /* Radio has started transmitting */ PENDING_EVENT_TX_DONE, /* Radio transmission finished */ PENDING_EVENT_DETECT_ENERGY, /* Requested to start Energy Detection procedure */ PENDING_EVENT_DETECT_ENERGY_DONE, /* Energy Detection finished */ PENDING_EVENT_SLEEP, /* Sleep if idle */ PENDING_EVENT_COUNT /* Keep last */ }; K_SEM_DEFINE(radio_sem, 0, 1); static otRadioState sState = OT_RADIO_STATE_DISABLED; static otRadioFrame sTransmitFrame; static otRadioFrame ack_frame; static uint8_t ack_psdu[ACK_PKT_LENGTH]; #if defined(CONFIG_OPENTHREAD_TIME_SYNC) static otRadioIeInfo tx_ie_info; #endif static struct net_pkt *tx_pkt; static struct net_buf *tx_payload; static const struct device *const radio_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_ieee802154)); static struct ieee802154_radio_api *radio_api; /* Get the default tx output power from Kconfig */ static int8_t tx_power = CONFIG_OPENTHREAD_DEFAULT_TX_POWER; static uint16_t channel; static bool promiscuous; static uint16_t energy_detection_time; static uint8_t energy_detection_channel; static int16_t energy_detected_value; static int8_t max_tx_power_table[CHANNEL_COUNT]; ATOMIC_DEFINE(pending_events, PENDING_EVENT_COUNT); K_KERNEL_STACK_DEFINE(ot_task_stack, CONFIG_OPENTHREAD_RADIO_WORKQUEUE_STACK_SIZE); static struct k_work_q ot_work_q; static otError rx_result; static otError tx_result; K_FIFO_DEFINE(rx_pkt_fifo); K_FIFO_DEFINE(tx_pkt_fifo); static int8_t get_transmit_power_for_channel(uint8_t aChannel) { int8_t channel_max_power = OT_RADIO_POWER_INVALID; int8_t power = 0; /* 0 dbm as default value */ if (aChannel >= OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN && aChannel <= OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MAX) { channel_max_power = max_tx_power_table[aChannel - OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN]; } if (tx_power != OT_RADIO_POWER_INVALID) { power = (channel_max_power < tx_power) ? channel_max_power : tx_power; } else if (channel_max_power != OT_RADIO_POWER_INVALID) { power = channel_max_power; } return power; } static inline bool is_pending_event_set(enum pending_events event) { return atomic_test_bit(pending_events, event); } static void set_pending_event(enum pending_events event) { atomic_set_bit(pending_events, event); otSysEventSignalPending(); } static void reset_pending_event(enum pending_events event) { atomic_clear_bit(pending_events, event); } static inline void clear_pending_events(void) { atomic_clear(pending_events); } void energy_detected(const struct device *dev, int16_t max_ed) { if (dev == radio_dev) { energy_detected_value = max_ed; set_pending_event(PENDING_EVENT_DETECT_ENERGY_DONE); } } enum net_verdict ieee802154_handle_ack(struct net_if *iface, struct net_pkt *pkt) { ARG_UNUSED(iface); size_t ack_len = net_pkt_get_len(pkt); if (ack_len > ACK_PKT_LENGTH) { return NET_CONTINUE; } if ((*net_pkt_data(pkt) & FRAME_TYPE_MASK) != FRAME_TYPE_ACK) { return NET_CONTINUE; } if (ack_frame.mLength != 0) { LOG_ERR("Overwriting unhandled ACK frame."); } if (net_pkt_read(pkt, ack_psdu, ack_len) < 0) { LOG_ERR("Failed to read ACK frame."); return NET_CONTINUE; } ack_frame.mPsdu = ack_psdu; ack_frame.mLength = ack_len; ack_frame.mInfo.mRxInfo.mLqi = net_pkt_ieee802154_lqi(pkt); ack_frame.mInfo.mRxInfo.mRssi = net_pkt_ieee802154_rssi_dbm(pkt); #if defined(CONFIG_NET_PKT_TIMESTAMP) ack_frame.mInfo.mRxInfo.mTimestamp = net_pkt_timestamp_ns(pkt) / NSEC_PER_USEC; #endif return NET_OK; } void handle_radio_event(const struct device *dev, enum ieee802154_event evt, void *event_params) { ARG_UNUSED(event_params); switch (evt) { case IEEE802154_EVENT_TX_STARTED: if (sState == OT_RADIO_STATE_TRANSMIT) { set_pending_event(PENDING_EVENT_TX_STARTED); } break; case IEEE802154_EVENT_RX_FAILED: if (sState == OT_RADIO_STATE_RECEIVE) { switch (*(enum ieee802154_rx_fail_reason *) event_params) { case IEEE802154_RX_FAIL_NOT_RECEIVED: rx_result = OT_ERROR_NO_FRAME_RECEIVED; break; case IEEE802154_RX_FAIL_INVALID_FCS: rx_result = OT_ERROR_FCS; break; case IEEE802154_RX_FAIL_ADDR_FILTERED: rx_result = OT_ERROR_DESTINATION_ADDRESS_FILTERED; break; case IEEE802154_RX_FAIL_OTHER: default: rx_result = OT_ERROR_FAILED; break; } set_pending_event(PENDING_EVENT_RX_FAILED); } break; case IEEE802154_EVENT_RX_OFF: set_pending_event(PENDING_EVENT_SLEEP); break; default: /* do nothing - ignore event */ break; } } #if defined(CONFIG_NET_PKT_TXTIME) || defined(CONFIG_OPENTHREAD_CSL_RECEIVER) /** * @brief Convert 32-bit (potentially wrapped) OpenThread microsecond timestamps * to 64-bit Zephyr network subsystem nanosecond timestamps. * * This is a workaround until OpenThread is able to schedule 64-bit RX/TX time. * * @param target_time_ns_wrapped time in nanoseconds referred to the radio clock * modulo UINT32_MAX. * * @return 64-bit nanosecond timestamp */ static net_time_t convert_32bit_us_wrapped_to_64bit_ns(uint32_t target_time_us_wrapped) { /** * OpenThread provides target time as a (potentially wrapped) 32-bit * integer defining a moment in time in the microsecond domain. * * The target time can point to a moment in the future, but can be * overdue as well. In order to determine what's the case and correctly * set the absolute (non-wrapped) target time, it's necessary to compare * the least significant 32 bits of the current 64-bit network subsystem * time with the provided 32-bit target time. Let's assume that half of * the 32-bit range can be used for specifying target times in the * future, and the other half - in the past. */ uint64_t now_us = otPlatTimeGet(); uint32_t now_us_wrapped = (uint32_t)now_us; uint32_t time_diff = target_time_us_wrapped - now_us_wrapped; uint64_t result = UINT64_C(0); if (time_diff < 0x80000000) { /** * Target time is assumed to be in the future. Check if a 32-bit overflow * occurs between the current time and the target time. */ if (now_us_wrapped > target_time_us_wrapped) { /** * Add a 32-bit overflow and replace the least significant 32 bits * with the provided target time. */ result = now_us + UINT32_MAX + 1; result &= ~(uint64_t)UINT32_MAX; result |= target_time_us_wrapped; } else { /** * Leave the most significant 32 bits and replace the least significant * 32 bits with the provided target time. */ result = (now_us & (~(uint64_t)UINT32_MAX)) | target_time_us_wrapped; } } else { /** * Target time is assumed to be in the past. Check if a 32-bit overflow * occurs between the target time and the current time. */ if (now_us_wrapped > target_time_us_wrapped) { /** * Leave the most significant 32 bits and replace the least significant * 32 bits with the provided target time. */ result = (now_us & (~(uint64_t)UINT32_MAX)) | target_time_us_wrapped; } else { /** * Subtract a 32-bit overflow and replace the least significant * 32 bits with the provided target time. */ result = now_us - UINT32_MAX - 1; result &= ~(uint64_t)UINT32_MAX; result |= target_time_us_wrapped; } } __ASSERT_NO_MSG(result <= INT64_MAX / NSEC_PER_USEC); return (net_time_t)result * NSEC_PER_USEC; } #endif /* CONFIG_NET_PKT_TXTIME || CONFIG_OPENTHREAD_CSL_RECEIVER */ static void dataInit(void) { tx_pkt = net_pkt_alloc(K_NO_WAIT); __ASSERT_NO_MSG(tx_pkt != NULL); tx_payload = net_pkt_get_reserve_tx_data(IEEE802154_MAX_PHY_PACKET_SIZE, K_NO_WAIT); __ASSERT_NO_MSG(tx_payload != NULL); net_pkt_append_buffer(tx_pkt, tx_payload); sTransmitFrame.mPsdu = tx_payload->data; for (size_t i = 0; i < CHANNEL_COUNT; i++) { max_tx_power_table[i] = OT_RADIO_POWER_INVALID; } #if defined(CONFIG_OPENTHREAD_TIME_SYNC) sTransmitFrame.mInfo.mTxInfo.mIeInfo = &tx_ie_info; #endif } void platformRadioInit(void) { struct ieee802154_config cfg; dataInit(); __ASSERT_NO_MSG(device_is_ready(radio_dev)); radio_api = (struct ieee802154_radio_api *)radio_dev->api; if (!radio_api) { return; } k_work_queue_start(&ot_work_q, ot_task_stack, K_KERNEL_STACK_SIZEOF(ot_task_stack), OT_WORKER_PRIORITY, NULL); k_thread_name_set(&ot_work_q.thread, "ot_radio_workq"); if ((radio_api->get_capabilities(radio_dev) & IEEE802154_HW_TX_RX_ACK) != IEEE802154_HW_TX_RX_ACK) { LOG_ERR("Only radios with automatic ack handling " "are currently supported"); k_panic(); } cfg.event_handler = handle_radio_event; radio_api->configure(radio_dev, IEEE802154_CONFIG_EVENT_HANDLER, &cfg); } void transmit_message(struct k_work *tx_job) { int tx_err; ARG_UNUSED(tx_job); /* * The payload is already in tx_payload->data, * but we need to set the length field * according to sTransmitFrame.length. * We subtract the FCS size as radio driver * adds CRC and increases frame length on its own. */ tx_payload->len = sTransmitFrame.mLength - FCS_SIZE; channel = sTransmitFrame.mChannel; radio_api->set_channel(radio_dev, channel); radio_api->set_txpower(radio_dev, get_transmit_power_for_channel(channel)); #if defined(CONFIG_OPENTHREAD_TIME_SYNC) if (sTransmitFrame.mInfo.mTxInfo.mIeInfo->mTimeIeOffset != 0) { uint8_t *time_ie = sTransmitFrame.mPsdu + sTransmitFrame.mInfo.mTxInfo.mIeInfo->mTimeIeOffset; uint64_t offset_plat_time = otPlatTimeGet() + sTransmitFrame.mInfo.mTxInfo.mIeInfo->mNetworkTimeOffset; *(time_ie++) = sTransmitFrame.mInfo.mTxInfo.mIeInfo->mTimeSyncSeq; sys_put_le64(offset_plat_time, time_ie); } #endif net_pkt_set_ieee802154_frame_secured(tx_pkt, sTransmitFrame.mInfo.mTxInfo.mIsSecurityProcessed); net_pkt_set_ieee802154_mac_hdr_rdy(tx_pkt, sTransmitFrame.mInfo.mTxInfo.mIsHeaderUpdated); if ((radio_api->get_capabilities(radio_dev) & IEEE802154_HW_TXTIME) && (sTransmitFrame.mInfo.mTxInfo.mTxDelay != 0)) { #if defined(CONFIG_NET_PKT_TXTIME) uint32_t tx_at = sTransmitFrame.mInfo.mTxInfo.mTxDelayBaseTime + sTransmitFrame.mInfo.mTxInfo.mTxDelay; net_pkt_set_timestamp_ns(tx_pkt, convert_32bit_us_wrapped_to_64bit_ns(tx_at)); #endif tx_err = radio_api->tx(radio_dev, IEEE802154_TX_MODE_TXTIME_CCA, tx_pkt, tx_payload); } else if (sTransmitFrame.mInfo.mTxInfo.mCsmaCaEnabled) { if (radio_api->get_capabilities(radio_dev) & IEEE802154_HW_CSMA) { tx_err = radio_api->tx(radio_dev, IEEE802154_TX_MODE_CSMA_CA, tx_pkt, tx_payload); } else { tx_err = radio_api->cca(radio_dev); if (tx_err == 0) { tx_err = radio_api->tx(radio_dev, IEEE802154_TX_MODE_DIRECT, tx_pkt, tx_payload); } } } else { tx_err = radio_api->tx(radio_dev, IEEE802154_TX_MODE_DIRECT, tx_pkt, tx_payload); } /* * OpenThread handles the following errors: * - OT_ERROR_NONE * - OT_ERROR_NO_ACK * - OT_ERROR_CHANNEL_ACCESS_FAILURE * - OT_ERROR_ABORT * Any other error passed to `otPlatRadioTxDone` will result in assertion. */ switch (tx_err) { case 0: tx_result = OT_ERROR_NONE; break; case -ENOMSG: tx_result = OT_ERROR_NO_ACK; break; case -EBUSY: tx_result = OT_ERROR_CHANNEL_ACCESS_FAILURE; break; case -EIO: tx_result = OT_ERROR_ABORT; break; default: tx_result = OT_ERROR_CHANNEL_ACCESS_FAILURE; break; } set_pending_event(PENDING_EVENT_TX_DONE); } static inline void handle_tx_done(otInstance *aInstance) { sTransmitFrame.mInfo.mTxInfo.mIsSecurityProcessed = net_pkt_ieee802154_frame_secured(tx_pkt); sTransmitFrame.mInfo.mTxInfo.mIsHeaderUpdated = net_pkt_ieee802154_mac_hdr_rdy(tx_pkt); if (IS_ENABLED(CONFIG_OPENTHREAD_DIAG) && otPlatDiagModeGet()) { otPlatDiagRadioTransmitDone(aInstance, &sTransmitFrame, tx_result); } else { otPlatRadioTxDone(aInstance, &sTransmitFrame, ack_frame.mLength ? &ack_frame : NULL, tx_result); ack_frame.mLength = 0; } } static void openthread_handle_received_frame(otInstance *instance, struct net_pkt *pkt) { otRadioFrame recv_frame; memset(&recv_frame, 0, sizeof(otRadioFrame)); recv_frame.mPsdu = net_buf_frag_last(pkt->buffer)->data; /* Length inc. CRC. */ recv_frame.mLength = net_buf_frags_len(pkt->buffer); recv_frame.mChannel = platformRadioChannelGet(instance); recv_frame.mInfo.mRxInfo.mLqi = net_pkt_ieee802154_lqi(pkt); recv_frame.mInfo.mRxInfo.mRssi = net_pkt_ieee802154_rssi_dbm(pkt); recv_frame.mInfo.mRxInfo.mAckedWithFramePending = net_pkt_ieee802154_ack_fpb(pkt); #if defined(CONFIG_NET_PKT_TIMESTAMP) recv_frame.mInfo.mRxInfo.mTimestamp = net_pkt_timestamp_ns(pkt) / NSEC_PER_USEC; #endif recv_frame.mInfo.mRxInfo.mAckedWithSecEnhAck = net_pkt_ieee802154_ack_seb(pkt); recv_frame.mInfo.mRxInfo.mAckFrameCounter = net_pkt_ieee802154_ack_fc(pkt); recv_frame.mInfo.mRxInfo.mAckKeyId = net_pkt_ieee802154_ack_keyid(pkt); if (IS_ENABLED(CONFIG_OPENTHREAD_DIAG) && otPlatDiagModeGet()) { otPlatDiagRadioReceiveDone(instance, &recv_frame, OT_ERROR_NONE); } else { otPlatRadioReceiveDone(instance, &recv_frame, OT_ERROR_NONE); } net_pkt_unref(pkt); } #if defined(CONFIG_OPENTHREAD_NAT64_TRANSLATOR) static otMessage *openthread_ip4_new_msg(otInstance *instance, otMessageSettings *settings) { return otIp4NewMessage(instance, settings); } static otError openthread_nat64_send(otInstance *instance, otMessage *message) { return otNat64Send(instance, message); } #else /* CONFIG_OPENTHREAD_NAT64_TRANSLATOR */ static otMessage *openthread_ip4_new_msg(otInstance *instance, otMessageSettings *settings) { return NULL; } static otError openthread_nat64_send(otInstance *instance, otMessage *message) { return OT_ERROR_DROP; } #endif /* CONFIG_OPENTHREAD_NAT64_TRANSLATOR */ static void openthread_handle_frame_to_send(otInstance *instance, struct net_pkt *pkt) { otError error; struct net_buf *buf; otMessage *message; otMessageSettings settings; bool is_ip6 = PKT_IS_IPv6(pkt); NET_DBG("Sending %s packet to ot stack", is_ip6 ? "IPv6" : "IPv4"); settings.mPriority = OT_MESSAGE_PRIORITY_NORMAL; settings.mLinkSecurityEnabled = true; message = is_ip6 ? otIp6NewMessage(instance, &settings) : openthread_ip4_new_msg(instance, &settings); if (!message) { NET_ERR("Cannot allocate new message buffer"); goto exit; } if (IS_ENABLED(CONFIG_OPENTHREAD)) { /* Set multicast loop so the stack can process multicast packets for * subscribed addresses. */ otMessageSetMulticastLoopEnabled(message, true); } for (buf = pkt->buffer; buf; buf = buf->frags) { if (otMessageAppend(message, buf->data, buf->len) != OT_ERROR_NONE) { NET_ERR("Error while appending to otMessage"); otMessageFree(message); goto exit; } } error = is_ip6 ? otIp6Send(instance, message) : openthread_nat64_send(instance, message); if (error != OT_ERROR_NONE) { NET_ERR("Error while calling %s [error: %d]", is_ip6 ? "otIp6Send" : "openthread_nat64_send", error); } exit: net_pkt_unref(pkt); } int notify_new_rx_frame(struct net_pkt *pkt) { k_fifo_put(&rx_pkt_fifo, pkt); set_pending_event(PENDING_EVENT_FRAME_RECEIVED); return 0; } int notify_new_tx_frame(struct net_pkt *pkt) { k_fifo_put(&tx_pkt_fifo, pkt); set_pending_event(PENDING_EVENT_FRAME_TO_SEND); return 0; } static int run_tx_task(otInstance *aInstance) { static K_WORK_DEFINE(tx_job, transmit_message); ARG_UNUSED(aInstance); if (!k_work_is_pending(&tx_job)) { sState = OT_RADIO_STATE_TRANSMIT; k_work_submit_to_queue(&ot_work_q, &tx_job); return 0; } else { return -EBUSY; } } void platformRadioProcess(otInstance *aInstance) { bool event_pending = false; if (is_pending_event_set(PENDING_EVENT_FRAME_TO_SEND)) { struct net_pkt *evt_pkt; reset_pending_event(PENDING_EVENT_FRAME_TO_SEND); while ((evt_pkt = (struct net_pkt *) k_fifo_get(&tx_pkt_fifo, K_NO_WAIT)) != NULL) { if (IS_ENABLED(CONFIG_OPENTHREAD_COPROCESSOR_RCP)) { net_pkt_unref(evt_pkt); } else { openthread_handle_frame_to_send(aInstance, evt_pkt); } } } if (is_pending_event_set(PENDING_EVENT_FRAME_RECEIVED)) { struct net_pkt *rx_pkt; reset_pending_event(PENDING_EVENT_FRAME_RECEIVED); while ((rx_pkt = (struct net_pkt *) k_fifo_get(&rx_pkt_fifo, K_NO_WAIT)) != NULL) { openthread_handle_received_frame(aInstance, rx_pkt); } } if (is_pending_event_set(PENDING_EVENT_RX_FAILED)) { reset_pending_event(PENDING_EVENT_RX_FAILED); if (IS_ENABLED(CONFIG_OPENTHREAD_DIAG) && otPlatDiagModeGet()) { otPlatDiagRadioReceiveDone(aInstance, NULL, rx_result); } else { otPlatRadioReceiveDone(aInstance, NULL, rx_result); } } if (is_pending_event_set(PENDING_EVENT_TX_STARTED)) { reset_pending_event(PENDING_EVENT_TX_STARTED); otPlatRadioTxStarted(aInstance, &sTransmitFrame); } if (is_pending_event_set(PENDING_EVENT_TX_DONE)) { reset_pending_event(PENDING_EVENT_TX_DONE); if (sState == OT_RADIO_STATE_TRANSMIT || radio_api->get_capabilities(radio_dev) & IEEE802154_HW_SLEEP_TO_TX) { sState = OT_RADIO_STATE_RECEIVE; handle_tx_done(aInstance); } } if (is_pending_event_set(PENDING_EVENT_SLEEP)) { reset_pending_event(PENDING_EVENT_SLEEP); ARG_UNUSED(otPlatRadioSleep(aInstance)); } /* handle events that can't run during transmission */ if (sState != OT_RADIO_STATE_TRANSMIT) { if (is_pending_event_set(PENDING_EVENT_DETECT_ENERGY)) { radio_api->set_channel(radio_dev, energy_detection_channel); if (!radio_api->ed_scan(radio_dev, energy_detection_time, energy_detected)) { reset_pending_event( PENDING_EVENT_DETECT_ENERGY); } else { event_pending = true; } } if (is_pending_event_set(PENDING_EVENT_DETECT_ENERGY_DONE)) { otPlatRadioEnergyScanDone(aInstance, (int8_t) energy_detected_value); reset_pending_event(PENDING_EVENT_DETECT_ENERGY_DONE); } } if (event_pending) { otSysEventSignalPending(); } } uint16_t platformRadioChannelGet(otInstance *aInstance) { ARG_UNUSED(aInstance); return channel; } void otPlatRadioSetPanId(otInstance *aInstance, uint16_t aPanId) { ARG_UNUSED(aInstance); radio_api->filter(radio_dev, true, IEEE802154_FILTER_TYPE_PAN_ID, (struct ieee802154_filter *) &aPanId); } void otPlatRadioSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress) { ARG_UNUSED(aInstance); radio_api->filter(radio_dev, true, IEEE802154_FILTER_TYPE_IEEE_ADDR, (struct ieee802154_filter *) &aExtAddress); } void otPlatRadioSetShortAddress(otInstance *aInstance, uint16_t aShortAddress) { ARG_UNUSED(aInstance); radio_api->filter(radio_dev, true, IEEE802154_FILTER_TYPE_SHORT_ADDR, (struct ieee802154_filter *) &aShortAddress); } bool otPlatRadioIsEnabled(otInstance *aInstance) { ARG_UNUSED(aInstance); return (sState != OT_RADIO_STATE_DISABLED) ? true : false; } otError otPlatRadioEnable(otInstance *aInstance) { if (!otPlatRadioIsEnabled(aInstance)) { sState = OT_RADIO_STATE_SLEEP; } return OT_ERROR_NONE; } otError otPlatRadioDisable(otInstance *aInstance) { if (otPlatRadioIsEnabled(aInstance)) { sState = OT_RADIO_STATE_DISABLED; } return OT_ERROR_NONE; } otError otPlatRadioSleep(otInstance *aInstance) { ARG_UNUSED(aInstance); otError error = OT_ERROR_INVALID_STATE; if (sState == OT_RADIO_STATE_SLEEP || sState == OT_RADIO_STATE_RECEIVE || sState == OT_RADIO_STATE_TRANSMIT) { error = OT_ERROR_NONE; radio_api->stop(radio_dev); sState = OT_RADIO_STATE_SLEEP; } return error; } otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel) { ARG_UNUSED(aInstance); channel = aChannel; radio_api->set_channel(radio_dev, aChannel); radio_api->set_txpower(radio_dev, get_transmit_power_for_channel(channel)); radio_api->start(radio_dev); sState = OT_RADIO_STATE_RECEIVE; return OT_ERROR_NONE; } #if defined(CONFIG_OPENTHREAD_CSL_RECEIVER) otError otPlatRadioReceiveAt(otInstance *aInstance, uint8_t aChannel, uint32_t aStart, uint32_t aDuration) { int result; ARG_UNUSED(aInstance); struct ieee802154_config config = { .rx_slot.channel = aChannel, .rx_slot.start = convert_32bit_us_wrapped_to_64bit_ns(aStart), .rx_slot.duration = (net_time_t)aDuration * NSEC_PER_USEC, }; result = radio_api->configure(radio_dev, IEEE802154_CONFIG_RX_SLOT, &config); return result ? OT_ERROR_FAILED : OT_ERROR_NONE; } #endif otError platformRadioTransmitCarrier(otInstance *aInstance, bool aEnable) { if (radio_api->continuous_carrier == NULL) { return OT_ERROR_NOT_IMPLEMENTED; } if ((aEnable) && (sState == OT_RADIO_STATE_RECEIVE)) { radio_api->set_txpower(radio_dev, get_transmit_power_for_channel(channel)); if (radio_api->continuous_carrier(radio_dev) != 0) { return OT_ERROR_FAILED; } sState = OT_RADIO_STATE_TRANSMIT; } else if ((!aEnable) && (sState == OT_RADIO_STATE_TRANSMIT)) { return otPlatRadioReceive(aInstance, channel); } else { return OT_ERROR_INVALID_STATE; } return OT_ERROR_NONE; } otRadioState otPlatRadioGetState(otInstance *aInstance) { ARG_UNUSED(aInstance); return sState; } otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aPacket) { otError error = OT_ERROR_INVALID_STATE; ARG_UNUSED(aInstance); ARG_UNUSED(aPacket); __ASSERT_NO_MSG(aPacket == &sTransmitFrame); enum ieee802154_hw_caps radio_caps; radio_caps = radio_api->get_capabilities(radio_dev); if ((sState == OT_RADIO_STATE_RECEIVE) || (radio_caps & IEEE802154_HW_SLEEP_TO_TX)) { if (run_tx_task(aInstance) == 0) { error = OT_ERROR_NONE; } } return error; } otRadioFrame *otPlatRadioGetTransmitBuffer(otInstance *aInstance) { ARG_UNUSED(aInstance); return &sTransmitFrame; } static void get_rssi_energy_detected(const struct device *dev, int16_t max_ed) { ARG_UNUSED(dev); energy_detected_value = max_ed; k_sem_give(&radio_sem); } int8_t otPlatRadioGetRssi(otInstance *aInstance) { int8_t ret_rssi = INT8_MAX; int error = 0; const uint16_t detection_time = 1; enum ieee802154_hw_caps radio_caps; ARG_UNUSED(aInstance); radio_caps = radio_api->get_capabilities(radio_dev); if (!(radio_caps & IEEE802154_HW_ENERGY_SCAN)) { /* * TODO: No API in Zephyr to get the RSSI * when IEEE802154_HW_ENERGY_SCAN is not available */ ret_rssi = 0; } else { /* * Blocking implementation of get RSSI * using no-blocking ed_scan */ error = radio_api->ed_scan(radio_dev, detection_time, get_rssi_energy_detected); if (error == 0) { k_sem_take(&radio_sem, K_FOREVER); ret_rssi = (int8_t)energy_detected_value; } } return ret_rssi; } otRadioCaps otPlatRadioGetCaps(otInstance *aInstance) { otRadioCaps caps = OT_RADIO_CAPS_NONE; enum ieee802154_hw_caps radio_caps; ARG_UNUSED(aInstance); __ASSERT(radio_api, "platformRadioInit needs to be called prior to otPlatRadioGetCaps"); radio_caps = radio_api->get_capabilities(radio_dev); if (radio_caps & IEEE802154_HW_ENERGY_SCAN) { caps |= OT_RADIO_CAPS_ENERGY_SCAN; } if (radio_caps & IEEE802154_HW_CSMA) { caps |= OT_RADIO_CAPS_CSMA_BACKOFF; } if (radio_caps & IEEE802154_HW_TX_RX_ACK) { caps |= OT_RADIO_CAPS_ACK_TIMEOUT; } if (radio_caps & IEEE802154_HW_SLEEP_TO_TX) { caps |= OT_RADIO_CAPS_SLEEP_TO_TX; } #if !defined(CONFIG_OPENTHREAD_THREAD_VERSION_1_1) if (radio_caps & IEEE802154_HW_TX_SEC) { caps |= OT_RADIO_CAPS_TRANSMIT_SEC; } #endif #if defined(CONFIG_NET_PKT_TXTIME) if (radio_caps & IEEE802154_HW_TXTIME) { caps |= OT_RADIO_CAPS_TRANSMIT_TIMING; } #endif if (radio_caps & IEEE802154_HW_RXTIME) { caps |= OT_RADIO_CAPS_RECEIVE_TIMING; } if (radio_caps & IEEE802154_RX_ON_WHEN_IDLE) { caps |= OT_RADIO_CAPS_RX_ON_WHEN_IDLE; } return caps; } void otPlatRadioSetRxOnWhenIdle(otInstance *aInstance, bool aRxOnWhenIdle) { struct ieee802154_config config = { .rx_on_when_idle = aRxOnWhenIdle }; ARG_UNUSED(aInstance); LOG_DBG("RxOnWhenIdle=%d", aRxOnWhenIdle ? 1 : 0); radio_api->configure(radio_dev, IEEE802154_CONFIG_RX_ON_WHEN_IDLE, &config); } bool otPlatRadioGetPromiscuous(otInstance *aInstance) { ARG_UNUSED(aInstance); LOG_DBG("PromiscuousMode=%d", promiscuous ? 1 : 0); return promiscuous; } void otPlatRadioSetPromiscuous(otInstance *aInstance, bool aEnable) { struct ieee802154_config config = { .promiscuous = aEnable }; ARG_UNUSED(aInstance); LOG_DBG("PromiscuousMode=%d", aEnable ? 1 : 0); promiscuous = aEnable; /* TODO: Should check whether the radio driver actually supports * promiscuous mode, see net_if_l2(iface)->get_flags() and * ieee802154_radio_get_hw_capabilities(iface). */ radio_api->configure(radio_dev, IEEE802154_CONFIG_PROMISCUOUS, &config); } otError otPlatRadioEnergyScan(otInstance *aInstance, uint8_t aScanChannel, uint16_t aScanDuration) { energy_detection_time = aScanDuration; energy_detection_channel = aScanChannel; if (radio_api->ed_scan == NULL) { return OT_ERROR_NOT_IMPLEMENTED; } reset_pending_event(PENDING_EVENT_DETECT_ENERGY); reset_pending_event(PENDING_EVENT_DETECT_ENERGY_DONE); radio_api->set_channel(radio_dev, aScanChannel); if (radio_api->ed_scan(radio_dev, energy_detection_time, energy_detected) != 0) { /* * OpenThread API does not accept failure of this function, * it can return 'No Error' or 'Not Implemented' error only. * If ed_scan start failed event is set to schedule the scan at * later time. */ LOG_ERR("Failed do start energy scan, scheduling for later"); set_pending_event(PENDING_EVENT_DETECT_ENERGY); } return OT_ERROR_NONE; } otError otPlatRadioGetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t *aThreshold) { OT_UNUSED_VARIABLE(aInstance); OT_UNUSED_VARIABLE(aThreshold); return OT_ERROR_NOT_IMPLEMENTED; } otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aThreshold) { OT_UNUSED_VARIABLE(aInstance); OT_UNUSED_VARIABLE(aThreshold); return OT_ERROR_NOT_IMPLEMENTED; } void otPlatRadioEnableSrcMatch(otInstance *aInstance, bool aEnable) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .auto_ack_fpb.enabled = aEnable, .auto_ack_fpb.mode = IEEE802154_FPB_ADDR_MATCH_THREAD, }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_AUTO_ACK_FPB, &config); } otError otPlatRadioAddSrcMatchShortEntry(otInstance *aInstance, const uint16_t aShortAddress) { ARG_UNUSED(aInstance); uint8_t short_address[SHORT_ADDRESS_SIZE]; struct ieee802154_config config = { .ack_fpb.enabled = true, .ack_fpb.addr = short_address, .ack_fpb.extended = false }; sys_put_le16(aShortAddress, short_address); if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, &config) != 0) { return OT_ERROR_NO_BUFS; } return OT_ERROR_NONE; } otError otPlatRadioAddSrcMatchExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .ack_fpb.enabled = true, .ack_fpb.addr = (uint8_t *)aExtAddress->m8, .ack_fpb.extended = true }; if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, &config) != 0) { return OT_ERROR_NO_BUFS; } return OT_ERROR_NONE; } otError otPlatRadioClearSrcMatchShortEntry(otInstance *aInstance, const uint16_t aShortAddress) { ARG_UNUSED(aInstance); uint8_t short_address[SHORT_ADDRESS_SIZE]; struct ieee802154_config config = { .ack_fpb.enabled = false, .ack_fpb.addr = short_address, .ack_fpb.extended = false }; sys_put_le16(aShortAddress, short_address); if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, &config) != 0) { return OT_ERROR_NO_BUFS; } return OT_ERROR_NONE; } otError otPlatRadioClearSrcMatchExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .ack_fpb.enabled = false, .ack_fpb.addr = (uint8_t *)aExtAddress->m8, .ack_fpb.extended = true }; if (radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, &config) != 0) { return OT_ERROR_NO_BUFS; } return OT_ERROR_NONE; } void otPlatRadioClearSrcMatchShortEntries(otInstance *aInstance) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .ack_fpb.enabled = false, .ack_fpb.addr = NULL, .ack_fpb.extended = false }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, &config); } void otPlatRadioClearSrcMatchExtEntries(otInstance *aInstance) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .ack_fpb.enabled = false, .ack_fpb.addr = NULL, .ack_fpb.extended = true }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_ACK_FPB, &config); } int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance) { ARG_UNUSED(aInstance); return DEFAULT_SENSITIVITY; } otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower) { ARG_UNUSED(aInstance); if (aPower == NULL) { return OT_ERROR_INVALID_ARGS; } *aPower = tx_power; return OT_ERROR_NONE; } otError otPlatRadioSetTransmitPower(otInstance *aInstance, int8_t aPower) { ARG_UNUSED(aInstance); tx_power = aPower; return OT_ERROR_NONE; } uint64_t otPlatTimeGet(void) { if (radio_api == NULL || radio_api->get_time == NULL) { return k_ticks_to_us_floor64(k_uptime_ticks()); } else { return radio_api->get_time(radio_dev) / NSEC_PER_USEC; } } #if defined(CONFIG_NET_PKT_TXTIME) uint64_t otPlatRadioGetNow(otInstance *aInstance) { ARG_UNUSED(aInstance); return otPlatTimeGet(); } #endif #if !defined(CONFIG_OPENTHREAD_THREAD_VERSION_1_1) void otPlatRadioSetMacKey(otInstance *aInstance, uint8_t aKeyIdMode, uint8_t aKeyId, const otMacKeyMaterial *aPrevKey, const otMacKeyMaterial *aCurrKey, const otMacKeyMaterial *aNextKey, otRadioKeyType aKeyType) { ARG_UNUSED(aInstance); __ASSERT_NO_MSG(aPrevKey != NULL && aCurrKey != NULL && aNextKey != NULL); #if defined(CONFIG_OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE) __ASSERT_NO_MSG(aKeyType == OT_KEY_TYPE_KEY_REF); size_t keyLen; otError error; error = otPlatCryptoExportKey(aPrevKey->mKeyMaterial.mKeyRef, (uint8_t *)aPrevKey->mKeyMaterial.mKey.m8, OT_MAC_KEY_SIZE, &keyLen); __ASSERT_NO_MSG(error == OT_ERROR_NONE); error = otPlatCryptoExportKey(aCurrKey->mKeyMaterial.mKeyRef, (uint8_t *)aCurrKey->mKeyMaterial.mKey.m8, OT_MAC_KEY_SIZE, &keyLen); __ASSERT_NO_MSG(error == OT_ERROR_NONE); error = otPlatCryptoExportKey(aNextKey->mKeyMaterial.mKeyRef, (uint8_t *)aNextKey->mKeyMaterial.mKey.m8, OT_MAC_KEY_SIZE, &keyLen); __ASSERT_NO_MSG(error == OT_ERROR_NONE); #else __ASSERT_NO_MSG(aKeyType == OT_KEY_TYPE_LITERAL_KEY); #endif uint8_t key_id_mode = aKeyIdMode >> 3; struct ieee802154_key keys[] = { { .key_id_mode = key_id_mode, .frame_counter_per_key = false, }, { .key_id_mode = key_id_mode, .frame_counter_per_key = false, }, { .key_id_mode = key_id_mode, .frame_counter_per_key = false, }, { .key_value = NULL, }, }; struct ieee802154_key clear_keys[] = { { .key_value = NULL, }, }; if (key_id_mode == 1) { /* aKeyId in range: (1, 0x80) means valid keys */ uint8_t prev_key_id = aKeyId == 1 ? 0x80 : aKeyId - 1; uint8_t next_key_id = aKeyId == 0x80 ? 1 : aKeyId + 1; keys[0].key_id = &prev_key_id; keys[0].key_value = (uint8_t *)aPrevKey->mKeyMaterial.mKey.m8; keys[1].key_id = &aKeyId; keys[1].key_value = (uint8_t *)aCurrKey->mKeyMaterial.mKey.m8; keys[2].key_id = &next_key_id; keys[2].key_value = (uint8_t *)aNextKey->mKeyMaterial.mKey.m8; } else { /* aKeyId == 0 is used only to clear keys for stack reset in RCP */ __ASSERT_NO_MSG((key_id_mode == 0) && (aKeyId == 0)); } struct ieee802154_config config = { .mac_keys = aKeyId == 0 ? clear_keys : keys, }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_MAC_KEYS, &config); } void otPlatRadioSetMacFrameCounter(otInstance *aInstance, uint32_t aMacFrameCounter) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .frame_counter = aMacFrameCounter }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_FRAME_COUNTER, &config); } void otPlatRadioSetMacFrameCounterIfLarger(otInstance *aInstance, uint32_t aMacFrameCounter) { ARG_UNUSED(aInstance); struct ieee802154_config config = { .frame_counter = aMacFrameCounter }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_FRAME_COUNTER_IF_LARGER, &config); } #endif #if defined(CONFIG_OPENTHREAD_CSL_RECEIVER) otError otPlatRadioEnableCsl(otInstance *aInstance, uint32_t aCslPeriod, otShortAddress aShortAddr, const otExtAddress *aExtAddr) { struct ieee802154_config config; /* CSL phase will be injected on-the-fly by the driver. */ struct ieee802154_header_ie header_ie = IEEE802154_DEFINE_HEADER_IE_CSL_REDUCED(/* phase */ 0, aCslPeriod); int result; ARG_UNUSED(aInstance); /* Configure the CSL period first to give drivers a chance to validate * the IE for consistency if they wish to. */ config.csl_period = aCslPeriod; result = radio_api->configure(radio_dev, IEEE802154_CONFIG_CSL_PERIOD, &config); if (result) { return OT_ERROR_FAILED; } /* Configure the CSL IE. */ config.ack_ie.header_ie = aCslPeriod > 0 ? &header_ie : NULL; config.ack_ie.short_addr = aShortAddr; config.ack_ie.ext_addr = aExtAddr != NULL ? aExtAddr->m8 : NULL; config.ack_ie.purge_ie = false; result = radio_api->configure(radio_dev, IEEE802154_CONFIG_ENH_ACK_HEADER_IE, &config); return result ? OT_ERROR_FAILED : OT_ERROR_NONE; } otError otPlatRadioResetCsl(otInstance *aInstance) { struct ieee802154_config config = { 0 }; int result; result = radio_api->configure(radio_dev, IEEE802154_CONFIG_CSL_PERIOD, &config); if (result) { return OT_ERROR_FAILED; } config.ack_ie.purge_ie = true; result = radio_api->configure(radio_dev, IEEE802154_CONFIG_ENH_ACK_HEADER_IE, &config); return result ? OT_ERROR_FAILED : OT_ERROR_NONE; } void otPlatRadioUpdateCslSampleTime(otInstance *aInstance, uint32_t aCslSampleTime) { ARG_UNUSED(aInstance); /* CSL sample time points to "start of MAC" while the expected RX time * refers to "end of SFD". */ struct ieee802154_config config = { .expected_rx_time = convert_32bit_us_wrapped_to_64bit_ns(aCslSampleTime - PHR_DURATION_US), }; (void)radio_api->configure(radio_dev, IEEE802154_CONFIG_EXPECTED_RX_TIME, &config); } #endif /* CONFIG_OPENTHREAD_CSL_RECEIVER */ uint8_t otPlatRadioGetCslAccuracy(otInstance *aInstance) { ARG_UNUSED(aInstance); return radio_api->get_sch_acc(radio_dev); } #if defined(CONFIG_OPENTHREAD_PLATFORM_CSL_UNCERT) uint8_t otPlatRadioGetCslUncertainty(otInstance *aInstance) { ARG_UNUSED(aInstance); return CONFIG_OPENTHREAD_PLATFORM_CSL_UNCERT; } #endif #if defined(CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT) /** * Header IE format - IEEE Std. 802.15.4-2015, 7.4.2.1 && 7.4.2.2 * * +---------------------------------+----------------------+ * | Length | Element ID | Type=0 | Vendor OUI | * +-----------+------------+--------+----------------------+ * | Bytes: 0-1 | 2-4 | * +-----------+---------------------+----------------------+ * | Bits: 0-6 | 7-14 | 15 | IE_VENDOR_THREAD_OUI | * +-----------+------------+--------+----------------------| * * Thread v1.2.1 Spec., 4.11.3.4.4.6 * +---------------------------------+-------------------+------------------+ * | Vendor Specific Information | * +---------------------------------+-------------------+------------------+ * | 5 | 6 | 7 (optional) | * +---------------------------------+-------------------+------------------+ * | IE_VENDOR_THREAD_ACK_PROBING_ID | LINK_METRIC_TOKEN | LINK_METRIC_TOKEN| * |---------------------------------|-------------------|------------------| */ static void set_vendor_ie_header_lm(bool lqi, bool link_margin, bool rssi, uint8_t *ie_header) { /* Vendor-specific IE identifier */ const uint8_t ie_vendor_id = 0x00; /* Thread Vendor-specific ACK Probing IE subtype ID */ const uint8_t ie_vendor_thread_ack_probing_id = 0x00; /* Thread Vendor-specific IE OUI */ const uint32_t ie_vendor_thread_oui = 0xeab89b; /* Thread Vendor-specific ACK Probing IE RSSI value placeholder */ const uint8_t ie_vendor_thread_rssi_token = 0x01; /* Thread Vendor-specific ACK Probing IE Link margin value placeholder */ const uint8_t ie_vendor_thread_margin_token = 0x02; /* Thread Vendor-specific ACK Probing IE LQI value placeholder */ const uint8_t ie_vendor_thread_lqi_token = 0x03; const uint8_t oui_size = 3; const uint8_t sub_type = 1; const uint8_t id_offset = 7; const uint16_t id_mask = 0x00ff << id_offset; const uint8_t type = 0x00; const uint8_t type_offset = 7; const uint8_t type_mask = 0x01 << type_offset; const uint8_t length_mask = 0x7f; uint8_t content_len; uint16_t element_id = 0x0000; uint8_t link_metrics_idx = 6; uint8_t link_metrics_data_len = (uint8_t)lqi + (uint8_t)link_margin + (uint8_t)rssi; __ASSERT(link_metrics_data_len <= 2, "Thread limits to 2 metrics at most"); __ASSERT(ie_header, "Invalid argument"); if (link_metrics_data_len == 0) { ie_header[0] = 0; return; } /* Set Element ID */ element_id = (((uint16_t)ie_vendor_id) << id_offset) & id_mask; sys_put_le16(element_id, &ie_header[0]); /* Set Length - number of octets in content field. */ content_len = oui_size + sub_type + link_metrics_data_len; ie_header[0] = (ie_header[0] & ~length_mask) | (content_len & length_mask); /* Set Type */ ie_header[1] = (ie_header[1] & ~type_mask) | (type & type_mask); /* Set Vendor Oui */ sys_put_le24(ie_vendor_thread_oui, &ie_header[2]); /* Set SubType */ ie_header[5] = ie_vendor_thread_ack_probing_id; /* Set Link Metrics Tokens * TODO: Thread requires the order of requested metrics by the Link Metrics Initiator * to be kept by the Link Metrics Subject in the ACKs. */ if (lqi) { ie_header[link_metrics_idx++] = ie_vendor_thread_lqi_token; } if (link_margin) { ie_header[link_metrics_idx++] = ie_vendor_thread_margin_token; } if (rssi) { ie_header[link_metrics_idx++] = ie_vendor_thread_rssi_token; } } otError otPlatRadioConfigureEnhAckProbing(otInstance *aInstance, otLinkMetrics aLinkMetrics, const otShortAddress aShortAddress, const otExtAddress *aExtAddress) { struct ieee802154_config config = { .ack_ie.short_addr = aShortAddress, .ack_ie.ext_addr = aExtAddress->m8, }; uint8_t header_ie_buf[OT_ACK_IE_MAX_SIZE]; int result; ARG_UNUSED(aInstance); set_vendor_ie_header_lm(aLinkMetrics.mLqi, aLinkMetrics.mLinkMargin, aLinkMetrics.mRssi, header_ie_buf); config.ack_ie.header_ie = (struct ieee802154_header_ie *)header_ie_buf; result = radio_api->configure(radio_dev, IEEE802154_CONFIG_ENH_ACK_HEADER_IE, &config); return result ? OT_ERROR_FAILED : OT_ERROR_NONE; } #endif /* CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT */ otError otPlatRadioSetChannelMaxTransmitPower(otInstance *aInstance, uint8_t aChannel, int8_t aMaxPower) { ARG_UNUSED(aInstance); if (aChannel < OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN || aChannel > OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MAX) { return OT_ERROR_INVALID_ARGS; } max_tx_power_table[aChannel - OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN] = aMaxPower; if (aChannel == channel) { radio_api->set_txpower(radio_dev, get_transmit_power_for_channel(aChannel)); } return OT_ERROR_NONE; } ```
/content/code_sandbox/modules/openthread/platform/radio.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,620
```unknown config ZEPHYR_CMSIS_MODULE bool config HAS_CMSIS_CORE bool select HAS_CMSIS_CORE_A if CPU_AARCH32_CORTEX_A select HAS_CMSIS_CORE_R if CPU_AARCH32_CORTEX_R select HAS_CMSIS_CORE_M if CPU_CORTEX_M if HAS_CMSIS_CORE config HAS_CMSIS_CORE_A bool config HAS_CMSIS_CORE_R bool config HAS_CMSIS_CORE_M bool config CMSIS_M_CHECK_DEVICE_DEFINES bool "Check device defines" default n depends on HAS_CMSIS_CORE_M help This options enables the validation of CMSIS configuration flags. endif ```
/content/code_sandbox/modules/cmsis/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
149
```objective-c /* */ #ifndef ZEPHYR_MODULES_CMSIS_CMSIS_H_ #define ZEPHYR_MODULES_CMSIS_CMSIS_H_ #if defined(CONFIG_CPU_CORTEX_M) #include "cmsis_core_m.h" #elif defined(CONFIG_CPU_AARCH32_CORTEX_A) || defined(CONFIG_CPU_AARCH32_CORTEX_R) #include "cmsis_core_a_r.h" #endif #endif /* ZEPHYR_MODULES_CMSIS_CMSIS_H_ */ ```
/content/code_sandbox/modules/cmsis/cmsis_core.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```objective-c /* * */ /** * @file * @brief CMSIS interface file * * This header populates the default values required to configure the * ARM CMSIS Core headers. */ #ifndef ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_ #define ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_ #include <zephyr/arch/arm/cortex_m/nvic.h> #ifdef __cplusplus extern "C" { #endif /* Fill in CMSIS required values for non-CMSIS compliant SoCs. * Use __NVIC_PRIO_BITS as it is required and simple to check, but * ultimately all SoCs will define their own CMSIS types and constants. */ #ifndef __NVIC_PRIO_BITS typedef enum { Reset_IRQn = -15, NonMaskableInt_IRQn = -14, HardFault_IRQn = -13, #if defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE) MemoryManagement_IRQn = -12, BusFault_IRQn = -11, UsageFault_IRQn = -10, #if defined(CONFIG_ARM_SECURE_FIRMWARE) SecureFault_IRQn = -9, #endif /* CONFIG_ARM_SECURE_FIRMWARE */ #endif /* CONFIG_ARMV7_M_ARMV8_M_MAINLINE */ SVCall_IRQn = -5, DebugMonitor_IRQn = -4, PendSV_IRQn = -2, SysTick_IRQn = -1, Max_IRQn = CONFIG_NUM_IRQS, } IRQn_Type; #if defined(CONFIG_CPU_CORTEX_M0) #define __CM0_REV 0 #elif defined(CONFIG_CPU_CORTEX_M0PLUS) #define __CM0PLUS_REV 0 #elif defined(CONFIG_CPU_CORTEX_M1) #define __CM1_REV 0 #elif defined(CONFIG_CPU_CORTEX_M3) #define __CM3_REV 0 #elif defined(CONFIG_CPU_CORTEX_M4) #define __CM4_REV 0 #elif defined(CONFIG_CPU_CORTEX_M7) #define __CM7_REV 0 #elif defined(CONFIG_CPU_CORTEX_M23) #define __CM23_REV 0 #elif defined(CONFIG_CPU_CORTEX_M33) #define __CM33_REV 0 #elif defined(CONFIG_CPU_CORTEX_M55) #define __CM55_REV 0 #elif defined(CONFIG_CPU_CORTEX_M85) #define __CM85_REV 0 #else #error "Unknown Cortex-M device" #endif #define __NVIC_PRIO_BITS NUM_IRQ_PRIO_BITS #define __Vendor_SysTickConfig 0 /* Default to standard SysTick */ #endif /* __NVIC_PRIO_BITS */ #ifndef __MPU_PRESENT #define __MPU_PRESENT CONFIG_CPU_HAS_ARM_MPU #endif #ifndef __FPU_PRESENT #define __FPU_PRESENT CONFIG_CPU_HAS_FPU #endif #ifndef __FPU_DP #define __FPU_DP CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION #endif #ifndef __VTOR_PRESENT #define __VTOR_PRESENT CONFIG_CPU_CORTEX_M_HAS_VTOR #endif #ifndef __DSP_PRESENT #define __DSP_PRESENT CONFIG_ARMV8_M_DSP #endif #ifndef __ICACHE_PRESENT #define __ICACHE_PRESENT CONFIG_CPU_HAS_ICACHE #endif #ifndef __DCACHE_PRESENT #define __DCACHE_PRESENT CONFIG_CPU_HAS_DCACHE #endif #ifndef __MVE_PRESENT #define __MVE_PRESENT CONFIG_ARMV8_1_M_MVEI #endif #ifndef __SAUREGION_PRESENT #define __SAUREGION_PRESENT CONFIG_CPU_HAS_ARM_SAU #endif #ifndef __PMU_PRESENT #define __PMU_PRESENT CONFIG_ARMV8_1_M_PMU #define __PMU_NUM_EVENTCNT CONFIG_ARMV8_1_M_PMU_EVENTCNT #endif #ifdef __cplusplus } #endif #if defined(CONFIG_CPU_CORTEX_M0) #include <core_cm0.h> #elif defined(CONFIG_CPU_CORTEX_M0PLUS) #include <core_cm0plus.h> #elif defined(CONFIG_CPU_CORTEX_M1) #include <core_cm1.h> #elif defined(CONFIG_CPU_CORTEX_M3) #include <core_cm3.h> #elif defined(CONFIG_CPU_CORTEX_M4) #include <core_cm4.h> #elif defined(CONFIG_CPU_CORTEX_M7) #include <core_cm7.h> #elif defined(CONFIG_CPU_CORTEX_M23) #include <core_cm23.h> #elif defined(CONFIG_CPU_CORTEX_M33) #include <core_cm33.h> #elif defined(CONFIG_CPU_CORTEX_M55) #include <core_cm55.h> #elif defined(CONFIG_CPU_CORTEX_M85) #include <core_cm85.h> #else #error "Unknown Cortex-M device" #endif #endif /* ZEPHYR_MODULES_CMSIS_CMSIS_M_DEFAULTS_H_ */ ```
/content/code_sandbox/modules/cmsis/cmsis_core_m_defaults.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
995
```unknown menu "nrf-regtool options" depends on SOC_SERIES_NRF54HX config NRF_REGTOOL_GENERATE_UICR bool "Generate UICR" help Generate a UICR hex based on devicetree contents using nrf-regtool. CPU domains that require UICR allocation aren't bootable without it being programmed alongside the firmware. config NRF_REGTOOL_VERBOSITY int "Verbosity level of console output" range 0 3 default 0 help Level of verbose output that nrf-regtool will print to the console. 0. Only critical information and warnings. 1. Print a pretty, human-readable representation of a peripheral's configuration. This is recommended for inspecting register values. 2. Print extra details for debugging purposes, such as memory maps of the peripheral configurations, but in a less readable format. 3. Print even more details, which are typically only useful for nrf-regtool developers. config NRF_REGTOOL_EXTRA_GENERATE_ARGS string "Extra arguments to 'nrf-regtool generate'" help List of additional arguments to every nrf-regtool invocation used for generating hex files. Example value: "--fill all --fill-byte 0xff". Run "nrf-regtool generate -h" to see all of the available options. endmenu ```
/content/code_sandbox/modules/hal_nordic/Kconfig.nrf_regtool
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
300
```unknown config ZEPHYR_HAL_NORDIC_MODULE bool config HAS_NORDIC_DRIVERS bool menu "Nordic drivers" depends on HAS_NORDIC_DRIVERS choice NRF_802154_SOURCE prompt "Source of the IEEE 802.15.4 radio driver" config NRF_802154_SOURCE_HAL_NORDIC bool "Open source" endchoice menuconfig NRF_802154_RADIO_DRIVER bool "NRF IEEE 802.15.4 radio driver" depends on HAS_HW_NRF_RADIO_IEEE802154 select DYNAMIC_INTERRUPTS select ENTROPY_GENERATOR depends on !$(dt_nodelabel_enabled,timer1) help This option enables nRF IEEE 802.15.4 radio driver in Zephyr. Note, that beside the radio peripheral itself, this drivers occupies several other peripherals. A complete list can be found in the hal_nordic repository, within drivers/nrf_radio_802154/nrf_802154_peripherals.h file. As the nRF IEEE 802.15.4 radio driver defines IRQ configuration abstraction layer API and its Zephyr-specific implementation uses dynamic interrupts, the DYNAMIC_INTERRUPTS switch is selected unconditionally. if NRF_802154_RADIO_DRIVER config NRF_802154_MULTIPROTOCOL_SUPPORT bool help In dynamic multiprotocol applications, access to the radio peripheral must be distributed by an arbiter. To support this arbitration in the driver, this option must be enabled. Otherwise, the driver assumes that access to the radio peripheral is granted indefinitely. choice NRF_802154_SL_TYPE prompt "nRF IEEE 802.15.4 Service Layer Type" config NRF_802154_SL_OPENSOURCE bool "Open source" select SENSOR if NRF_802154_TEMPERATURE_UPDATE select TEMP_NRF5 if NRF_802154_TEMPERATURE_UPDATE endchoice config NRF_802154_TEMPERATURE_UPDATE bool "nRF 802.15.4 temperature update" default y if !SOC_NRF54H20 help Enable temperature update for nRF 802.15.4 driver config NRF_802154_TEMPERATURE_UPDATE_INIT_PRIO int "nRF52 IEEE 802.15.4 temperature update initialization priority" depends on NRF_802154_TEMPERATURE_UPDATE default 91 help Set the initialization priority of a temperature update for nRF 802.15.4 driver. config NRF_802154_TEMPERATURE_UPDATE_PERIOD int "nRF 802.15.4 temperature update period in milliseconds" depends on NRF_802154_TEMPERATURE_UPDATE default 60000 help Period of a temperature update for nRF 802.15.4 driver in milliseconds endif # NRF_802154_RADIO_DRIVER config NRF_802154_SERIALIZATION bool select IPC_SERVICE select MBOX help This helper symbol indicates that the nRF 802.15.4 serialization is available. config NRF_802154_SER_HOST bool "nRF IEEE 802.15.4 Driver serialization host" depends on !NRF_802154_RADIO_DRIVER depends on !HAS_HW_NRF_RADIO_IEEE802154 select IEEE802154_NRF5_EXT_IRQ_MGMT if IEEE802154_NRF5 select NRF_802154_SERIALIZATION help Enable serialization of nRF IEEE 802.15.4 Driver. This option is to be used if radio is not available in the core, but radio services are provided by a serialization backend. menuconfig NRF_802154_SER_RADIO bool "nRF IEEE 802.15.4 Driver serialization radio" depends on HAS_HW_NRF_RADIO_IEEE802154 depends on !IEEE802154_NRF5 select NRF_802154_RADIO_DRIVER select NRF_802154_SERIALIZATION help Enable serialization of nRF IEEE 802.15.4 Driver. This option is to be used if radio is available in the core to provide radio services over a serialization backend. if NRF_802154_SER_RADIO config NRF_802154_SER_RADIO_INIT_PRIO int "nRF52 IEEE 802.15.4 serialization initialization priority" default 51 help Set the initialization priority number. Do not mess with it unless you know what you are doing. endif menu "nRF 802.15.4 serialization" depends on NRF_802154_SER_HOST || NRF_802154_SER_RADIO config NRF_802154_SER_LOG bool "802.15.4 serialization logs" default n help This option enable debug logs of 802.15.4 serialization module. config NRF_802154_SER_DEFAULT_RESPONSE_TIMEOUT int "Default Spinel serialization response timeout in milliseconds" default 500 help This option specifies default timeout of spinel status response in milliseconds. endmenu # NRF_802154_SER_HOST || NRF_802154_SER_RADIO if NRF_802154_RADIO_DRIVER || NRF_802154_SERIALIZATION choice NRF_802154_CCA_MODE prompt "nRF IEEE 802.15.4 CCA mode" default NRF_802154_CCA_MODE_ED help CCA mode config NRF_802154_CCA_MODE_ED bool "Energy Above Threshold" config NRF_802154_CCA_MODE_CARRIER bool "Carrier Seen" config NRF_802154_CCA_MODE_CARRIER_AND_ED bool "Energy Above Threshold AND Carrier Seen" config NRF_802154_CCA_MODE_CARRIER_OR_ED bool "Energy Above Threshold OR Carrier Seen" endchoice config NRF_802154_CCA_ED_THRESHOLD int "nRF IEEE 802.15.4 CCA Energy Detection threshold" default 45 help If energy detected in a given channel is above the value then the channel is deemed busy. The unit is defined as per 802.15.4-2006 spec. config NRF_802154_CCA_CORR_THRESHOLD int "nRF IEEE 802.15.4 CCA Correlator threshold" default 45 config NRF_802154_CCA_CORR_LIMIT int "nRF IEEE 802.15.4 CCA Correlator limit" default 2 help Limit for occurrences above correlator threshold. When not equal to zero the correlator based signal detect is enabled. config NRF_802154_RX_BUFFERS int "nRF 802.15.4 receive buffers" default 16 help Number of buffers in nRF 802.15.4 driver serialization host's receive queue. If this value is modified, its remote counterpart must be set to the exact same value. config NRF_802154_PENDING_SHORT_ADDRESSES int "nRF 802.15.4 pending short addresses" default 16 help Number of slots containing short addresses of nodes for which pending data is stored config NRF_802154_PENDING_EXTENDED_ADDRESSES int "nRF 802.15.4 pending extended addresses" default 16 help Number of slots containing extended addresses of nodes for which pending data is stored config NRF_802154_ENCRYPTION bool "nRF 802.15.4 AES-CCM* authentication & encryption" depends on !CRYPTO_NRF_ECB config NRF_802154_SECURITY_KEY_STORAGE_SIZE int "nRF 802.15.4 security key storage size" default 3 help Number of encryption keys that the nRF 802.15.4 Radio Driver can store simultaneously. config NRF_802154_CARRIER_FUNCTIONS bool "nRF 802.15.4 carrier functions" default y if OPENTHREAD_DIAG help This option enables functions such as modulated carrier and continuous carrier. If this option is modified on a multicore SoC, its remote counterpart must be set to the exact same value. choice NRF_802154_ASSERT_CHOICE prompt "nRF 802.15.4 assert implementation" default NRF_802154_ASSERT_ZEPHYR_MINIMAL config NRF_802154_ASSERT_ZEPHYR_MINIMAL bool "nRF 802.15.4 minimal assertions" help This option provides minimal run-time checking of the nRF 802.15.4 Radio Driver's operation, even if kernel-wide CONFIG_ASSERT is disabled. In case of an abnormal condition the function `nrf_802154_assert_handler()` is called. File and line debug information are not provided to save memory of the image file. Default implementation of the `nrf_802154_assert_handler` involves a call to `k_panic`/`k_oops` and allows further tweaking of the behavior. You can also provide your own implementation of `nrf_802154_assert_handler`. config NRF_802154_ASSERT_ZEPHYR bool "nRF 802.15.4 Radio Driver assertions as Zephyr's standard __ASERT_NO_MSG" help The run-time checking of the nRF 802.15.4 Radio Driver depends fully on the configuration of the `__ASSERT_NO_MSG` macro, including the ability to completely turn off the run-time checking. endchoice # NRF_802154_ASSERT_CHOICE endif # NRF_802154_RADIO_DRIVER || NRF_802154_SERIALIZATION endmenu # HAS_NORDIC_DRIVERS rsource "nrfs/Kconfig" rsource "nrfx/Kconfig" rsource "Kconfig.nrf_regtool" ```
/content/code_sandbox/modules/hal_nordic/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,035
```objective-c /* * */ #ifndef NRFX_CONFIG_COMMON_H__ #define NRFX_CONFIG_COMMON_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** @brief Symbol specifying major version of the nrfx API to be used. */ #ifndef NRFX_CONFIG_API_VER_MAJOR #define NRFX_CONFIG_API_VER_MAJOR 3 #endif /** @brief Symbol specifying minor version of the nrfx API to be used. */ #ifndef NRFX_CONFIG_API_VER_MINOR #define NRFX_CONFIG_API_VER_MINOR 6 #endif /** @brief Symbol specifying micro version of the nrfx API to be used. */ #ifndef NRFX_CONFIG_API_VER_MICRO #define NRFX_CONFIG_API_VER_MICRO 0 #endif #endif /* NRFX_CONFIG_COMMON_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
169
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF54H20_PPR_H__ #define NRFX_CONFIG_NRF54H20_PPR_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 0 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000030 #endif /** * @brief NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000001e #endif /** * @brief NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000020 #endif /** * @brief NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000040 #endif /** * @brief NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000081 #endif /** * @brief NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000e1 #endif /** * @brief NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000df #endif /** * @brief NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000bf #endif /** * @brief NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000007e #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU130_ENABLED #define NRFX_EGU130_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0. Maximum: 15. */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_GPIOTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE130_ENABLED #define NRFX_GPIOTE130_ENABLED 0 #endif /** * @brief NRFX_GRTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_ENABLED #define NRFX_GRTC_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_SLEEP_ALLOWED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOEN * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOEN #define NRFX_GRTC_CONFIG_AUTOEN 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOSTART * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOSTART #define NRFX_GRTC_CONFIG_AUTOSTART 0 #endif /** * @brief NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS * * Integer value. */ #ifndef NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS 2 #endif /** * @brief NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK */ #ifndef NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK 0x000000c0 #endif /** * @brief NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GRTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_LOG_ENABLED #define NRFX_GRTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GRTC_CONFIG_LOG_LEVEL #define NRFX_GRTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_MVDMA_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA_ENABLED #define NRFX_MVDMA_ENABLED 0 #endif /** * @brief NRFX_MVDMA120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA120_ENABLED #define NRFX_MVDMA120_ENABLED 0 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0. Maximum: 5. */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_5_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_5_ENABLED #define NRFX_PRS_BOX_5_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_6_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_6_ENABLED #define NRFX_PRS_BOX_6_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_7_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_7_ENABLED #define NRFX_PRS_BOX_7_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_8_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_8_ENABLED #define NRFX_PRS_BOX_8_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_9_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_9_ENABLED #define NRFX_PRS_BOX_9_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM120_ENABLED #define NRFX_PWM120_ENABLED 0 #endif /** * @brief NRFX_PWM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM130_ENABLED #define NRFX_PWM130_ENABLED 0 #endif /** * @brief NRFX_PWM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM131_ENABLED #define NRFX_PWM131_ENABLED 0 #endif /** * @brief NRFX_PWM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM132_ENABLED #define NRFX_PWM132_ENABLED 0 #endif /** * @brief NRFX_PWM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM133_ENABLED #define NRFX_PWM133_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_QDEC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC130_ENABLED #define NRFX_QDEC130_ENABLED 0 #endif /** * @brief NRFX_QDEC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC131_ENABLED #define NRFX_QDEC131_ENABLED 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC130_ENABLED #define NRFX_RTC130_ENABLED 0 #endif /** * @brief NRFX_RTC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC131_ENABLED #define NRFX_RTC131_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM120_ENABLED #define NRFX_SPIM120_ENABLED 0 #endif /** * @brief NRFX_SPIM121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM121_ENABLED #define NRFX_SPIM121_ENABLED 0 #endif /** * @brief NRFX_SPIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM130_ENABLED #define NRFX_SPIM130_ENABLED 0 #endif /** * @brief NRFX_SPIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM131_ENABLED #define NRFX_SPIM131_ENABLED 0 #endif /** * @brief NRFX_SPIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM132_ENABLED #define NRFX_SPIM132_ENABLED 0 #endif /** * @brief NRFX_SPIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM133_ENABLED #define NRFX_SPIM133_ENABLED 0 #endif /** * @brief NRFX_SPIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM134_ENABLED #define NRFX_SPIM134_ENABLED 0 #endif /** * @brief NRFX_SPIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM135_ENABLED #define NRFX_SPIM135_ENABLED 0 #endif /** * @brief NRFX_SPIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM136_ENABLED #define NRFX_SPIM136_ENABLED 0 #endif /** * @brief NRFX_SPIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM137_ENABLED #define NRFX_SPIM137_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS120_ENABLED #define NRFX_SPIS120_ENABLED 0 #endif /** * @brief NRFX_SPIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS130_ENABLED #define NRFX_SPIS130_ENABLED 0 #endif /** * @brief NRFX_SPIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS131_ENABLED #define NRFX_SPIS131_ENABLED 0 #endif /** * @brief NRFX_SPIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS132_ENABLED #define NRFX_SPIS132_ENABLED 0 #endif /** * @brief NRFX_SPIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS133_ENABLED #define NRFX_SPIS133_ENABLED 0 #endif /** * @brief NRFX_SPIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS134_ENABLED #define NRFX_SPIS134_ENABLED 0 #endif /** * @brief NRFX_SPIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS135_ENABLED #define NRFX_SPIS135_ENABLED 0 #endif /** * @brief NRFX_SPIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS136_ENABLED #define NRFX_SPIS136_ENABLED 0 #endif /** * @brief NRFX_SPIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS137_ENABLED #define NRFX_SPIS137_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER120_ENABLED #define NRFX_TIMER120_ENABLED 0 #endif /** * @brief NRFX_TIMER121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER121_ENABLED #define NRFX_TIMER121_ENABLED 0 #endif /** * @brief NRFX_TIMER130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER130_ENABLED #define NRFX_TIMER130_ENABLED 0 #endif /** * @brief NRFX_TIMER131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER131_ENABLED #define NRFX_TIMER131_ENABLED 0 #endif /** * @brief NRFX_TIMER132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER132_ENABLED #define NRFX_TIMER132_ENABLED 0 #endif /** * @brief NRFX_TIMER133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER133_ENABLED #define NRFX_TIMER133_ENABLED 0 #endif /** * @brief NRFX_TIMER134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER134_ENABLED #define NRFX_TIMER134_ENABLED 0 #endif /** * @brief NRFX_TIMER135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER135_ENABLED #define NRFX_TIMER135_ENABLED 0 #endif /** * @brief NRFX_TIMER136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER136_ENABLED #define NRFX_TIMER136_ENABLED 0 #endif /** * @brief NRFX_TIMER137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER137_ENABLED #define NRFX_TIMER137_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM130_ENABLED #define NRFX_TWIM130_ENABLED 0 #endif /** * @brief NRFX_TWIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM131_ENABLED #define NRFX_TWIM131_ENABLED 0 #endif /** * @brief NRFX_TWIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM132_ENABLED #define NRFX_TWIM132_ENABLED 0 #endif /** * @brief NRFX_TWIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM133_ENABLED #define NRFX_TWIM133_ENABLED 0 #endif /** * @brief NRFX_TWIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM134_ENABLED #define NRFX_TWIM134_ENABLED 0 #endif /** * @brief NRFX_TWIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM135_ENABLED #define NRFX_TWIM135_ENABLED 0 #endif /** * @brief NRFX_TWIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM136_ENABLED #define NRFX_TWIM136_ENABLED 0 #endif /** * @brief NRFX_TWIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM137_ENABLED #define NRFX_TWIM137_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance * would be initialized only once. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS130_ENABLED #define NRFX_TWIS130_ENABLED 0 #endif /** * @brief NRFX_TWIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS131_ENABLED #define NRFX_TWIS131_ENABLED 0 #endif /** * @brief NRFX_TWIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS132_ENABLED #define NRFX_TWIS132_ENABLED 0 #endif /** * @brief NRFX_TWIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS133_ENABLED #define NRFX_TWIS133_ENABLED 0 #endif /** * @brief NRFX_TWIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS134_ENABLED #define NRFX_TWIS134_ENABLED 0 #endif /** * @brief NRFX_TWIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS135_ENABLED #define NRFX_TWIS135_ENABLED 0 #endif /** * @brief NRFX_TWIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS136_ENABLED #define NRFX_TWIS136_ENABLED 0 #endif /** * @brief NRFX_TWIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS137_ENABLED #define NRFX_TWIS137_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG - If enabled, support for * configuring GPIO pins is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG - If enabled, support for * configuring PSEL registers is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking * of TX transfers. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif /** * @brief NRFX_UARTE_CONFIG_RX_CACHE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_RX_CACHE_ENABLED #define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE120_ENABLED #define NRFX_UARTE120_ENABLED 0 #endif /** * @brief NRFX_UARTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE130_ENABLED #define NRFX_UARTE130_ENABLED 0 #endif /** * @brief NRFX_UARTE131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE131_ENABLED #define NRFX_UARTE131_ENABLED 0 #endif /** * @brief NRFX_UARTE132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE132_ENABLED #define NRFX_UARTE132_ENABLED 0 #endif /** * @brief NRFX_UARTE133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE133_ENABLED #define NRFX_UARTE133_ENABLED 0 #endif /** * @brief NRFX_UARTE134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE134_ENABLED #define NRFX_UARTE134_ENABLED 0 #endif /** * @brief NRFX_UARTE135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE135_ENABLED #define NRFX_UARTE135_ENABLED 0 #endif /** * @brief NRFX_UARTE136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE136_ENABLED #define NRFX_UARTE136_ENABLED 0 #endif /** * @brief NRFX_UARTE137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE137_ENABLED #define NRFX_UARTE137_ENABLED 0 #endif /** * @brief NRFX_VEVIF_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_VEVIF_ENABLED #define NRFX_VEVIF_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT131_ENABLED #define NRFX_WDT131_ENABLED 0 #endif /** * @brief NRFX_WDT132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT132_ENABLED #define NRFX_WDT132_ENABLED 0 #endif #endif /* NRFX_CONFIG_NRF54H20_PPR_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_ppr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,253
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF54L15_ENGA_APPLICATION_H__ #define NRFX_CONFIG_NRF54L15_ENGA_APPLICATION_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 0 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU10_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU10_ENABLED #define NRFX_EGU10_ENABLED 0 #endif /** * @brief NRFX_EGU20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU20_ENABLED #define NRFX_EGU20_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0. Maximum: 15. */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 2 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_GPIOTE20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE20_ENABLED #define NRFX_GPIOTE20_ENABLED 0 #endif /** * @brief NRFX_GPIOTE30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE30_ENABLED #define NRFX_GPIOTE30_ENABLED 0 #endif /** * @brief NRFX_GRTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_ENABLED #define NRFX_GRTC_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_SLEEP_ALLOWED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOEN * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOEN #define NRFX_GRTC_CONFIG_AUTOEN 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOSTART * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOSTART #define NRFX_GRTC_CONFIG_AUTOSTART 1 #endif /** * @brief NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS * * Integer value. */ #ifndef NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS 10 #endif /** * @brief NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK */ #ifndef NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK 0x00000fe7 #endif /** * @brief NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GRTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_LOG_ENABLED #define NRFX_GRTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GRTC_CONFIG_LOG_LEVEL #define NRFX_GRTC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_I2S20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_I2S20_ENABLED #define NRFX_I2S20_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0. Maximum: 5. */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_5_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_5_ENABLED #define NRFX_PRS_BOX_5_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM20_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM20_ENABLED #define NRFX_PWM20_ENABLED 0 #endif /** * @brief NRFX_PWM21_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM21_ENABLED #define NRFX_PWM21_ENABLED 0 #endif /** * @brief NRFX_PWM22_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM22_ENABLED #define NRFX_PWM22_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC20_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC20_ENABLED #define NRFX_QDEC20_ENABLED 0 #endif /** * @brief NRFX_QDEC21_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC21_ENABLED #define NRFX_QDEC21_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_QDEC20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC20_ENABLED #define NRFX_QDEC20_ENABLED 0 #endif /** * @brief NRFX_QDEC21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC21_ENABLED #define NRFX_QDEC21_ENABLED 0 #endif /** * @brief NRFX_RRAMC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RRAMC_ENABLED #define NRFX_RRAMC_ENABLED 0 #endif /** * @brief NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RRAMC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RRAMC_CONFIG_LOG_ENABLED #define NRFX_RRAMC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RRAMC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RRAMC_CONFIG_LOG_LEVEL #define NRFX_RRAMC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_RTC10_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC10_ENABLED #define NRFX_RTC10_ENABLED 0 #endif /** * @brief NRFX_RTC30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC30_ENABLED #define NRFX_RTC30_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_EXTENDED_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_EXTENDED_ENABLED #define NRFX_SPIM_EXTENDED_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_SPIM00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM00_ENABLED #define NRFX_SPIM00_ENABLED 0 #endif /** * @brief NRFX_SPIM20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM20_ENABLED #define NRFX_SPIM20_ENABLED 0 #endif /** * @brief NRFX_SPIM21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM21_ENABLED #define NRFX_SPIM21_ENABLED 0 #endif /** * @brief NRFX_SPIM22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM22_ENABLED #define NRFX_SPIM22_ENABLED 0 #endif /** * @brief NRFX_SPIM30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM30_ENABLED #define NRFX_SPIM30_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_SPIS00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS00_ENABLED #define NRFX_SPIS00_ENABLED 0 #endif /** * @brief NRFX_SPIS20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS20_ENABLED #define NRFX_SPIS20_ENABLED 0 #endif /** * @brief NRFX_SPIS21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS21_ENABLED #define NRFX_SPIS21_ENABLED 0 #endif /** * @brief NRFX_SPIS22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS22_ENABLED #define NRFX_SPIS22_ENABLED 0 #endif /** * @brief NRFX_SPIS30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS30_ENABLED #define NRFX_SPIS30_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TIMER00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER00_ENABLED #define NRFX_TIMER00_ENABLED 0 #endif /** * @brief NRFX_TIMER10_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER10_ENABLED #define NRFX_TIMER10_ENABLED 0 #endif /** * @brief NRFX_TIMER20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER20_ENABLED #define NRFX_TIMER20_ENABLED 0 #endif /** * @brief NRFX_TIMER21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER21_ENABLED #define NRFX_TIMER21_ENABLED 0 #endif /** * @brief NRFX_TIMER22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER22_ENABLED #define NRFX_TIMER22_ENABLED 0 #endif /** * @brief NRFX_TIMER23_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER23_ENABLED #define NRFX_TIMER23_ENABLED 0 #endif /** * @brief NRFX_TIMER24_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER24_ENABLED #define NRFX_TIMER24_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TWIM20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM20_ENABLED #define NRFX_TWIM20_ENABLED 0 #endif /** * @brief NRFX_TWIM21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM21_ENABLED #define NRFX_TWIM21_ENABLED 0 #endif /** * @brief NRFX_TWIM22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM22_ENABLED #define NRFX_TWIM22_ENABLED 0 #endif /** * @brief NRFX_TWIM30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM30_ENABLED #define NRFX_TWIM30_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY * Assume that any instance would be initialized only once. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TWIS20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS20_ENABLED #define NRFX_TWIS20_ENABLED 0 #endif /** * @brief NRFX_TWIS21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS21_ENABLED #define NRFX_TWIS21_ENABLED 0 #endif /** * @brief NRFX_TWIS22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS22_ENABLED #define NRFX_TWIS22_ENABLED 0 #endif /** * @brief NRFX_TWIS30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS30_ENABLED #define NRFX_TWIS30_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG * If enabled, support for configuring GPIO pins is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG * If enabled, support for configuring PSEL registers is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking of TX transfers. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_UARTE00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE00_ENABLED #define NRFX_UARTE00_ENABLED 0 #endif /** * @brief NRFX_UARTE20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE20_ENABLED #define NRFX_UARTE20_ENABLED 0 #endif /** * @brief NRFX_UARTE21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE21_ENABLED #define NRFX_UARTE21_ENABLED 0 #endif /** * @brief NRFX_UARTE22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE22_ENABLED #define NRFX_UARTE22_ENABLED 0 #endif /** * @brief NRFX_UARTE30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE30_ENABLED #define NRFX_UARTE30_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_WDT30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT30_ENABLED #define NRFX_WDT30_ENABLED 0 #endif /** * @brief NRFX_WDT31_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT31_ENABLED #define NRFX_WDT31_ENABLED 0 #endif #endif /* NRFX_CONFIG_NRF54L15_ENGA_APPLICATION_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54l15_enga_application.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,029
```objective-c /* * */ #ifndef NRFX_GLUE_H__ #define NRFX_GLUE_H__ #if defined(CONFIG_CPU_CORTEX_M) /* Workaround for missing __ICACHE_PRESENT and __DCACHE_PRESENT symbols in MDK * SoC definitions. To be removed when this is fixed. */ #include <cmsis_core_m_defaults.h> #endif #include <zephyr/sys/__assert.h> #include <zephyr/sys/atomic.h> #include <zephyr/irq.h> #ifdef __cplusplus extern "C" { #endif /** * @defgroup nrfx_glue nrfx_glue.h * @{ * @ingroup nrfx * * @brief This file contains macros that should be implemented according to * the needs of the host environment into which @em nrfx is integrated. */ //your_sha256_hash-------------- /** * @brief Macro for placing a runtime assertion. * * @param expression Expression to be evaluated. */ #ifndef NRFX_ASSERT #define NRFX_ASSERT(expression) __ASSERT_NO_MSG(expression) #endif #if defined(CONFIG_RISCV) /* included here due to dependency on NRFX_ASSERT definition */ #include <hal/nrf_vpr_clic.h> #endif /** * @brief Macro for placing a compile time assertion. * * @param expression Expression to be evaluated. */ #define NRFX_STATIC_ASSERT(expression) \ BUILD_ASSERT(expression, "assertion failed") //your_sha256_hash-------------- /** * @brief Macro for setting the priority of a specific IRQ. * * @param irq_number IRQ number. * @param priority Priority to be set. */ #define NRFX_IRQ_PRIORITY_SET(irq_number, priority) \ ARG_UNUSED(priority) \ /* Intentionally empty. Priorities of IRQs are set through IRQ_CONNECT. */ /** * @brief Macro for enabling a specific IRQ. * * @param irq_number IRQ number. */ #define NRFX_IRQ_ENABLE(irq_number) irq_enable(irq_number) /** * @brief Macro for checking if a specific IRQ is enabled. * * @param irq_number IRQ number. * * @retval true If the IRQ is enabled. * @retval false Otherwise. */ #define NRFX_IRQ_IS_ENABLED(irq_number) irq_is_enabled(irq_number) /** * @brief Macro for disabling a specific IRQ. * * @param irq_number IRQ number. */ #define NRFX_IRQ_DISABLE(irq_number) irq_disable(irq_number) /** * @brief Macro for setting a specific IRQ as pending. * * @param irq_number IRQ number. */ #if defined(CONFIG_RISCV) #define NRFX_IRQ_PENDING_SET(irq_number) nrf_vpr_clic_int_pending_set(NRF_VPRCLIC, irq_number) #else #define NRFX_IRQ_PENDING_SET(irq_number) NVIC_SetPendingIRQ(irq_number) #endif /** * @brief Macro for clearing the pending status of a specific IRQ. * * @param irq_number IRQ number. */ #if defined(CONFIG_RISCV) #define NRFX_IRQ_PENDING_CLEAR(irq_number) nrf_vpr_clic_int_pending_clear(NRF_VPRCLIC, irq_number) #else #define NRFX_IRQ_PENDING_CLEAR(irq_number) NVIC_ClearPendingIRQ(irq_number) #endif /** * @brief Macro for checking the pending status of a specific IRQ. * * @retval true If the IRQ is pending. * @retval false Otherwise. */ #if defined(CONFIG_RISCV) #define NRFX_IRQ_IS_PENDING(irq_number) nrf_vpr_clic_int_pending_check(NRF_VPRCLIC, irq_number) #else #define NRFX_IRQ_IS_PENDING(irq_number) (NVIC_GetPendingIRQ(irq_number) == 1) #endif /** @brief Macro for entering into a critical section. */ #define NRFX_CRITICAL_SECTION_ENTER() { unsigned int irq_lock_key = irq_lock(); /** @brief Macro for exiting from a critical section. */ #define NRFX_CRITICAL_SECTION_EXIT() irq_unlock(irq_lock_key); } //your_sha256_hash-------------- /** * @brief When set to a non-zero value, this macro specifies that * @ref nrfx_coredep_delay_us uses a precise DWT-based solution. * A compilation error is generated if the DWT unit is not present * in the SoC used. */ #define NRFX_DELAY_DWT_BASED 0 /** * @brief Macro for delaying the code execution for at least the specified time. * * @param us_time Number of microseconds to wait. */ #define NRFX_DELAY_US(us_time) nrfx_busy_wait(us_time) /* This is a k_busy_wait wrapper, added to avoid the inclusion of kernel.h */ void nrfx_busy_wait(uint32_t usec_to_wait); //your_sha256_hash-------------- /** @brief Atomic 32-bit unsigned type. */ #define nrfx_atomic_t atomic_t /** * @brief Macro for storing a value to an atomic object and returning its previous value. * * @param[in] p_data Atomic memory pointer. * @param[in] value Value to store. * * @return Previous value of the atomic object. */ #define NRFX_ATOMIC_FETCH_STORE(p_data, value) atomic_set(p_data, value) /** * @brief Macro for running a bitwise OR operation on an atomic object and returning its previous value. * * @param[in] p_data Atomic memory pointer. * @param[in] value Value of the second operand in the OR operation. * * @return Previous value of the atomic object. */ #define NRFX_ATOMIC_FETCH_OR(p_data, value) atomic_or(p_data, value) /** * @brief Macro for running a bitwise AND operation on an atomic object * and returning its previous value. * * @param[in] p_data Atomic memory pointer. * @param[in] value Value of the second operand in the AND operation. * * @return Previous value of the atomic object. */ #define NRFX_ATOMIC_FETCH_AND(p_data, value) atomic_and(p_data, value) /** * @brief Macro for running a bitwise XOR operation on an atomic object * and returning its previous value. * * @param[in] p_data Atomic memory pointer. * @param[in] value Value of the second operand in the XOR operation. * * @return Previous value of the atomic object. */ #define NRFX_ATOMIC_FETCH_XOR(p_data, value) atomic_xor(p_data, value) /** * @brief Macro for running an addition operation on an atomic object * and returning its previous value. * * @param[in] p_data Atomic memory pointer. * @param[in] value Value of the second operand in the ADD operation. * * @return Previous value of the atomic object. */ #define NRFX_ATOMIC_FETCH_ADD(p_data, value) atomic_add(p_data, value) /** * @brief Macro for running a subtraction operation on an atomic object * and returning its previous value. * * @param[in] p_data Atomic memory pointer. * @param[in] value Value of the second operand in the SUB operation. * * @return Previous value of the atomic object. */ #define NRFX_ATOMIC_FETCH_SUB(p_data, value) atomic_sub(p_data, value) /** * @brief Macro for running compare and swap on an atomic object. * * Value is updated to the new value only if it previously equaled old value. * * @param[in,out] p_data Atomic memory pointer. * @param[in] old_value Expected old value. * @param[in] new_value New value. * * @retval true If value was updated. * @retval false If value was not updated because location was not equal to @p old_value. */ #define NRFX_ATOMIC_CAS(p_data, old_value, new_value) \ atomic_cas(p_data, old_value, new_value) /** * @brief Macro for counting leading zeros. * * @param[in] value A word value. * * @return Number of leading 0-bits in @p value, starting at the most significant bit position. * If x is 0, the result is undefined. */ #define NRFX_CLZ(value) __builtin_clz(value) /** * @brief Macro for counting trailing zeros. * * @param[in] value A word value. * * @return Number of trailing 0-bits in @p value, starting at the least significant bit position. * If x is 0, the result is undefined. */ #define NRFX_CTZ(value) __builtin_ctz(value) //your_sha256_hash-------------- /** * @brief When set to a non-zero value, this macro specifies that the * @ref nrfx_error_codes and the @ref nrfx_err_t type itself are defined * in a customized way and the default definitions from @c <nrfx_error.h> * should not be used. */ #define NRFX_CUSTOM_ERROR_CODES 0 //your_sha256_hash-------------- /** * @brief When set to a non-zero value, this macro specifies that inside HALs * the event registers are read back after clearing, on devices that * otherwise could defer the actual register modification. */ #define NRFX_EVENT_READBACK_ENABLED 1 //your_sha256_hash-------------- /** * @brief Macro for writing back cache lines associated with the specified buffer. * * @param[in] p_buffer Pointer to the buffer. * @param[in] size Size of the buffer. */ #define NRFY_CACHE_WB(p_buffer, size) \ do { \ (void)p_buffer; \ (void)size; \ } while (0) /** * @brief Macro for invalidating cache lines associated with the specified buffer. * * @param[in] p_buffer Pointer to the buffer. * @param[in] size Size of the buffer. */ #define NRFY_CACHE_INV(p_buffer, size) \ do { \ (void)p_buffer; \ (void)size; \ } while (0) /** * @brief Macro for writing back and invalidating cache lines associated with * the specified buffer. * * @param[in] p_buffer Pointer to the buffer. * @param[in] size Size of the buffer. */ #define NRFY_CACHE_WBINV(p_buffer, size) \ do { \ (void)p_buffer; \ (void)size; \ } while (0) /*your_sha256_hash--------------*/ /** @brief Bitmask that defines DPPI channels that are reserved for use outside of the nrfx library. */ #define NRFX_DPPI_CHANNELS_USED (NRFX_PPI_CHANNELS_USED_BY_BT_CTLR | \ NRFX_PPI_CHANNELS_USED_BY_802154_DRV | \ NRFX_PPI_CHANNELS_USED_BY_MPSL) /** @brief Bitmask that defines DPPI groups that are reserved for use outside of the nrfx library. */ #define NRFX_DPPI_GROUPS_USED (NRFX_PPI_GROUPS_USED_BY_BT_CTLR | \ NRFX_PPI_GROUPS_USED_BY_802154_DRV | \ NRFX_PPI_GROUPS_USED_BY_MPSL) /** @brief Bitmask that defines PPI channels that are reserved for use outside of the nrfx library. */ #define NRFX_PPI_CHANNELS_USED (NRFX_PPI_CHANNELS_USED_BY_BT_CTLR | \ NRFX_PPI_CHANNELS_USED_BY_802154_DRV | \ NRFX_PPI_CHANNELS_USED_BY_MPSL) /** @brief Bitmask that defines PPI groups that are reserved for use outside of the nrfx library. */ #define NRFX_PPI_GROUPS_USED (NRFX_PPI_GROUPS_USED_BY_BT_CTLR | \ NRFX_PPI_GROUPS_USED_BY_802154_DRV | \ NRFX_PPI_GROUPS_USED_BY_MPSL) /** @brief Bitmask that defines GPIOTE130 channels reserved for use outside of the nrfx library. */ #define NRFX_GPIOTE130_CHANNELS_USED \ (~NRFX_CONFIG_MASK_DT(DT_NODELABEL(gpiote130), owned_channels) | \ NRFX_CONFIG_MASK_DT(DT_NODELABEL(gpiote130), child_owned_channels)) #if defined(CONFIG_BT_CTLR) /* * The enabled Bluetooth controller subsystem is responsible for providing * definitions of the BT_CTLR_USED_* symbols used below in a file named * bt_ctlr_used_resources.h and for adding its location to global include * paths so that the file can be included here for all Zephyr libraries that * are to be built. */ #include <bt_ctlr_used_resources.h> #define NRFX_PPI_CHANNELS_USED_BY_BT_CTLR BT_CTLR_USED_PPI_CHANNELS #define NRFX_PPI_GROUPS_USED_BY_BT_CTLR BT_CTLR_USED_PPI_GROUPS #else #define NRFX_PPI_CHANNELS_USED_BY_BT_CTLR 0 #define NRFX_PPI_GROUPS_USED_BY_BT_CTLR 0 #endif #if defined(CONFIG_NRF_802154_RADIO_DRIVER) #if defined(NRF52_SERIES) #include <../src/nrf_802154_peripherals_nrf52.h> #define NRFX_PPI_CHANNELS_USED_BY_802154_DRV NRF_802154_PPI_CHANNELS_USED_MASK #define NRFX_PPI_GROUPS_USED_BY_802154_DRV NRF_802154_PPI_GROUPS_USED_MASK #elif defined(NRF53_SERIES) #include <../src/nrf_802154_peripherals_nrf53.h> #define NRFX_PPI_CHANNELS_USED_BY_802154_DRV NRF_802154_DPPI_CHANNELS_USED_MASK #define NRFX_PPI_GROUPS_USED_BY_802154_DRV NRF_802154_DPPI_GROUPS_USED_MASK #elif defined(NRF54L_SERIES) #include <../src/nrf_802154_peripherals_nrf54l.h> #define NRFX_PPI_CHANNELS_USED_BY_802154_DRV NRF_802154_DPPI_CHANNELS_USED_MASK #define NRFX_PPI_GROUPS_USED_BY_802154_DRV NRF_802154_DPPI_GROUPS_USED_MASK #elif defined(NRF54H_SERIES) #include <../src/nrf_802154_peripherals_nrf54h.h> #define NRFX_PPI_CHANNELS_USED_BY_802154_DRV NRF_802154_DPPI_CHANNELS_USED_MASK #define NRFX_PPI_GROUPS_USED_BY_802154_DRV NRF_802154_DPPI_GROUPS_USED_MASK #else #error Unsupported chip family #endif #else // CONFIG_NRF_802154_RADIO_DRIVER #define NRFX_PPI_CHANNELS_USED_BY_802154_DRV 0 #define NRFX_PPI_GROUPS_USED_BY_802154_DRV 0 #endif // CONFIG_NRF_802154_RADIO_DRIVER #if defined(CONFIG_NRF_802154_RADIO_DRIVER) && !defined(CONFIG_NRF_802154_SL_OPENSOURCE) #include <mpsl.h> #define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS #define NRFX_PPI_GROUPS_USED_BY_MPSL 0 #else #define NRFX_PPI_CHANNELS_USED_BY_MPSL 0 #define NRFX_PPI_GROUPS_USED_BY_MPSL 0 #endif #if defined(NRF_802154_VERIFY_PERIPHS_ALLOC_AGAINST_MPSL) BUILD_ASSERT( (NRFX_PPI_CHANNELS_USED_BY_802154_DRV & NRFX_PPI_CHANNELS_USED_BY_MPSL) == 0, "PPI channels used by the IEEE802.15.4 radio driver overlap with those " "assigned to the MPSL."); BUILD_ASSERT( (NRFX_PPI_GROUPS_USED_BY_802154_DRV & NRFX_PPI_GROUPS_USED_BY_MPSL) == 0, "PPI groups used by the IEEE802.15.4 radio driver overlap with those " "assigned to the MPSL."); #endif // NRF_802154_VERIFY_PERIPHS_ALLOC_AGAINST_MPSL /** @brief Bitmask that defines EGU instances that are reserved for use outside of the nrfx library. */ #define NRFX_EGUS_USED 0 /** @brief Bitmask that defines TIMER instances that are reserved for use outside of the nrfx library. */ #define NRFX_TIMERS_USED 0 //your_sha256_hash-------------- /** * @brief Function helping to integrate nrfx IRQ handlers with IRQ_CONNECT. * * This function simply calls the nrfx IRQ handler supplied as the parameter. * It is intended to be used in the following way: * IRQ_CONNECT(IRQ_NUM, IRQ_PRI, nrfx_isr, nrfx_..._irq_handler, 0); * * @param[in] irq_handler Pointer to the nrfx IRQ handler to be called. */ void nrfx_isr(const void *irq_handler); #if defined(CONFIG_SOC_SERIES_BSIM_NRFXX) #include "nrfx_glue_bsim.h" #endif /** @} */ #ifdef __cplusplus } #endif #endif // NRFX_GLUE_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_glue.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,538
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52833_H__ #define NRFX_CONFIG_NRF52833_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_EGU2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU2_ENABLED #define NRFX_EGU2_ENABLED 0 #endif /** * @brief NRFX_EGU3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU3_ENABLED #define NRFX_EGU3_ENABLED 0 #endif /** * @brief NRFX_EGU4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU4_ENABLED #define NRFX_EGU4_ENABLED 0 #endif /** * @brief NRFX_EGU5_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU5_ENABLED #define NRFX_EGU5_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0 Maximum: 5 */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 4 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_PWM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM1_ENABLED #define NRFX_PWM1_ENABLED 0 #endif /** * @brief NRFX_PWM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM2_ENABLED #define NRFX_PWM2_ENABLED 0 #endif /** * @brief NRFX_PWM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM3_ENABLED #define NRFX_PWM3_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_RTC2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC2_ENABLED #define NRFX_RTC2_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI1_ENABLED #define NRFX_SPI1_ENABLED 0 #endif /** * @brief NRFX_SPI2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI2_ENABLED #define NRFX_SPI2_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM2_ENABLED #define NRFX_SPIM2_ENABLED 0 #endif /** * @brief NRFX_SPIM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM3_ENABLED #define NRFX_SPIM3_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SPIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS2_ENABLED #define NRFX_SPIS2_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TIMER3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER3_ENABLED #define NRFX_TIMER3_ENABLED 0 #endif /** * @brief NRFX_TIMER4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER4_ENABLED #define NRFX_TIMER4_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI1_ENABLED #define NRFX_TWI1_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM1_ENABLED #define NRFX_TWIM1_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_TWIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS1_ENABLED #define NRFX_TWIS1_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_UARTE1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE1_ENABLED #define NRFX_UARTE1_ENABLED 0 #endif /** * @brief NRFX_USBD_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_ENABLED #define NRFX_USBD_ENABLED 0 #endif /** * @brief NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 #endif /** * @brief NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no * data is ready. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_LOG_ENABLED #define NRFX_USBD_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_USBD_CONFIG_LOG_LEVEL #define NRFX_USBD_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52833_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52833.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,701
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52820_H__ #define NRFX_CONFIG_NRF52820_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_EGU2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU2_ENABLED #define NRFX_EGU2_ENABLED 0 #endif /** * @brief NRFX_EGU3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU3_ENABLED #define NRFX_EGU3_ENABLED 0 #endif /** * @brief NRFX_EGU4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU4_ENABLED #define NRFX_EGU4_ENABLED 0 #endif /** * @brief NRFX_EGU5_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU5_ENABLED #define NRFX_EGU5_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI1_ENABLED #define NRFX_SPI1_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TIMER3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER3_ENABLED #define NRFX_TIMER3_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI1_ENABLED #define NRFX_TWI1_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM1_ENABLED #define NRFX_TWIM1_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_TWIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS1_ENABLED #define NRFX_TWIS1_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_USBD_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_ENABLED #define NRFX_USBD_ENABLED 0 #endif /** * @brief NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 #endif /** * @brief NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when * no data is ready. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_LOG_ENABLED #define NRFX_USBD_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_USBD_CONFIG_LOG_LEVEL #define NRFX_USBD_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52820_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52820.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,739
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF5340_APPLICATION_H__ #define NRFX_CONFIG_NRF5340_APPLICATION_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif #define NRF_CLOCK NRF_PERIPH(NRF_CLOCK) #define NRF_COMP NRF_PERIPH(NRF_COMP) #define NRF_CTRLAP NRF_PERIPH(NRF_CTRLAP) #define NRF_DCNF NRF_PERIPH(NRF_DCNF) #define NRF_DPPIC NRF_PERIPH(NRF_DPPIC) #define NRF_EGU0 NRF_PERIPH(NRF_EGU0) #define NRF_EGU1 NRF_PERIPH(NRF_EGU1) #define NRF_EGU2 NRF_PERIPH(NRF_EGU2) #define NRF_EGU3 NRF_PERIPH(NRF_EGU3) #define NRF_EGU4 NRF_PERIPH(NRF_EGU4) #define NRF_EGU5 NRF_PERIPH(NRF_EGU5) #define NRF_FPU NRF_PERIPH(NRF_FPU) #define NRF_I2S0 NRF_PERIPH(NRF_I2S0) #define NRF_IPC NRF_PERIPH(NRF_IPC) #define NRF_KMU NRF_PERIPH(NRF_KMU) #define NRF_LPCOMP NRF_PERIPH(NRF_LPCOMP) #define NRF_MUTEX NRF_PERIPH(NRF_MUTEX) #define NRF_NFCT NRF_PERIPH(NRF_NFCT) #define NRF_NVMC NRF_PERIPH(NRF_NVMC) #define NRF_OSCILLATORS NRF_PERIPH(NRF_OSCILLATORS) #define NRF_P0 NRF_PERIPH(NRF_P0) #define NRF_P1 NRF_PERIPH(NRF_P1) #define NRF_PDM0 NRF_PERIPH(NRF_PDM0) #define NRF_POWER NRF_PERIPH(NRF_POWER) #define NRF_PWM0 NRF_PERIPH(NRF_PWM0) #define NRF_PWM1 NRF_PERIPH(NRF_PWM1) #define NRF_PWM2 NRF_PERIPH(NRF_PWM2) #define NRF_PWM3 NRF_PERIPH(NRF_PWM3) #define NRF_QDEC0 NRF_PERIPH(NRF_QDEC0) #define NRF_QDEC1 NRF_PERIPH(NRF_QDEC1) #define NRF_QSPI NRF_PERIPH(NRF_QSPI) #define NRF_REGULATORS NRF_PERIPH(NRF_REGULATORS) #define NRF_RESET NRF_PERIPH(NRF_RESET) #define NRF_RTC0 NRF_PERIPH(NRF_RTC0) #define NRF_RTC1 NRF_PERIPH(NRF_RTC1) #define NRF_SAADC NRF_PERIPH(NRF_SAADC) #define NRF_SPIM0 NRF_PERIPH(NRF_SPIM0) #define NRF_SPIM1 NRF_PERIPH(NRF_SPIM1) #define NRF_SPIM2 NRF_PERIPH(NRF_SPIM2) #define NRF_SPIM3 NRF_PERIPH(NRF_SPIM3) #define NRF_SPIM4 NRF_PERIPH(NRF_SPIM4) #define NRF_SPIS0 NRF_PERIPH(NRF_SPIS0) #define NRF_SPIS1 NRF_PERIPH(NRF_SPIS1) #define NRF_SPIS2 NRF_PERIPH(NRF_SPIS2) #define NRF_SPIS3 NRF_PERIPH(NRF_SPIS3) #define NRF_TIMER0 NRF_PERIPH(NRF_TIMER0) #define NRF_TIMER1 NRF_PERIPH(NRF_TIMER1) #define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) #define NRF_TWIM0 NRF_PERIPH(NRF_TWIM0) #define NRF_TWIM1 NRF_PERIPH(NRF_TWIM1) #define NRF_TWIM2 NRF_PERIPH(NRF_TWIM2) #define NRF_TWIM3 NRF_PERIPH(NRF_TWIM3) #define NRF_TWIS0 NRF_PERIPH(NRF_TWIS0) #define NRF_TWIS1 NRF_PERIPH(NRF_TWIS1) #define NRF_TWIS2 NRF_PERIPH(NRF_TWIS2) #define NRF_TWIS3 NRF_PERIPH(NRF_TWIS3) #define NRF_UARTE0 NRF_PERIPH(NRF_UARTE0) #define NRF_UARTE1 NRF_PERIPH(NRF_UARTE1) #define NRF_UARTE2 NRF_PERIPH(NRF_UARTE2) #define NRF_UARTE3 NRF_PERIPH(NRF_UARTE3) #define NRF_USBD NRF_PERIPH(NRF_USBD) #define NRF_USBREGULATOR NRF_PERIPH(NRF_USBREGULATOR) #define NRF_VMC NRF_PERIPH(NRF_VMC) #define NRF_WDT0 NRF_PERIPH(NRF_WDT0) #define NRF_WDT1 NRF_PERIPH(NRF_WDT1) /* * The following section provides the name translation for peripherals with * only one type of access available. For these peripherals, you cannot choose * between secure and non-secure mapping. */ #if defined(NRF_TRUSTZONE_NONSECURE) #define NRF_GPIOTE NRF_GPIOTE1 #define NRF_GPIOTE1 NRF_GPIOTE1_NS #else #define NRF_CACHE NRF_CACHE_S #define NRF_CACHEINFO NRF_CACHEINFO_S #define NRF_CACHEDATA NRF_CACHEDATA_S #define NRF_CRYPTOCELL NRF_CRYPTOCELL_S #define NRF_CTI NRF_CTI_S #define NRF_FICR NRF_FICR_S #define NRF_GPIOTE NRF_GPIOTE0 #define NRF_GPIOTE0 NRF_GPIOTE0_S #define NRF_GPIOTE1 NRF_GPIOTE1_NS #define NRF_SPU NRF_SPU_S #define NRF_TAD NRF_TAD_S #define NRF_UICR NRF_UICR_S #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_HFCLK192M_SRC * * Integer value. * Supported values: * - HFINT = 0 * - HFXO = 1 */ #ifndef NRFX_CLOCK_CONFIG_HFCLK192M_SRC #define NRFX_CLOCK_CONFIG_HFCLK192M_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 1 * - XTAL = 2 * - Synth = 3 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 2 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_EGU2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU2_ENABLED #define NRFX_EGU2_ENABLED 0 #endif /** * @brief NRFX_EGU3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU3_ENABLED #define NRFX_EGU3_ENABLED 0 #endif /** * @brief NRFX_EGU4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU4_ENABLED #define NRFX_EGU4_ENABLED 0 #endif /** * @brief NRFX_EGU5_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU5_ENABLED #define NRFX_EGU5_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_I2S0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S0_ENABLED #define NRFX_I2S0_ENABLED 0 #endif /** * @brief NRFX_IPC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_IPC_ENABLED #define NRFX_IPC_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0 Maximum: 5 */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 2 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_PWM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM1_ENABLED #define NRFX_PWM1_ENABLED 0 #endif /** * @brief NRFX_PWM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM2_ENABLED #define NRFX_PWM2_ENABLED 0 #endif /** * @brief NRFX_PWM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM3_ENABLED #define NRFX_PWM3_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_QDEC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC0_ENABLED #define NRFX_QDEC0_ENABLED 0 #endif /** * @brief NRFX_QDEC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC1_ENABLED #define NRFX_QDEC1_ENABLED 0 #endif /** * @brief NRFX_QSPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QSPI_ENABLED #define NRFX_QSPI_ENABLED 0 #endif /** * @brief NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIM4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM4_ENABLED #define NRFX_SPIM4_ENABLED 0 #endif /** * @brief NRFX_SPIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM2_ENABLED #define NRFX_SPIM2_ENABLED 0 #endif /** * @brief NRFX_SPIM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM3_ENABLED #define NRFX_SPIM3_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SPIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS2_ENABLED #define NRFX_SPIS2_ENABLED 0 #endif /** * @brief NRFX_SPIS3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS3_ENABLED #define NRFX_SPIS3_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM1_ENABLED #define NRFX_TWIM1_ENABLED 0 #endif /** * @brief NRFX_TWIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM2_ENABLED #define NRFX_TWIM2_ENABLED 0 #endif /** * @brief NRFX_TWIM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM3_ENABLED #define NRFX_TWIM3_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_TWIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS1_ENABLED #define NRFX_TWIS1_ENABLED 0 #endif /** * @brief NRFX_TWIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS2_ENABLED #define NRFX_TWIS2_ENABLED 0 #endif /** * @brief NRFX_TWIS3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS3_ENABLED #define NRFX_TWIS3_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_UARTE1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE1_ENABLED #define NRFX_UARTE1_ENABLED 0 #endif /** * @brief NRFX_UARTE2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE2_ENABLED #define NRFX_UARTE2_ENABLED 0 #endif /** * @brief NRFX_UARTE3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE3_ENABLED #define NRFX_UARTE3_ENABLED 0 #endif /** * @brief NRFX_USBD_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_ENABLED #define NRFX_USBD_ENABLED 0 #endif /** * @brief NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 #endif /** * @brief NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no * data is ready. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_LOG_ENABLED #define NRFX_USBD_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_USBD_CONFIG_LOG_LEVEL #define NRFX_USBD_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_USBREG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBREG_ENABLED #define NRFX_USBREG_ENABLED 0 #endif /** * @brief NRFX_USBREG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_USBREG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_USBREG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT0_ENABLED #define NRFX_WDT0_ENABLED 0 #endif /** * @brief NRFX_WDT1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT1_ENABLED #define NRFX_WDT1_ENABLED 0 #endif #endif // NRFX_CONFIG_NRF5340_APPLICATION_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf5340_application.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,197
```objective-c /* * */ #ifndef NRFX_CONFIG_H__ #define NRFX_CONFIG_H__ #include <zephyr/devicetree.h> #include <zephyr/sys/util_macro.h> /* * These are mappings of Kconfig options enabling nrfx drivers and particular * peripheral instances to the corresponding symbols used inside of nrfx. * Please note that only subsets of these entries are used for particular SoCs * supported by nrfx (see the corresponding nrfx_config_*.h files). */ #ifdef CONFIG_NRFX_ADC #define NRFX_ADC_ENABLED 1 #endif #ifdef CONFIG_NRFX_ADC_LOG #define NRFX_ADC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_CLOCK #define NRFX_CLOCK_ENABLED 1 #endif #ifdef CONFIG_NRFX_CLOCK_LOG #define NRFX_CLOCK_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC #if defined(CONFIG_SOC_SERIES_NRF91X) || defined(CONFIG_SOC_COMPATIBLE_NRF53X) #define NRFX_CLOCK_CONFIG_LF_SRC 1 #else #define NRFX_CLOCK_CONFIG_LF_SRC 0 #endif #endif // CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC #ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL #if defined(CONFIG_SOC_SERIES_NRF91X) || defined(CONFIG_SOC_COMPATIBLE_NRF53X) #define NRFX_CLOCK_CONFIG_LF_SRC 2 #else #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif #endif // CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL #ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH #ifdef CONFIG_SOC_COMPATIBLE_NRF53X #define NRFX_CLOCK_CONFIG_LF_SRC 3 #else #define NRFX_CLOCK_CONFIG_LF_SRC 2 #endif #endif // CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH #ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_EXT_LOW_SWING #define NRFX_CLOCK_CONFIG_LF_SRC 131073 #endif #ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_EXT_FULL_SWING #define NRFX_CLOCK_CONFIG_LF_SRC 196609 #endif #ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 1 #endif #ifdef CONFIG_NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 1 #endif #ifdef CONFIG_NRFX_COMP #define NRFX_COMP_ENABLED 1 #endif #ifdef CONFIG_NRFX_COMP_LOG #define NRFX_COMP_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_DPPI #define NRFX_DPPI_ENABLED 1 #endif #ifdef CONFIG_NRFX_DPPI_LOG #define NRFX_DPPI_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU #define NRFX_EGU_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU_LOG #define NRFX_EGU_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU0 #define NRFX_EGU0_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU1 #define NRFX_EGU1_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU2 #define NRFX_EGU2_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU3 #define NRFX_EGU3_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU4 #define NRFX_EGU4_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU5 #define NRFX_EGU5_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU10 #define NRFX_EGU10_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU20 #define NRFX_EGU20_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU020 #define NRFX_EGU020_ENABLED 1 #endif #ifdef CONFIG_NRFX_EGU130 #define NRFX_EGU130_ENABLED 1 #endif #ifdef CONFIG_NRFX_GRTC #define NRFX_GRTC_ENABLED 1 #endif #ifdef CONFIG_NRFX_GRTC_LOG #define NRFX_GRTC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRF_GRTC_TIMER_CLOCK_MANAGEMENT #define NRF_GRTC_HAS_EXTENDED 1 #endif #ifdef CONFIG_NRF_GRTC_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 1 #endif #ifdef CONFIG_NRF_GRTC_TIMER_AUTO_KEEP_ALIVE #define NRFX_GRTC_CONFIG_AUTOEN 1 #endif #ifdef CONFIG_NRF_GRTC_START_SYSCOUNTER #define NRFX_GRTC_CONFIG_AUTOSTART 1 #endif #ifdef CONFIG_NRFX_GPIOTE #define NRFX_GPIOTE_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE0 #define NRFX_GPIOTE0_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE1 #define NRFX_GPIOTE1_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE20 #define NRFX_GPIOTE20_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE30 #define NRFX_GPIOTE30_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE130 #define NRFX_GPIOTE130_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE131 #define NRFX_GPIOTE131_ENABLED 1 #endif #ifdef CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS #endif #ifdef CONFIG_NRFX_I2S #define NRFX_I2S_ENABLED 1 #endif #ifdef CONFIG_NRFX_I2S_LOG #define NRFX_I2S_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_I2S0 #define NRFX_I2S0_ENABLED 1 #endif #ifdef CONFIG_NRFX_I2S20 #define NRFX_I2S20_ENABLED 1 #endif #ifdef CONFIG_NRFX_IPC #define NRFX_IPC_ENABLED 1 #endif #ifdef CONFIG_NRFX_IPC_LOG #define NRFX_IPC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_LPCOMP #define NRFX_LPCOMP_ENABLED 1 #endif #ifdef CONFIG_NRFX_LPCOMP_LOG #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_NFCT #define NRFX_NFCT_ENABLED 1 #endif #ifdef CONFIG_NRFX_NFCT_LOG #define NRFX_NFCT_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_NVMC #define NRFX_NVMC_ENABLED 1 #endif #ifdef CONFIG_NRFX_NVMC_LOG #define NRFX_NVMC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_PDM #define NRFX_PDM_ENABLED 1 #endif #ifdef CONFIG_NRFX_PDM_LOG #define NRFX_PDM_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_POWER #define NRFX_POWER_ENABLED 1 #endif #ifdef CONFIG_NRFX_POWER_LOG #define NRFX_POWER_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_PPI #define NRFX_PPI_ENABLED 1 #endif #ifdef CONFIG_NRFX_PPI_LOG #define NRFX_PPI_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS #define NRFX_PRS_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS_LOG #define NRFX_PRS_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS_BOX_0 #define NRFX_PRS_BOX_0_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS_BOX_1 #define NRFX_PRS_BOX_1_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS_BOX_2 #define NRFX_PRS_BOX_2_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS_BOX_3 #define NRFX_PRS_BOX_3_ENABLED 1 #endif #ifdef CONFIG_NRFX_PRS_BOX_4 #define NRFX_PRS_BOX_4_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM #define NRFX_PWM_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM_LOG #define NRFX_PWM_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM0 #define NRFX_PWM0_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM1 #define NRFX_PWM1_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM2 #define NRFX_PWM2_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM3 #define NRFX_PWM3_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM20 #define NRFX_PWM20_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM21 #define NRFX_PWM21_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM22 #define NRFX_PWM22_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM120 #define NRFX_PWM120_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM130 #define NRFX_PWM130_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM131 #define NRFX_PWM131_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM132 #define NRFX_PWM132_ENABLED 1 #endif #ifdef CONFIG_NRFX_PWM133 #define NRFX_PWM133_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC #define NRFX_QDEC_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC_LOG #define NRFX_QDEC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC0 #define NRFX_QDEC0_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC1 #define NRFX_QDEC1_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC20 #define NRFX_QDEC20_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC21 #define NRFX_QDEC21_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC130 #define NRFX_QDEC130_ENABLED 1 #endif #ifdef CONFIG_NRFX_QDEC131 #define NRFX_QDEC131_ENABLED 1 #endif #ifdef CONFIG_NRFX_QSPI #define NRFX_QSPI_ENABLED 1 #endif #ifdef CONFIG_NRFX_QSPI_LOG #define NRFX_QSPI_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_RNG #define NRFX_RNG_ENABLED 1 #endif #ifdef CONFIG_NRFX_RNG_LOG #define NRFX_RNG_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_RRAMC #define NRFX_RRAMC_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC #define NRFX_RTC_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC_LOG #define NRFX_RTC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC0 #define NRFX_RTC0_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC1 #define NRFX_RTC1_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC2 #define NRFX_RTC2_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC130 #define NRFX_RTC130_ENABLED 1 #endif #ifdef CONFIG_NRFX_RTC131 #define NRFX_RTC131_ENABLED 1 #endif #ifdef CONFIG_NRFX_SAADC #define NRFX_SAADC_ENABLED 1 #endif #ifdef CONFIG_NRFX_SAADC_LOG #define NRFX_SAADC_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPI #define NRFX_SPI_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPI_LOG #define NRFX_SPI_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPI0 #define NRFX_SPI0_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPI1 #define NRFX_SPI1_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPI2 #define NRFX_SPI2_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM #define NRFX_SPIM_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM_LOG #define NRFX_SPIM_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM0 #define NRFX_SPIM0_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM1 #define NRFX_SPIM1_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM2 #define NRFX_SPIM2_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM3 #define NRFX_SPIM3_ENABLED 1 #ifdef CONFIG_NRF52_ANOMALY_198_WORKAROUND #define NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED 1 #endif #endif #ifdef CONFIG_NRFX_SPIM4 #define NRFX_SPIM4_ENABLED 1 #endif #define NRFX_SPIM_DT_HAS_RX_DELAY(node) DT_PROP(node, rx_delay_supported) + #if DT_FOREACH_STATUS_OKAY(nordic_nrf_spim, NRFX_SPIM_DT_HAS_RX_DELAY) 0 #define NRFX_SPIM_EXTENDED_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM00 #define NRFX_SPIM00_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM20 #define NRFX_SPIM20_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM21 #define NRFX_SPIM21_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM22 #define NRFX_SPIM22_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM30 #define NRFX_SPIM30_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM120 #define NRFX_SPIM120_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM121 #define NRFX_SPIM121_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM130 #define NRFX_SPIM130_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM131 #define NRFX_SPIM131_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM132 #define NRFX_SPIM132_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM133 #define NRFX_SPIM133_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM134 #define NRFX_SPIM134_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM135 #define NRFX_SPIM135_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM136 #define NRFX_SPIM136_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIM137 #define NRFX_SPIM137_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS #define NRFX_SPIS_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS_LOG #define NRFX_SPIS_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS0 #define NRFX_SPIS0_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS1 #define NRFX_SPIS1_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS2 #define NRFX_SPIS2_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS3 #define NRFX_SPIS3_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS00 #define NRFX_SPIS00_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS20 #define NRFX_SPIS20_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS21 #define NRFX_SPIS21_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS22 #define NRFX_SPIS22_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS30 #define NRFX_SPIS30_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS120 #define NRFX_SPIS120_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS130 #define NRFX_SPIS130_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS131 #define NRFX_SPIS131_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS132 #define NRFX_SPIS132_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS133 #define NRFX_SPIS133_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS134 #define NRFX_SPIS134_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS135 #define NRFX_SPIS135_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS136 #define NRFX_SPIS136_ENABLED 1 #endif #ifdef CONFIG_NRFX_SPIS137 #define NRFX_SPIS137_ENABLED 1 #endif #ifdef CONFIG_NRFX_SYSTICK #define NRFX_SYSTICK_ENABLED 1 #endif #ifdef CONFIG_NRFX_SYSTICK_LOG #define NRFX_SYSTICK_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_TEMP #define NRFX_TEMP_ENABLED 1 #endif #ifdef CONFIG_NRFX_TEMP_LOG #define NRFX_TEMP_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER #define NRFX_TIMER_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER_LOG #define NRFX_TIMER_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER0 #define NRFX_TIMER0_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER1 #define NRFX_TIMER1_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER2 #define NRFX_TIMER2_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER3 #define NRFX_TIMER3_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER4 #define NRFX_TIMER4_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER00 #define NRFX_TIMER00_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER10 #define NRFX_TIMER10_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER20 #define NRFX_TIMER20_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER21 #define NRFX_TIMER21_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER22 #define NRFX_TIMER22_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER23 #define NRFX_TIMER23_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER24 #define NRFX_TIMER24_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER020 #define NRFX_TIMER020_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER021 #define NRFX_TIMER021_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER022 #define NRFX_TIMER022_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER120 #define NRFX_TIMER120_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER121 #define NRFX_TIMER121_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER130 #define NRFX_TIMER130_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER131 #define NRFX_TIMER131_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER132 #define NRFX_TIMER132_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER133 #define NRFX_TIMER133_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER134 #define NRFX_TIMER134_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER135 #define NRFX_TIMER135_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER136 #define NRFX_TIMER136_ENABLED 1 #endif #ifdef CONFIG_NRFX_TIMER137 #define NRFX_TIMER137_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWI #define NRFX_TWI_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWI_LOG #define NRFX_TWI_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWI0 #define NRFX_TWI0_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWI1 #define NRFX_TWI1_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM #define NRFX_TWIM_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM_LOG #define NRFX_TWIM_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM0 #define NRFX_TWIM0_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM1 #define NRFX_TWIM1_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM2 #define NRFX_TWIM2_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM3 #define NRFX_TWIM3_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM20 #define NRFX_TWIM20_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM21 #define NRFX_TWIM21_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM22 #define NRFX_TWIM22_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM30 #define NRFX_TWIM30_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM120 #define NRFX_TWIM120_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM130 #define NRFX_TWIM130_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM131 #define NRFX_TWIM131_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM132 #define NRFX_TWIM132_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM133 #define NRFX_TWIM133_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM134 #define NRFX_TWIM134_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM135 #define NRFX_TWIM135_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM136 #define NRFX_TWIM136_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIM137 #define NRFX_TWIM137_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS #define NRFX_TWIS_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS_LOG #define NRFX_TWIS_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS0 #define NRFX_TWIS0_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS1 #define NRFX_TWIS1_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS2 #define NRFX_TWIS2_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS3 #define NRFX_TWIS3_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS20 #define NRFX_TWIS20_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS21 #define NRFX_TWIS21_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS22 #define NRFX_TWIS22_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS30 #define NRFX_TWIS30_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS130 #define NRFX_TWIS130_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS131 #define NRFX_TWIS131_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS132 #define NRFX_TWIS132_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS133 #define NRFX_TWIS133_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS134 #define NRFX_TWIS134_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS135 #define NRFX_TWIS135_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS136 #define NRFX_TWIS136_ENABLED 1 #endif #ifdef CONFIG_NRFX_TWIS137 #define NRFX_TWIS137_ENABLED 1 #endif #ifdef CONFIG_NRFX_UART #define NRFX_UART_ENABLED 1 #endif #ifdef CONFIG_NRFX_UART_LOG #define NRFX_UART_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_UART0 #define NRFX_UART0_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE #define NRFX_UARTE_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE_LOG #define NRFX_UARTE_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE0 #define NRFX_UARTE0_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE1 #define NRFX_UARTE1_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE2 #define NRFX_UARTE2_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE3 #define NRFX_UARTE3_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE00 #define NRFX_UARTE00_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE20 #define NRFX_UARTE20_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE21 #define NRFX_UARTE21_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE22 #define NRFX_UARTE22_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE30 #define NRFX_UARTE30_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE120 #define NRFX_UARTE120_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE130 #define NRFX_UARTE130_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE131 #define NRFX_UARTE131_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE132 #define NRFX_UARTE132_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE133 #define NRFX_UARTE133_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE134 #define NRFX_UARTE134_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE135 #define NRFX_UARTE135_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE136 #define NRFX_UARTE136_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE137 #define NRFX_UARTE137_ENABLED 1 #endif #ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 1 #endif #ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 1 #endif #ifdef CONFIG_NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif #ifdef CONFIG_NRFX_UARTE_CONFIG_RX_CACHE_ENABLED #define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1 #endif #ifdef CONFIG_NRFX_USBREG #define NRFX_USBREG_ENABLED 1 #endif #ifdef CONFIG_NRFX_USBREG_LOG #define NRFX_USBREG_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT #define NRFX_WDT_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT_LOG #define NRFX_WDT_CONFIG_LOG_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT0 #define NRFX_WDT0_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT1 #define NRFX_WDT1_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT30 #define NRFX_WDT30_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT31 #define NRFX_WDT31_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT010 #define NRFX_WDT010_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT011 #define NRFX_WDT011_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT130 #define NRFX_WDT130_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT131 #define NRFX_WDT131_ENABLED 1 #endif #ifdef CONFIG_NRFX_WDT132 #define NRFX_WDT132_ENABLED 1 #endif #ifdef CONFIG_NRF52_ANOMALY_109_WORKAROUND #define NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1 #define NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1 #define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1 #define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 1 #define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE \ CONFIG_NRF52_ANOMALY_109_WORKAROUND_EGU_INSTANCE #endif #if defined(CONFIG_SOC_SERIES_BSIM_NRFXX) #include "nrfx_config_bsim.h" #endif /* * For chips with TrustZone support, MDK provides CMSIS-Core peripheral * accessing symbols in two flavors, with secure and non-secure base address * mappings. Their names contain the suffix _S or _NS, respectively. * Because nrfx HALs and drivers require these peripheral accessing symbols * without any suffixes, the following macro is provided that will translate * their names according to the kind of the target that is built. */ #if defined(NRF_TRUSTZONE_NONSECURE) #define NRF_PERIPH(P) P##_NS #else #define NRF_PERIPH(P) P##_S #endif #define NRFX_CONFIG_BIT_DT(node_id, prop, idx) BIT(DT_PROP_BY_IDX(node_id, prop, idx)) #define NRFX_CONFIG_MASK_DT(node_id, prop) \ (COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \ (DT_FOREACH_PROP_ELEM_SEP(node_id, prop, NRFX_CONFIG_BIT_DT, (|))), \ (0))) /* If the GRTC system timer driver is to be used, prepare definitions required * by the nrfx_grtc driver (NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK and * NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS) based on information from devicetree. */ #if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_grtc) #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK \ (NRFX_CONFIG_MASK_DT(DT_INST(0, nordic_nrf_grtc), owned_channels) & \ ~NRFX_CONFIG_MASK_DT(DT_INST(0, nordic_nrf_grtc), child_owned_channels)) #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS \ (DT_PROP_LEN_OR(DT_INST(0, nordic_nrf_grtc), owned_channels, 0) - \ DT_PROP_LEN_OR(DT_INST(0, nordic_nrf_grtc), child_owned_channels, 0)) #endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_grtc) */ /* If global of local DPPIC peripherals are used, provide the following macro * definitions required by the interconnect/apb layer: * - NRFX_DPPI_PUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) * - NRFX_DPPI_SUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) * - NRFX_DPPI_PUB_OR_SUB_MASK(inst_num) * - NRFX_DPPI_CHANNELS_SINGLE_VAR_NAME_BY_INST_NUM(inst_num) * - NRFX_INTERCONNECT_APB_GLOBAL_DPPI_DEFINE * - NRFX_INTERCONNECT_APB_LOCAL_DPPI_DEFINE * based on information from devicetree. */ #if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_dppic_global) || \ DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_dppic_local) #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 1 #endif /* Source (publish) channels masks generation. */ #define NRFX_DPPI_PUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) \ NRFX_CONFIG_MASK_DT(DT_NODELABEL(_CONCAT(dppic, inst_num)), source_channels) /* Sink (subscribe) channels masks generation. */ #define NRFX_DPPI_SUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) \ NRFX_CONFIG_MASK_DT(DT_NODELABEL(_CONCAT(dppic, inst_num)), sink_channels) #define NRFX_DPPI_PUB_OR_SUB_MASK(inst_num) \ UTIL_OR(DT_NODE_HAS_PROP(DT_NODELABEL(_CONCAT(dppic, inst_num)), source_channels), \ DT_NODE_HAS_PROP(DT_NODELABEL(_CONCAT(dppic, inst_num)), sink_channels)) /* Variables names generation. */ #define NRFX_CONFIG_DPPI_CHANNELS_ENTRY_NAME(node_id) _CONCAT(_CONCAT(m_, node_id), _channels) #define NRFX_DPPI_CHANNELS_SINGLE_VAR_NAME_BY_INST_NUM(inst_num) \ NRFX_CONFIG_DPPI_CHANNELS_ENTRY_NAME(DT_NODELABEL(_CONCAT(dppic, inst_num))) /* Variables entries generation. */ #define NRFX_CONFIG_DPPI_CHANNELS_ENTRY(node_id) \ static nrfx_atomic_t NRFX_CONFIG_DPPI_CHANNELS_ENTRY_NAME(node_id) \ __attribute__((used)) = \ NRFX_CONFIG_MASK_DT(node_id, source_channels) | \ NRFX_CONFIG_MASK_DT(node_id, sink_channels); #define NRFX_INTERCONNECT_APB_GLOBAL_DPPI_DEFINE \ DT_FOREACH_STATUS_OKAY(nordic_nrf_dppic_global, NRFX_CONFIG_DPPI_CHANNELS_ENTRY) #define NRFX_INTERCONNECT_APB_LOCAL_DPPI_DEFINE \ DT_FOREACH_STATUS_OKAY(nordic_nrf_dppic_local, NRFX_CONFIG_DPPI_CHANNELS_ENTRY) #endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_dppic_global) || ... */ /* If local or global DPPIC peripherals are used, provide the following macro * definitions required by the interconnect/ipct layer: * - NRFX_IPCTx_PUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) * - NRFX_IPCTx_SUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) * - NRFX_IPCT_PUB_OR_SUB_MASK(inst_num) * - NRFX_IPCTx_CHANNELS_SINGLE_VAR_NAME_BY_INST_NUM(inst_num) * - NRFX_INTERCONNECT_IPCT_GLOBAL_DEFINE * - NRFX_INTERCONNECT_IPCT_LOCAL_DEFINE * based on information from devicetree. */ #if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_ipct_global) || \ DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_ipct_local) /* Channels masks generation. */ #define NRFX_CONFIG_IPCT_MASK_DT(node_id) \ COND_CODE_1(DT_NODE_HAS_PROP(node_id, owned_channels), \ (NRFX_CONFIG_MASK_DT(node_id, owned_channels)), \ (COND_CODE_1(DT_NODE_HAS_COMPAT(node_id, nordic_nrf_ipct_local), \ (BIT_MASK(DT_PROP(node_id, channels))), (0)))) #if defined(NRF_APPLICATION) #define NRFX_CONFIG_IPCT_LOCAL_NODE DT_NODELABEL(cpuapp_ipct) #elif defined(NRF_RADIOCORE) #define NRFX_CONFIG_IPCT_LOCAL_NODE DT_NODELABEL(cpurad_ipct) #endif #define NRFX_CONFIG_IPCT_NODE_BY_INST_NUM(inst_num) \ COND_CODE_1(IS_EMPTY(inst_num), \ (NRFX_CONFIG_IPCT_LOCAL_NODE), \ (DT_NODELABEL(_CONCAT(ipct, inst_num)))) #define NRFX_IPCTx_PUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) \ NRFX_CONFIG_IPCT_MASK_DT(NRFX_CONFIG_IPCT_NODE_BY_INST_NUM(inst_num)) #define NRFX_IPCTx_SUB_CONFIG_ALLOWED_CHANNELS_MASK_BY_INST_NUM(inst_num) \ NRFX_CONFIG_IPCT_MASK_DT(NRFX_CONFIG_IPCT_NODE_BY_INST_NUM(inst_num)) #define NRFX_IPCT_PUB_OR_SUB_MASK(inst_num) \ COND_CODE_1(IS_EMPTY(inst_num), \ (DT_NODE_HAS_STATUS(NRFX_CONFIG_IPCT_LOCAL_NODE, okay)), \ (DT_NODE_HAS_PROP(DT_NODELABEL(_CONCAT(ipct, inst_num)), owned_channels))) /* Variables names generation. */ #define NRFX_CONFIG_IPCT_CHANNELS_ENTRY_NAME(node_id) _CONCAT(_CONCAT(m_, node_id), _channels) #define NRFX_IPCTx_CHANNELS_SINGLE_VAR_NAME_BY_INST_NUM(inst_num) \ COND_CODE_1(IS_EMPTY(inst_num), \ (NRFX_CONFIG_IPCT_CHANNELS_ENTRY_NAME(NRFX_CONFIG_IPCT_LOCAL_NODE)), \ (NRFX_CONFIG_IPCT_CHANNELS_ENTRY_NAME(DT_NODELABEL(_CONCAT(ipct, inst_num))))) /* Variables entries generation. */ #define NRFX_CONFIG_IPCT_CHANNELS_ENTRY(node_id) \ static nrfx_atomic_t NRFX_CONFIG_IPCT_CHANNELS_ENTRY_NAME(node_id) \ __attribute__((used)) = \ NRFX_CONFIG_IPCT_MASK_DT(node_id); #define NRFX_INTERCONNECT_IPCT_LOCAL_DEFINE \ DT_FOREACH_STATUS_OKAY(nordic_nrf_ipct_local, NRFX_CONFIG_IPCT_CHANNELS_ENTRY) #define NRFX_INTERCONNECT_IPCT_GLOBAL_DEFINE \ DT_FOREACH_STATUS_OKAY(nordic_nrf_ipct_global, NRFX_CONFIG_IPCT_CHANNELS_ENTRY) #endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_ipct_global) || ... */ #include <nrfx_config_common.h> #if defined(NRF51) #include <nrfx_config_nrf51.h> #elif defined(NRF52805_XXAA) #include <nrfx_config_nrf52805.h> #elif defined(NRF52810_XXAA) #include <nrfx_config_nrf52810.h> #elif defined(NRF52811_XXAA) #include <nrfx_config_nrf52811.h> #elif defined(NRF52820_XXAA) #include <nrfx_config_nrf52820.h> #elif defined(NRF52832_XXAA) || defined (NRF52832_XXAB) #include <nrfx_config_nrf52832.h> #elif defined(NRF52833_XXAA) #include <nrfx_config_nrf52833.h> #elif defined(NRF52840_XXAA) #include <nrfx_config_nrf52840.h> #elif defined(NRF5340_XXAA_APPLICATION) #include <nrfx_config_nrf5340_application.h> #elif defined(NRF5340_XXAA_NETWORK) #include <nrfx_config_nrf5340_network.h> #elif defined(NRF54H20_XXAA) && defined(NRF_APPLICATION) #include <nrfx_config_nrf54h20_application.h> #elif defined(NRF54H20_XXAA) && defined(NRF_RADIOCORE) #include <nrfx_config_nrf54h20_radiocore.h> #elif defined(NRF54H20_XXAA) && defined(NRF_PPR) #include <nrfx_config_nrf54h20_ppr.h> #elif defined(NRF54H20_XXAA) && defined(NRF_FLPR) #include <nrfx_config_nrf54h20_flpr.h> #elif (defined(NRF54L15_XXAA) || defined(NRF54L15_ENGA_XXAA)) && defined(NRF_APPLICATION) #include <nrfx_config_nrf54l15_enga_application.h> #elif (defined(NRF54L15_XXAA) || defined(NRF54L15_ENGA_XXAA)) && defined(NRF_FLPR) #include <nrfx_config_nrf54l15_enga_flpr.h> #elif defined(NRF9120_XXAA) || defined(NRF9160_XXAA) #include <nrfx_config_nrf91.h> #else #error "Unknown device." #endif #endif // NRFX_CONFIG_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,060
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF54H20_FLPR_H__ #define NRFX_CONFIG_NRF54H20_FLPR_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 0 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COREDEP_VPR_LEGACY * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COREDEP_VPR_LEGACY #define NRFX_COREDEP_VPR_LEGACY 0 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000030 #endif /** * @brief NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000001e #endif /** * @brief NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000020 #endif /** * @brief NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000040 #endif /** * @brief NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000081 #endif /** * @brief NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000e1 #endif /** * @brief NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000df #endif /** * @brief NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000bf #endif /** * @brief NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000007e #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU130_ENABLED #define NRFX_EGU130_ENABLED 0 #endif /** * @brief NRFX_GRTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_ENABLED #define NRFX_GRTC_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_SLEEP_ALLOWED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOEN * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOEN #define NRFX_GRTC_CONFIG_AUTOEN 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOSTART * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOSTART #define NRFX_GRTC_CONFIG_AUTOSTART 0 #endif /** * @brief NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS * * Integer value. */ #ifndef NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS 4 #endif /** * @brief NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK */ #ifndef NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK 0 #endif /** * @brief NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GRTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_LOG_ENABLED #define NRFX_GRTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GRTC_CONFIG_LOG_LEVEL #define NRFX_GRTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000030 #endif /** * @brief NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000c0 #endif /** * @brief NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_MVDMA_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA_ENABLED #define NRFX_MVDMA_ENABLED 0 #endif /** * @brief NRFX_MVDMA120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA120_ENABLED #define NRFX_MVDMA120_ENABLED 0 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0. Maximum: 5. */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_5_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_5_ENABLED #define NRFX_PRS_BOX_5_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_6_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_6_ENABLED #define NRFX_PRS_BOX_6_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_7_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_7_ENABLED #define NRFX_PRS_BOX_7_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_8_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_8_ENABLED #define NRFX_PRS_BOX_8_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_9_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_9_ENABLED #define NRFX_PRS_BOX_9_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM120_ENABLED #define NRFX_PWM120_ENABLED 0 #endif /** * @brief NRFX_PWM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM130_ENABLED #define NRFX_PWM130_ENABLED 0 #endif /** * @brief NRFX_PWM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM131_ENABLED #define NRFX_PWM131_ENABLED 0 #endif /** * @brief NRFX_PWM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM132_ENABLED #define NRFX_PWM132_ENABLED 0 #endif /** * @brief NRFX_PWM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM133_ENABLED #define NRFX_PWM133_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_QDEC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC130_ENABLED #define NRFX_QDEC130_ENABLED 0 #endif /** * @brief NRFX_QDEC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC131_ENABLED #define NRFX_QDEC131_ENABLED 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC130_ENABLED #define NRFX_RTC130_ENABLED 0 #endif /** * @brief NRFX_RTC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC131_ENABLED #define NRFX_RTC131_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM120_ENABLED #define NRFX_SPIM120_ENABLED 0 #endif /** * @brief NRFX_SPIM121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM121_ENABLED #define NRFX_SPIM121_ENABLED 0 #endif /** * @brief NRFX_SPIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM130_ENABLED #define NRFX_SPIM130_ENABLED 0 #endif /** * @brief NRFX_SPIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM131_ENABLED #define NRFX_SPIM131_ENABLED 0 #endif /** * @brief NRFX_SPIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM132_ENABLED #define NRFX_SPIM132_ENABLED 0 #endif /** * @brief NRFX_SPIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM133_ENABLED #define NRFX_SPIM133_ENABLED 0 #endif /** * @brief NRFX_SPIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM134_ENABLED #define NRFX_SPIM134_ENABLED 0 #endif /** * @brief NRFX_SPIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM135_ENABLED #define NRFX_SPIM135_ENABLED 0 #endif /** * @brief NRFX_SPIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM136_ENABLED #define NRFX_SPIM136_ENABLED 0 #endif /** * @brief NRFX_SPIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM137_ENABLED #define NRFX_SPIM137_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS120_ENABLED #define NRFX_SPIS120_ENABLED 0 #endif /** * @brief NRFX_SPIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS130_ENABLED #define NRFX_SPIS130_ENABLED 0 #endif /** * @brief NRFX_SPIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS131_ENABLED #define NRFX_SPIS131_ENABLED 0 #endif /** * @brief NRFX_SPIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS132_ENABLED #define NRFX_SPIS132_ENABLED 0 #endif /** * @brief NRFX_SPIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS133_ENABLED #define NRFX_SPIS133_ENABLED 0 #endif /** * @brief NRFX_SPIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS134_ENABLED #define NRFX_SPIS134_ENABLED 0 #endif /** * @brief NRFX_SPIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS135_ENABLED #define NRFX_SPIS135_ENABLED 0 #endif /** * @brief NRFX_SPIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS136_ENABLED #define NRFX_SPIS136_ENABLED 0 #endif /** * @brief NRFX_SPIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS137_ENABLED #define NRFX_SPIS137_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER120_ENABLED #define NRFX_TIMER120_ENABLED 0 #endif /** * @brief NRFX_TIMER121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER121_ENABLED #define NRFX_TIMER121_ENABLED 0 #endif /** * @brief NRFX_TIMER130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER130_ENABLED #define NRFX_TIMER130_ENABLED 0 #endif /** * @brief NRFX_TIMER131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER131_ENABLED #define NRFX_TIMER131_ENABLED 0 #endif /** * @brief NRFX_TIMER132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER132_ENABLED #define NRFX_TIMER132_ENABLED 0 #endif /** * @brief NRFX_TIMER133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER133_ENABLED #define NRFX_TIMER133_ENABLED 0 #endif /** * @brief NRFX_TIMER134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER134_ENABLED #define NRFX_TIMER134_ENABLED 0 #endif /** * @brief NRFX_TIMER135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER135_ENABLED #define NRFX_TIMER135_ENABLED 0 #endif /** * @brief NRFX_TIMER136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER136_ENABLED #define NRFX_TIMER136_ENABLED 0 #endif /** * @brief NRFX_TIMER137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER137_ENABLED #define NRFX_TIMER137_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM130_ENABLED #define NRFX_TWIM130_ENABLED 0 #endif /** * @brief NRFX_TWIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM131_ENABLED #define NRFX_TWIM131_ENABLED 0 #endif /** * @brief NRFX_TWIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM132_ENABLED #define NRFX_TWIM132_ENABLED 0 #endif /** * @brief NRFX_TWIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM133_ENABLED #define NRFX_TWIM133_ENABLED 0 #endif /** * @brief NRFX_TWIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM134_ENABLED #define NRFX_TWIM134_ENABLED 0 #endif /** * @brief NRFX_TWIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM135_ENABLED #define NRFX_TWIM135_ENABLED 0 #endif /** * @brief NRFX_TWIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM136_ENABLED #define NRFX_TWIM136_ENABLED 0 #endif /** * @brief NRFX_TWIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM137_ENABLED #define NRFX_TWIM137_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS130_ENABLED #define NRFX_TWIS130_ENABLED 0 #endif /** * @brief NRFX_TWIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS131_ENABLED #define NRFX_TWIS131_ENABLED 0 #endif /** * @brief NRFX_TWIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS132_ENABLED #define NRFX_TWIS132_ENABLED 0 #endif /** * @brief NRFX_TWIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS133_ENABLED #define NRFX_TWIS133_ENABLED 0 #endif /** * @brief NRFX_TWIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS134_ENABLED #define NRFX_TWIS134_ENABLED 0 #endif /** * @brief NRFX_TWIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS135_ENABLED #define NRFX_TWIS135_ENABLED 0 #endif /** * @brief NRFX_TWIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS136_ENABLED #define NRFX_TWIS136_ENABLED 0 #endif /** * @brief NRFX_TWIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS137_ENABLED #define NRFX_TWIS137_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG - If enabled, support for configuring GPIO pins is * removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG - If enabled, support for configuring PSEL registers * is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking of TX transfers. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif /** * @brief NRFX_UARTE_CONFIG_RX_CACHE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_RX_CACHE_ENABLED #define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE120_ENABLED #define NRFX_UARTE120_ENABLED 0 #endif /** * @brief NRFX_UARTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE130_ENABLED #define NRFX_UARTE130_ENABLED 0 #endif /** * @brief NRFX_UARTE131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE131_ENABLED #define NRFX_UARTE131_ENABLED 0 #endif /** * @brief NRFX_UARTE132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE132_ENABLED #define NRFX_UARTE132_ENABLED 0 #endif /** * @brief NRFX_UARTE133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE133_ENABLED #define NRFX_UARTE133_ENABLED 0 #endif /** * @brief NRFX_UARTE134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE134_ENABLED #define NRFX_UARTE134_ENABLED 0 #endif /** * @brief NRFX_UARTE135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE135_ENABLED #define NRFX_UARTE135_ENABLED 0 #endif /** * @brief NRFX_UARTE136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE136_ENABLED #define NRFX_UARTE136_ENABLED 0 #endif /** * @brief NRFX_UARTE137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE137_ENABLED #define NRFX_UARTE137_ENABLED 0 #endif /** * @brief NRFX_VEVIF_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_VEVIF_ENABLED #define NRFX_VEVIF_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT131_ENABLED #define NRFX_WDT131_ENABLED 0 #endif /** * @brief NRFX_WDT132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT132_ENABLED #define NRFX_WDT132_ENABLED 0 #endif #endif /* NRFX_CONFIG_NRF54H20_FLPR_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_flpr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,886
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52805_H__ #define NRFX_CONFIG_NRF52805_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52805_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52805.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,903
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52811_H__ #define NRFX_CONFIG_NRF52811_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI1_ENABLED #define NRFX_SPI1_ENABLED 0 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52811_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52811.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,727
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52832_H__ #define NRFX_CONFIG_NRF52832_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_EGU2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU2_ENABLED #define NRFX_EGU2_ENABLED 0 #endif /** * @brief NRFX_EGU3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU3_ENABLED #define NRFX_EGU3_ENABLED 0 #endif /** * @brief NRFX_EGU4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU4_ENABLED #define NRFX_EGU4_ENABLED 0 #endif /** * @brief NRFX_EGU5_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU5_ENABLED #define NRFX_EGU5_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0 Maximum: 5 */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 4 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround * for PWM. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED #define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 #endif /** * @brief NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE - EGU instance used by the nRF52 Anomaly 109 * workaround for PWM. * * Integer value. Minimum: 0 Maximum: 5 */ #ifndef NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE #define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE 5 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_PWM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM1_ENABLED #define NRFX_PWM1_ENABLED 0 #endif /** * @brief NRFX_PWM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM2_ENABLED #define NRFX_PWM2_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_RTC2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC2_ENABLED #define NRFX_RTC2_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI1_ENABLED #define NRFX_SPI1_ENABLED 0 #endif /** * @brief NRFX_SPI2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI2_ENABLED #define NRFX_SPI2_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for * SPIM. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED #define NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM2_ENABLED #define NRFX_SPIM2_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround * for SPIS. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED #define NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SPIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS2_ENABLED #define NRFX_SPIS2_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TIMER3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER3_ENABLED #define NRFX_TIMER3_ENABLED 0 #endif /** * @brief NRFX_TIMER4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER4_ENABLED #define NRFX_TIMER4_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI1_ENABLED #define NRFX_TWI1_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for * TWIM. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED #define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM1_ENABLED #define NRFX_TWIM1_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_TWIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS1_ENABLED #define NRFX_TWIS1_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52832_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52832.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,655
```unknown menu "nrfx drivers logging" depends on LOG config NRFX_ADC_LOG bool "ADC driver logging" depends on NRFX_ADC config NRFX_CLOCK_LOG bool "CLOCK driver logging" depends on NRFX_CLOCK config NRFX_COMP_LOG bool "COMP driver logging" depends on NRFX_COMP config NRFX_DPPI_LOG bool "DPPI driver logging" depends on NRFX_DPPI config NRFX_EGU_LOG bool "EGU driver logging" depends on NRFX_EGU config NRFX_GPIOTE_LOG bool "GPIOTE driver logging" depends on NRFX_GPIOTE config NRFX_GRTC_LOG bool "GRTC driver logging" depends on NRFX_GRTC config NRFX_I2S_LOG bool "I2S driver logging" depends on NRFX_I2S config NRFX_IPC_LOG bool "IPC driver logging" depends on NRFX_IPC config NRFX_LPCOMP_LOG bool "LPCOMP driver logging" depends on NRFX_LPCOMP config NRFX_NFCT_LOG bool "NFCT driver logging" depends on NRFX_NFCT config NRFX_NVMC_LOG bool "NVMC driver logging" depends on NRFX_NVMC config NRFX_PDM_LOG bool "PDM driver logging" depends on NRFX_PDM config NRFX_POWER_LOG bool "POWER driver logging" depends on NRFX_POWER config NRFX_PPI_LOG bool "PPI driver logging" depends on NRFX_PPI config NRFX_PRS_LOG bool "PRS driver logging" depends on NRFX_PRS config NRFX_PWM_LOG bool "PWM driver logging" depends on NRFX_PWM config NRFX_QDEC_LOG bool "QDEC driver logging" depends on NRFX_QDEC config NRFX_QSPI_LOG bool "QSPI driver logging" depends on NRFX_QSPI config NRFX_RNG_LOG bool "RNG driver logging" depends on NRFX_RNG config NRFX_RTC_LOG bool "RTC driver logging" depends on NRFX_RTC config NRFX_SAADC_LOG bool "SAADC driver logging" depends on NRFX_SAADC config NRFX_SPI_LOG bool "SPI driver logging" depends on NRFX_SPI config NRFX_SPIM_LOG bool "SPIM driver logging" depends on NRFX_SPIM config NRFX_SPIS_LOG bool "SPIS driver logging" depends on NRFX_SPIS config NRFX_SYSTICK_LOG bool "SYSTICK driver logging" depends on NRFX_SYSTICK config NRFX_TEMP_LOG bool "TEMP driver logging" depends on NRFX_TEMP config NRFX_TIMER_LOG bool "TIMER driver logging" depends on NRFX_TIMER config NRFX_TWI_LOG bool "TWI driver logging" depends on NRFX_TWI config NRFX_TWIM_LOG bool "TWIM driver logging" depends on NRFX_TWIM config NRFX_TWIS_LOG bool "TWIS driver logging" depends on NRFX_TWIS config NRFX_UART_LOG bool "UART driver logging" depends on NRFX_UART config NRFX_UARTE_LOG bool "UARTE driver logging" depends on NRFX_UARTE config NRFX_USBREG_LOG bool "USBREG driver logging" depends on NRFX_USBREG config NRFX_WDT_LOG bool "WDT driver logging" depends on NRFX_WDT endmenu # "nrfx drivers logging" ```
/content/code_sandbox/modules/hal_nordic/nrfx/Kconfig.logging
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
784
```objective-c /* * */ #ifndef NRFX_LOG_H__ #define NRFX_LOG_H__ #include <zephyr/logging/log.h> #ifdef __cplusplus extern "C" { #endif #define NRFX_MODULE_PREFIX _CONCAT(NRFX_, NRFX_LOG_MODULE) /* * The following macros from nrfx_config control the log messages coming from * a given module: * - NRFX_<module>_CONFIG_LOG_ENABLED enables the messages (when set to 1) * - NRFX_<module>_CONFIG_LOG_LEVEL specifies the severity level of the messages * that are to be output. */ #if !IS_ENABLED(_CONCAT(NRFX_MODULE_PREFIX, _CONFIG_LOG_ENABLED)) #define NRFX_MODULE_CONFIG_LOG_LEVEL 0 #else #define NRFX_MODULE_CONFIG_LOG_LEVEL \ _CONCAT(NRFX_MODULE_PREFIX, _CONFIG_LOG_LEVEL) #endif #if NRFX_MODULE_CONFIG_LOG_LEVEL == 0 #define NRFX_MODULE_LOG_LEVEL LOG_LEVEL_NONE #elif NRFX_MODULE_CONFIG_LOG_LEVEL == 1 #define NRFX_MODULE_LOG_LEVEL LOG_LEVEL_ERR #elif NRFX_MODULE_CONFIG_LOG_LEVEL == 2 #define NRFX_MODULE_LOG_LEVEL LOG_LEVEL_WRN #elif NRFX_MODULE_CONFIG_LOG_LEVEL == 3 #define NRFX_MODULE_LOG_LEVEL LOG_LEVEL_INF #elif NRFX_MODULE_CONFIG_LOG_LEVEL == 4 #define NRFX_MODULE_LOG_LEVEL LOG_LEVEL_DBG #endif LOG_MODULE_REGISTER(NRFX_MODULE_PREFIX, NRFX_MODULE_LOG_LEVEL); /** * @defgroup nrfx_log nrfx_log.h * @{ * @ingroup nrfx * * @brief This file contains macros that should be implemented according to * the needs of the host environment into which @em nrfx is integrated. */ /** * @brief Macro for logging a message with the severity level ERROR. * * @param ... printf-style format string, optionally followed by arguments * to be formatted and inserted in the resulting string. */ #define NRFX_LOG_ERROR(...) LOG_ERR(__VA_ARGS__) /** * @brief Macro for logging a message with the severity level WARNING. * * @param ... printf-style format string, optionally followed by arguments * to be formatted and inserted in the resulting string. */ #define NRFX_LOG_WARNING(...) LOG_WRN(__VA_ARGS__) /** * @brief Macro for logging a message with the severity level INFO. * * @param ... printf-style format string, optionally followed by arguments * to be formatted and inserted in the resulting string. */ #define NRFX_LOG_INFO(...) LOG_INF(__VA_ARGS__) /** * @brief Macro for logging a message with the severity level DEBUG. * * @param ... printf-style format string, optionally followed by arguments * to be formatted and inserted in the resulting string. */ #define NRFX_LOG_DEBUG(...) LOG_DBG(__VA_ARGS__) /** * @brief Macro for logging a memory dump with the severity level ERROR. * * @param[in] p_memory Pointer to the memory region to be dumped. * @param[in] length Length of the memory region in bytes. */ #define NRFX_LOG_HEXDUMP_ERROR(p_memory, length) \ LOG_HEXDUMP_ERR(p_memory, length, "") /** * @brief Macro for logging a memory dump with the severity level WARNING. * * @param[in] p_memory Pointer to the memory region to be dumped. * @param[in] length Length of the memory region in bytes. */ #define NRFX_LOG_HEXDUMP_WARNING(p_memory, length) \ LOG_HEXDUMP_WRN(p_memory, length, "") /** * @brief Macro for logging a memory dump with the severity level INFO. * * @param[in] p_memory Pointer to the memory region to be dumped. * @param[in] length Length of the memory region in bytes. */ #define NRFX_LOG_HEXDUMP_INFO(p_memory, length) \ LOG_HEXDUMP_INF(p_memory, length, "") /** * @brief Macro for logging a memory dump with the severity level DEBUG. * * @param[in] p_memory Pointer to the memory region to be dumped. * @param[in] length Length of the memory region in bytes. */ #define NRFX_LOG_HEXDUMP_DEBUG(p_memory, length) \ LOG_HEXDUMP_DBG(p_memory, length, "") /** * @brief Macro for getting the textual representation of a given error code. * * @param[in] error_code Error code. * * @return String containing the textual representation of the error code. */ #define NRFX_LOG_ERROR_STRING_GET(error_code) nrfx_error_string_get(error_code) extern char const *nrfx_error_string_get(nrfx_err_t code); /** @} */ #ifdef __cplusplus } #endif #endif // NRFX_LOG_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_log.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
985
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF54H20_APPLICATION_H__ #define NRFX_CONFIG_NRF54H20_APPLICATION_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_BELLBOARD_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD_ENABLED #define NRFX_BELLBOARD_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_BELLBOARD_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_BELLBOARD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_BELLBOARD0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD0_ENABLED #define NRFX_BELLBOARD0_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD1_ENABLED #define NRFX_BELLBOARD1_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD2_ENABLED #define NRFX_BELLBOARD2_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD3_ENABLED #define NRFX_BELLBOARD3_ENABLED 0 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000f0 #endif /** * @brief NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000001e #endif /** * @brief NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000020 #endif /** * @brief NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000040 #endif /** * @brief NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000081 #endif /** * @brief NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000f #endif /** * @brief NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000e1 #endif /** * @brief NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000df #endif /** * @brief NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000bf #endif /** * @brief NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000007e #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU130_ENABLED #define NRFX_EGU130_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0. Maximum: 15. */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_GPIOTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE130_ENABLED #define NRFX_GPIOTE130_ENABLED 0 #endif /** * @brief NRFX_GRTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_ENABLED #define NRFX_GRTC_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_SLEEP_ALLOWED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOEN * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOEN #define NRFX_GRTC_CONFIG_AUTOEN 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOSTART * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOSTART #define NRFX_GRTC_CONFIG_AUTOSTART 0 #endif /** * @brief NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS * * Integer value. */ #ifndef NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS 4 #endif /** * @brief NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK */ #ifndef NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK 0x000000f0 #endif /** * @brief NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GRTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_LOG_ENABLED #define NRFX_GRTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GRTC_CONFIG_LOG_LEVEL #define NRFX_GRTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_MVDMA_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA_ENABLED #define NRFX_MVDMA_ENABLED 0 #endif /** * @brief NRFX_MVDMA120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA120_ENABLED #define NRFX_MVDMA120_ENABLED 0 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0. Maximum: 5. */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_5_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_5_ENABLED #define NRFX_PRS_BOX_5_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_6_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_6_ENABLED #define NRFX_PRS_BOX_6_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_7_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_7_ENABLED #define NRFX_PRS_BOX_7_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_8_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_8_ENABLED #define NRFX_PRS_BOX_8_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_9_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_9_ENABLED #define NRFX_PRS_BOX_9_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM120_ENABLED #define NRFX_PWM120_ENABLED 0 #endif /** * @brief NRFX_PWM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM130_ENABLED #define NRFX_PWM130_ENABLED 0 #endif /** * @brief NRFX_PWM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM131_ENABLED #define NRFX_PWM131_ENABLED 0 #endif /** * @brief NRFX_PWM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM132_ENABLED #define NRFX_PWM132_ENABLED 0 #endif /** * @brief NRFX_PWM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM133_ENABLED #define NRFX_PWM133_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_QDEC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC130_ENABLED #define NRFX_QDEC130_ENABLED 0 #endif /** * @brief NRFX_QDEC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC131_ENABLED #define NRFX_QDEC131_ENABLED 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC130_ENABLED #define NRFX_RTC130_ENABLED 0 #endif /** * @brief NRFX_RTC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC131_ENABLED #define NRFX_RTC131_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM120_ENABLED #define NRFX_SPIM120_ENABLED 0 #endif /** * @brief NRFX_SPIM121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM121_ENABLED #define NRFX_SPIM121_ENABLED 0 #endif /** * @brief NRFX_SPIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM130_ENABLED #define NRFX_SPIM130_ENABLED 0 #endif /** * @brief NRFX_SPIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM131_ENABLED #define NRFX_SPIM131_ENABLED 0 #endif /** * @brief NRFX_SPIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM132_ENABLED #define NRFX_SPIM132_ENABLED 0 #endif /** * @brief NRFX_SPIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM133_ENABLED #define NRFX_SPIM133_ENABLED 0 #endif /** * @brief NRFX_SPIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM134_ENABLED #define NRFX_SPIM134_ENABLED 0 #endif /** * @brief NRFX_SPIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM135_ENABLED #define NRFX_SPIM135_ENABLED 0 #endif /** * @brief NRFX_SPIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM136_ENABLED #define NRFX_SPIM136_ENABLED 0 #endif /** * @brief NRFX_SPIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM137_ENABLED #define NRFX_SPIM137_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS120_ENABLED #define NRFX_SPIS120_ENABLED 0 #endif /** * @brief NRFX_SPIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS130_ENABLED #define NRFX_SPIS130_ENABLED 0 #endif /** * @brief NRFX_SPIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS131_ENABLED #define NRFX_SPIS131_ENABLED 0 #endif /** * @brief NRFX_SPIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS132_ENABLED #define NRFX_SPIS132_ENABLED 0 #endif /** * @brief NRFX_SPIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS133_ENABLED #define NRFX_SPIS133_ENABLED 0 #endif /** * @brief NRFX_SPIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS134_ENABLED #define NRFX_SPIS134_ENABLED 0 #endif /** * @brief NRFX_SPIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS135_ENABLED #define NRFX_SPIS135_ENABLED 0 #endif /** * @brief NRFX_SPIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS136_ENABLED #define NRFX_SPIS136_ENABLED 0 #endif /** * @brief NRFX_SPIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS137_ENABLED #define NRFX_SPIS137_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER120_ENABLED #define NRFX_TIMER120_ENABLED 0 #endif /** * @brief NRFX_TIMER121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER121_ENABLED #define NRFX_TIMER121_ENABLED 0 #endif /** * @brief NRFX_TIMER130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER130_ENABLED #define NRFX_TIMER130_ENABLED 0 #endif /** * @brief NRFX_TIMER131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER131_ENABLED #define NRFX_TIMER131_ENABLED 0 #endif /** * @brief NRFX_TIMER132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER132_ENABLED #define NRFX_TIMER132_ENABLED 0 #endif /** * @brief NRFX_TIMER133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER133_ENABLED #define NRFX_TIMER133_ENABLED 0 #endif /** * @brief NRFX_TIMER134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER134_ENABLED #define NRFX_TIMER134_ENABLED 0 #endif /** * @brief NRFX_TIMER135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER135_ENABLED #define NRFX_TIMER135_ENABLED 0 #endif /** * @brief NRFX_TIMER136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER136_ENABLED #define NRFX_TIMER136_ENABLED 0 #endif /** * @brief NRFX_TIMER137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER137_ENABLED #define NRFX_TIMER137_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM130_ENABLED #define NRFX_TWIM130_ENABLED 0 #endif /** * @brief NRFX_TWIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM131_ENABLED #define NRFX_TWIM131_ENABLED 0 #endif /** * @brief NRFX_TWIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM132_ENABLED #define NRFX_TWIM132_ENABLED 0 #endif /** * @brief NRFX_TWIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM133_ENABLED #define NRFX_TWIM133_ENABLED 0 #endif /** * @brief NRFX_TWIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM134_ENABLED #define NRFX_TWIM134_ENABLED 0 #endif /** * @brief NRFX_TWIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM135_ENABLED #define NRFX_TWIM135_ENABLED 0 #endif /** * @brief NRFX_TWIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM136_ENABLED #define NRFX_TWIM136_ENABLED 0 #endif /** * @brief NRFX_TWIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM137_ENABLED #define NRFX_TWIM137_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance * would be initialized only once. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS130_ENABLED #define NRFX_TWIS130_ENABLED 0 #endif /** * @brief NRFX_TWIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS131_ENABLED #define NRFX_TWIS131_ENABLED 0 #endif /** * @brief NRFX_TWIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS132_ENABLED #define NRFX_TWIS132_ENABLED 0 #endif /** * @brief NRFX_TWIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS133_ENABLED #define NRFX_TWIS133_ENABLED 0 #endif /** * @brief NRFX_TWIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS134_ENABLED #define NRFX_TWIS134_ENABLED 0 #endif /** * @brief NRFX_TWIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS135_ENABLED #define NRFX_TWIS135_ENABLED 0 #endif /** * @brief NRFX_TWIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS136_ENABLED #define NRFX_TWIS136_ENABLED 0 #endif /** * @brief NRFX_TWIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS137_ENABLED #define NRFX_TWIS137_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG - If enabled, support for * configuring GPIO pins is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG - If enabled, support for * configuring PSEL registers is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking * of TX transfers. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif /** * @brief NRFX_UARTE_CONFIG_RX_CACHE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_RX_CACHE_ENABLED #define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE120_ENABLED #define NRFX_UARTE120_ENABLED 0 #endif /** * @brief NRFX_UARTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE130_ENABLED #define NRFX_UARTE130_ENABLED 0 #endif /** * @brief NRFX_UARTE131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE131_ENABLED #define NRFX_UARTE131_ENABLED 0 #endif /** * @brief NRFX_UARTE132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE132_ENABLED #define NRFX_UARTE132_ENABLED 0 #endif /** * @brief NRFX_UARTE133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE133_ENABLED #define NRFX_UARTE133_ENABLED 0 #endif /** * @brief NRFX_UARTE134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE134_ENABLED #define NRFX_UARTE134_ENABLED 0 #endif /** * @brief NRFX_UARTE135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE135_ENABLED #define NRFX_UARTE135_ENABLED 0 #endif /** * @brief NRFX_UARTE136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE136_ENABLED #define NRFX_UARTE136_ENABLED 0 #endif /** * @brief NRFX_UARTE137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE137_ENABLED #define NRFX_UARTE137_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT010_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT010_ENABLED #define NRFX_WDT010_ENABLED 0 #endif /** * @brief NRFX_WDT011_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT011_ENABLED #define NRFX_WDT011_ENABLED 0 #endif /** * @brief NRFX_WDT131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT131_ENABLED #define NRFX_WDT131_ENABLED 0 #endif /** * @brief NRFX_WDT132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT132_ENABLED #define NRFX_WDT132_ENABLED 0 #endif #endif /* NRFX_CONFIG_NRF54H20_APPLICATION_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_application.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,646
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF54H20_RADIOCORE_H__ #define NRFX_CONFIG_NRF54H20_RADIOCORE_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_BELLBOARD_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD_ENABLED #define NRFX_BELLBOARD_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_BELLBOARD_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_BELLBOARD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_BELLBOARD0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD0_ENABLED #define NRFX_BELLBOARD0_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD1_ENABLED #define NRFX_BELLBOARD1_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD2_ENABLED #define NRFX_BELLBOARD2_ENABLED 0 #endif /** * @brief NRFX_BELLBOARD3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_BELLBOARD3_ENABLED #define NRFX_BELLBOARD3_ENABLED 0 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI020_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI020_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI020_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_DPPI030_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI030_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI030_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000f0 #endif /** * @brief NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000001e #endif /** * @brief NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000020 #endif /** * @brief NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000040 #endif /** * @brief NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000081 #endif /** * @brief NRFX_DPPI020_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI020_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI020_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_DPPI030_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI030_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI030_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000f #endif /** * @brief NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI131_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000ff #endif /** * @brief NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI132_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI133_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000e1 #endif /** * @brief NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI134_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000df #endif /** * @brief NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI135_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000bf #endif /** * @brief NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_DPPI136_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000007e #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU020_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU020_ENABLED #define NRFX_EGU020_ENABLED 0 #endif /** * @brief NRFX_EGU130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU130_ENABLED #define NRFX_EGU130_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0. Maximum: 15. */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_GPIOTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE130_ENABLED #define NRFX_GPIOTE130_ENABLED 0 #endif /** * @brief NRFX_GRTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_ENABLED #define NRFX_GRTC_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_SLEEP_ALLOWED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOEN * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOEN #define NRFX_GRTC_CONFIG_AUTOEN 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOSTART * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOSTART #define NRFX_GRTC_CONFIG_AUTOSTART 0 #endif /** * @brief NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS * * Integer value. */ #ifndef NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS 4 #endif /** * @brief NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK */ #ifndef NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK 0x00000f00 #endif /** * @brief NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GRTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_LOG_ENABLED #define NRFX_GRTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GRTC_CONFIG_LOG_LEVEL #define NRFX_GRTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000030 #endif /** * @brief NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_PUB_CONFIG_ALLOWED_CHANNELS_MASK 0x0000000c #endif /** * @brief NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x000000c0 #endif /** * @brief NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT120_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0 #endif /** * @brief NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK */ #ifndef NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK #define NRFX_IPCT130_SUB_CONFIG_ALLOWED_CHANNELS_MASK 0x00000003 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_MVDMA_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA_ENABLED #define NRFX_MVDMA_ENABLED 0 #endif /** * @brief NRFX_MVDMA120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_MVDMA120_ENABLED #define NRFX_MVDMA120_ENABLED 0 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0. Maximum: 5. */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_5_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_5_ENABLED #define NRFX_PRS_BOX_5_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_6_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_6_ENABLED #define NRFX_PRS_BOX_6_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_7_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_7_ENABLED #define NRFX_PRS_BOX_7_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_8_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_8_ENABLED #define NRFX_PRS_BOX_8_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_9_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_9_ENABLED #define NRFX_PRS_BOX_9_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM120_ENABLED #define NRFX_PWM120_ENABLED 0 #endif /** * @brief NRFX_PWM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM130_ENABLED #define NRFX_PWM130_ENABLED 0 #endif /** * @brief NRFX_PWM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM131_ENABLED #define NRFX_PWM131_ENABLED 0 #endif /** * @brief NRFX_PWM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM132_ENABLED #define NRFX_PWM132_ENABLED 0 #endif /** * @brief NRFX_PWM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PWM133_ENABLED #define NRFX_PWM133_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_QDEC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC130_ENABLED #define NRFX_QDEC130_ENABLED 0 #endif /** * @brief NRFX_QDEC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC131_ENABLED #define NRFX_QDEC131_ENABLED 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC130_ENABLED #define NRFX_RTC130_ENABLED 0 #endif /** * @brief NRFX_RTC131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC131_ENABLED #define NRFX_RTC131_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM120_ENABLED #define NRFX_SPIM120_ENABLED 0 #endif /** * @brief NRFX_SPIM121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM121_ENABLED #define NRFX_SPIM121_ENABLED 0 #endif /** * @brief NRFX_SPIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM130_ENABLED #define NRFX_SPIM130_ENABLED 0 #endif /** * @brief NRFX_SPIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM131_ENABLED #define NRFX_SPIM131_ENABLED 0 #endif /** * @brief NRFX_SPIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM132_ENABLED #define NRFX_SPIM132_ENABLED 0 #endif /** * @brief NRFX_SPIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM133_ENABLED #define NRFX_SPIM133_ENABLED 0 #endif /** * @brief NRFX_SPIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM134_ENABLED #define NRFX_SPIM134_ENABLED 0 #endif /** * @brief NRFX_SPIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM135_ENABLED #define NRFX_SPIM135_ENABLED 0 #endif /** * @brief NRFX_SPIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM136_ENABLED #define NRFX_SPIM136_ENABLED 0 #endif /** * @brief NRFX_SPIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM137_ENABLED #define NRFX_SPIM137_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS120_ENABLED #define NRFX_SPIS120_ENABLED 0 #endif /** * @brief NRFX_SPIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS130_ENABLED #define NRFX_SPIS130_ENABLED 0 #endif /** * @brief NRFX_SPIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS131_ENABLED #define NRFX_SPIS131_ENABLED 0 #endif /** * @brief NRFX_SPIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS132_ENABLED #define NRFX_SPIS132_ENABLED 0 #endif /** * @brief NRFX_SPIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS133_ENABLED #define NRFX_SPIS133_ENABLED 0 #endif /** * @brief NRFX_SPIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS134_ENABLED #define NRFX_SPIS134_ENABLED 0 #endif /** * @brief NRFX_SPIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS135_ENABLED #define NRFX_SPIS135_ENABLED 0 #endif /** * @brief NRFX_SPIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS136_ENABLED #define NRFX_SPIS136_ENABLED 0 #endif /** * @brief NRFX_SPIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS137_ENABLED #define NRFX_SPIS137_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER020_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER020_ENABLED #define NRFX_TIMER020_ENABLED 0 #endif /** * @brief NRFX_TIMER021_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER021_ENABLED #define NRFX_TIMER021_ENABLED 0 #endif /** * @brief NRFX_TIMER022_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER022_ENABLED #define NRFX_TIMER022_ENABLED 0 #endif /** * @brief NRFX_TIMER120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER120_ENABLED #define NRFX_TIMER120_ENABLED 0 #endif /** * @brief NRFX_TIMER121_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER121_ENABLED #define NRFX_TIMER121_ENABLED 0 #endif /** * @brief NRFX_TIMER130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER130_ENABLED #define NRFX_TIMER130_ENABLED 0 #endif /** * @brief NRFX_TIMER131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER131_ENABLED #define NRFX_TIMER131_ENABLED 0 #endif /** * @brief NRFX_TIMER132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER132_ENABLED #define NRFX_TIMER132_ENABLED 0 #endif /** * @brief NRFX_TIMER133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER133_ENABLED #define NRFX_TIMER133_ENABLED 0 #endif /** * @brief NRFX_TIMER134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER134_ENABLED #define NRFX_TIMER134_ENABLED 0 #endif /** * @brief NRFX_TIMER135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER135_ENABLED #define NRFX_TIMER135_ENABLED 0 #endif /** * @brief NRFX_TIMER136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER136_ENABLED #define NRFX_TIMER136_ENABLED 0 #endif /** * @brief NRFX_TIMER137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER137_ENABLED #define NRFX_TIMER137_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM130_ENABLED #define NRFX_TWIM130_ENABLED 0 #endif /** * @brief NRFX_TWIM131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM131_ENABLED #define NRFX_TWIM131_ENABLED 0 #endif /** * @brief NRFX_TWIM132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM132_ENABLED #define NRFX_TWIM132_ENABLED 0 #endif /** * @brief NRFX_TWIM133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM133_ENABLED #define NRFX_TWIM133_ENABLED 0 #endif /** * @brief NRFX_TWIM134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM134_ENABLED #define NRFX_TWIM134_ENABLED 0 #endif /** * @brief NRFX_TWIM135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM135_ENABLED #define NRFX_TWIM135_ENABLED 0 #endif /** * @brief NRFX_TWIM136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM136_ENABLED #define NRFX_TWIM136_ENABLED 0 #endif /** * @brief NRFX_TWIM137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM137_ENABLED #define NRFX_TWIM137_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance * would be initialized only once. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS130_ENABLED #define NRFX_TWIS130_ENABLED 0 #endif /** * @brief NRFX_TWIS131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS131_ENABLED #define NRFX_TWIS131_ENABLED 0 #endif /** * @brief NRFX_TWIS132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS132_ENABLED #define NRFX_TWIS132_ENABLED 0 #endif /** * @brief NRFX_TWIS133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS133_ENABLED #define NRFX_TWIS133_ENABLED 0 #endif /** * @brief NRFX_TWIS134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS134_ENABLED #define NRFX_TWIS134_ENABLED 0 #endif /** * @brief NRFX_TWIS135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS135_ENABLED #define NRFX_TWIS135_ENABLED 0 #endif /** * @brief NRFX_TWIS136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS136_ENABLED #define NRFX_TWIS136_ENABLED 0 #endif /** * @brief NRFX_TWIS137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS137_ENABLED #define NRFX_TWIS137_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG - If enabled, support for * configuring GPIO pins is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG - If enabled, support for * configuring PSEL registers is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_TX_LINK - If enabled, driver supports linking * of TX transfers. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif /** * @brief NRFX_UARTE_CONFIG_RX_CACHE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_RX_CACHE_ENABLED #define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE120_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE120_ENABLED #define NRFX_UARTE120_ENABLED 0 #endif /** * @brief NRFX_UARTE130_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE130_ENABLED #define NRFX_UARTE130_ENABLED 0 #endif /** * @brief NRFX_UARTE131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE131_ENABLED #define NRFX_UARTE131_ENABLED 0 #endif /** * @brief NRFX_UARTE132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE132_ENABLED #define NRFX_UARTE132_ENABLED 0 #endif /** * @brief NRFX_UARTE133_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE133_ENABLED #define NRFX_UARTE133_ENABLED 0 #endif /** * @brief NRFX_UARTE134_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE134_ENABLED #define NRFX_UARTE134_ENABLED 0 #endif /** * @brief NRFX_UARTE135_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE135_ENABLED #define NRFX_UARTE135_ENABLED 0 #endif /** * @brief NRFX_UARTE136_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE136_ENABLED #define NRFX_UARTE136_ENABLED 0 #endif /** * @brief NRFX_UARTE137_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE137_ENABLED #define NRFX_UARTE137_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 7. */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT010_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT010_ENABLED #define NRFX_WDT010_ENABLED 0 #endif /** * @brief NRFX_WDT011_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT011_ENABLED #define NRFX_WDT011_ENABLED 0 #endif /** * @brief NRFX_WDT131_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT131_ENABLED #define NRFX_WDT131_ENABLED 0 #endif /** * @brief NRFX_WDT132_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT132_ENABLED #define NRFX_WDT132_ENABLED 0 #endif #endif /* NRFX_CONFIG_NRF54H20_RADIOCORE_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54h20_radiocore.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,020
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF51_H__ #define NRFX_CONFIG_NRF51_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 3 #endif /** * @brief NRFX_ADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_ADC_ENABLED #define NRFX_ADC_ENABLED 0 #endif /** * @brief NRFX_ADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_ADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_ADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_ADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_ADC_CONFIG_LOG_ENABLED #define NRFX_ADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_ADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_ADC_CONFIG_LOG_LEVEL #define NRFX_ADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI1_ENABLED #define NRFX_SPI1_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI1_ENABLED #define NRFX_TWI1_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF51_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf51.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,531
```c /* * */ #include <nrfx.h> #include <zephyr/kernel.h> #include <soc/nrfx_coredep.h> void nrfx_isr(const void *irq_handler) { ((nrfx_irq_handler_t)irq_handler)(); } void nrfx_busy_wait(uint32_t usec_to_wait) { if (IS_ENABLED(CONFIG_SYS_CLOCK_EXISTS)) { k_busy_wait(usec_to_wait); } else { nrfx_coredep_delay_us(usec_to_wait); } } char const *nrfx_error_string_get(nrfx_err_t code) { #define NRFX_ERROR_STRING_CASE(code) case code: return #code switch (code) { NRFX_ERROR_STRING_CASE(NRFX_SUCCESS); NRFX_ERROR_STRING_CASE(NRFX_ERROR_INTERNAL); NRFX_ERROR_STRING_CASE(NRFX_ERROR_NO_MEM); NRFX_ERROR_STRING_CASE(NRFX_ERROR_NOT_SUPPORTED); NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_PARAM); NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_STATE); NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_LENGTH); NRFX_ERROR_STRING_CASE(NRFX_ERROR_TIMEOUT); NRFX_ERROR_STRING_CASE(NRFX_ERROR_FORBIDDEN); NRFX_ERROR_STRING_CASE(NRFX_ERROR_NULL); NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_ADDR); NRFX_ERROR_STRING_CASE(NRFX_ERROR_BUSY); NRFX_ERROR_STRING_CASE(NRFX_ERROR_ALREADY_INITIALIZED); NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_OVERRUN); NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_ANACK); NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_DNACK); default: return "unknown"; } } ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_glue.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
391
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF91_H__ #define NRFX_CONFIG_NRF91_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif #define NRF_CLOCK NRF_PERIPH(NRF_CLOCK) #define NRF_DPPIC NRF_PERIPH(NRF_DPPIC) #define NRF_EGU0 NRF_PERIPH(NRF_EGU0) #define NRF_EGU1 NRF_PERIPH(NRF_EGU1) #define NRF_EGU2 NRF_PERIPH(NRF_EGU2) #define NRF_EGU3 NRF_PERIPH(NRF_EGU3) #define NRF_EGU4 NRF_PERIPH(NRF_EGU4) #define NRF_EGU5 NRF_PERIPH(NRF_EGU5) #define NRF_FPU NRF_PERIPH(NRF_FPU) #define NRF_I2S NRF_PERIPH(NRF_I2S) #define NRF_IPC NRF_PERIPH(NRF_IPC) #define NRF_KMU NRF_PERIPH(NRF_KMU) #define NRF_NVMC NRF_PERIPH(NRF_NVMC) #define NRF_P0 NRF_PERIPH(NRF_P0) #define NRF_PDM NRF_PERIPH(NRF_PDM) #define NRF_POWER NRF_PERIPH(NRF_POWER) #define NRF_PWM0 NRF_PERIPH(NRF_PWM0) #define NRF_PWM1 NRF_PERIPH(NRF_PWM1) #define NRF_PWM2 NRF_PERIPH(NRF_PWM2) #define NRF_PWM3 NRF_PERIPH(NRF_PWM3) #define NRF_REGULATORS NRF_PERIPH(NRF_REGULATORS) #define NRF_RTC0 NRF_PERIPH(NRF_RTC0) #define NRF_RTC1 NRF_PERIPH(NRF_RTC1) #define NRF_SAADC NRF_PERIPH(NRF_SAADC) #define NRF_SPIM0 NRF_PERIPH(NRF_SPIM0) #define NRF_SPIM1 NRF_PERIPH(NRF_SPIM1) #define NRF_SPIM2 NRF_PERIPH(NRF_SPIM2) #define NRF_SPIM3 NRF_PERIPH(NRF_SPIM3) #define NRF_SPIS0 NRF_PERIPH(NRF_SPIS0) #define NRF_SPIS1 NRF_PERIPH(NRF_SPIS1) #define NRF_SPIS2 NRF_PERIPH(NRF_SPIS2) #define NRF_SPIS3 NRF_PERIPH(NRF_SPIS3) #define NRF_TIMER0 NRF_PERIPH(NRF_TIMER0) #define NRF_TIMER1 NRF_PERIPH(NRF_TIMER1) #define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) #define NRF_TWIM0 NRF_PERIPH(NRF_TWIM0) #define NRF_TWIM1 NRF_PERIPH(NRF_TWIM1) #define NRF_TWIM2 NRF_PERIPH(NRF_TWIM2) #define NRF_TWIM3 NRF_PERIPH(NRF_TWIM3) #define NRF_TWIS0 NRF_PERIPH(NRF_TWIS0) #define NRF_TWIS1 NRF_PERIPH(NRF_TWIS1) #define NRF_TWIS2 NRF_PERIPH(NRF_TWIS2) #define NRF_TWIS3 NRF_PERIPH(NRF_TWIS3) #define NRF_UARTE0 NRF_PERIPH(NRF_UARTE0) #define NRF_UARTE1 NRF_PERIPH(NRF_UARTE1) #define NRF_UARTE2 NRF_PERIPH(NRF_UARTE2) #define NRF_UARTE3 NRF_PERIPH(NRF_UARTE3) #define NRF_VMC NRF_PERIPH(NRF_VMC) #define NRF_WDT NRF_PERIPH(NRF_WDT) /* * The following section provides the name translation for peripherals with * only one type of access available. For these peripherals, you cannot choose * between secure and non-secure mapping. */ #if defined(NRF_TRUSTZONE_NONSECURE) #define NRF_GPIOTE NRF_GPIOTE1 #define NRF_GPIOTE1 NRF_GPIOTE1_NS #else #define NRF_CC_HOST_RGF NRF_CC_HOST_RGF_S #define NRF_CRYPTOCELL NRF_CRYPTOCELL_S #define NRF_CTRL_AP_PERI NRF_CTRL_AP_PERI_S #define NRF_FICR NRF_FICR_S #define NRF_GPIOTE NRF_GPIOTE0 #define NRF_GPIOTE0 NRF_GPIOTE0_S #define NRF_GPIOTE1 NRF_GPIOTE1_NS #define NRF_SPU NRF_SPU_S #define NRF_TAD NRF_TAD_S #define NRF_UICR NRF_UICR_S #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 1 * - XTAL = 2 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 2 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_EGU2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU2_ENABLED #define NRFX_EGU2_ENABLED 0 #endif /** * @brief NRFX_EGU3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU3_ENABLED #define NRFX_EGU3_ENABLED 0 #endif /** * @brief NRFX_EGU4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU4_ENABLED #define NRFX_EGU4_ENABLED 0 #endif /** * @brief NRFX_EGU5_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU5_ENABLED #define NRFX_EGU5_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_IPC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_IPC_ENABLED #define NRFX_IPC_ENABLED 0 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_PWM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM1_ENABLED #define NRFX_PWM1_ENABLED 0 #endif /** * @brief NRFX_PWM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM2_ENABLED #define NRFX_PWM2_ENABLED 0 #endif /** * @brief NRFX_PWM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM3_ENABLED #define NRFX_PWM3_ENABLED 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM2_ENABLED #define NRFX_SPIM2_ENABLED 0 #endif /** * @brief NRFX_SPIM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM3_ENABLED #define NRFX_SPIM3_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SPIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS2_ENABLED #define NRFX_SPIS2_ENABLED 0 #endif /** * @brief NRFX_SPIS3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS3_ENABLED #define NRFX_SPIS3_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM1_ENABLED #define NRFX_TWIM1_ENABLED 0 #endif /** * @brief NRFX_TWIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM2_ENABLED #define NRFX_TWIM2_ENABLED 0 #endif /** * @brief NRFX_TWIM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM3_ENABLED #define NRFX_TWIM3_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_TWIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS1_ENABLED #define NRFX_TWIS1_ENABLED 0 #endif /** * @brief NRFX_TWIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS2_ENABLED #define NRFX_TWIS2_ENABLED 0 #endif /** * @brief NRFX_TWIS3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS3_ENABLED #define NRFX_TWIS3_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_UARTE1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE1_ENABLED #define NRFX_UARTE1_ENABLED 0 #endif /** * @brief NRFX_UARTE2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE2_ENABLED #define NRFX_UARTE2_ENABLED 0 #endif /** * @brief NRFX_UARTE3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE3_ENABLED #define NRFX_UARTE3_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif /* NRFX_CONFIG_NRF91_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf91.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,962
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52840_H__ #define NRFX_CONFIG_NRF52840_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_EGU2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU2_ENABLED #define NRFX_EGU2_ENABLED 0 #endif /** * @brief NRFX_EGU3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU3_ENABLED #define NRFX_EGU3_ENABLED 0 #endif /** * @brief NRFX_EGU4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU4_ENABLED #define NRFX_EGU4_ENABLED 0 #endif /** * @brief NRFX_EGU5_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU5_ENABLED #define NRFX_EGU5_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0 Maximum: 5 */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 4 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_PWM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM1_ENABLED #define NRFX_PWM1_ENABLED 0 #endif /** * @brief NRFX_PWM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM2_ENABLED #define NRFX_PWM2_ENABLED 0 #endif /** * @brief NRFX_PWM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM3_ENABLED #define NRFX_PWM3_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_QSPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QSPI_ENABLED #define NRFX_QSPI_ENABLED 0 #endif /** * @brief NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QSPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_RTC2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC2_ENABLED #define NRFX_RTC2_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI1_ENABLED #define NRFX_SPI1_ENABLED 0 #endif /** * @brief NRFX_SPI2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI2_ENABLED #define NRFX_SPI2_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED #define NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED 0 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM1_ENABLED #define NRFX_SPIM1_ENABLED 0 #endif /** * @brief NRFX_SPIM2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM2_ENABLED #define NRFX_SPIM2_ENABLED 0 #endif /** * @brief NRFX_SPIM3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM3_ENABLED #define NRFX_SPIM3_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SPIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS1_ENABLED #define NRFX_SPIS1_ENABLED 0 #endif /** * @brief NRFX_SPIS2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS2_ENABLED #define NRFX_SPIS2_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TIMER3_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER3_ENABLED #define NRFX_TIMER3_ENABLED 0 #endif /** * @brief NRFX_TIMER4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER4_ENABLED #define NRFX_TIMER4_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWI1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI1_ENABLED #define NRFX_TWI1_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIM1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM1_ENABLED #define NRFX_TWIM1_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_TWIS1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS1_ENABLED #define NRFX_TWIS1_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_UARTE1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE1_ENABLED #define NRFX_UARTE1_ENABLED 0 #endif /** * @brief NRFX_USBD_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_ENABLED #define NRFX_USBD_ENABLED 0 #endif /** * @brief NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_USBD_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1 #endif /** * @brief NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no * data is ready. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_USBD_CONFIG_LOG_ENABLED #define NRFX_USBD_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_USBD_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_USBD_CONFIG_LOG_LEVEL #define NRFX_USBD_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52840_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52840.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,880
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF52810_H__ #define NRFX_CONFIG_NRF52810_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 * - External Low Swing = 131073 * - External Full Swing = 196609 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_CT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_CT_ENABLED #define NRFX_CLOCK_CONFIG_CT_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_EGU1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU1_ENABLED #define NRFX_EGU1_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PPI_CONFIG_LOG_ENABLED #define NRFX_PPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PPI_CONFIG_LOG_LEVEL #define NRFX_PPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PWM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_ENABLED #define NRFX_SPI_ENABLED 0 #endif /** * @brief NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI_CONFIG_LOG_ENABLED #define NRFX_SPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPI_CONFIG_LOG_LEVEL #define NRFX_SPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPI0_ENABLED #define NRFX_SPI0_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 0 #endif /** * @brief NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI_CONFIG_LOG_ENABLED #define NRFX_TWI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWI_CONFIG_LOG_LEVEL #define NRFX_TWI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWI0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_UART_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_ENABLED #define NRFX_UART_ENABLED 0 #endif /** * @brief NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UART_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART_CONFIG_LOG_ENABLED #define NRFX_UART_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UART_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UART_CONFIG_LOG_LEVEL #define NRFX_UART_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UART0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UART0_ENABLED #define NRFX_UART0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF52810_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf52810.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,598
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF5340_NETWORK_H__ #define NRFX_CONFIG_NRF5340_NETWORK_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /* * The MDK provides macros for accessing the peripheral register structures * by using their secure and non-secure address mappings (with the names * containing the suffix _S or _NS, respectively). Because the nrfx drivers * use the macros without any suffixes, you must translate the names. * The following section provides configuration for the name translation. */ #define NRF_AAR NRF_AAR_NS #define NRF_ACL NRF_ACL_NS #define NRF_CCM NRF_CCM_NS #define NRF_CLOCK NRF_CLOCK_NS #define NRF_CTI NRF_CTI_NS #define NRF_CTRLAP NRF_CTRLAP_NS #define NRF_DCNF NRF_DCNF_NS #define NRF_DPPIC NRF_DPPIC_NS #define NRF_ECB NRF_ECB_NS #define NRF_EGU0 NRF_EGU0_NS #define NRF_FICR NRF_FICR_NS #define NRF_GPIOTE NRF_GPIOTE_NS #define NRF_IPC NRF_IPC_NS #define NRF_NVMC NRF_NVMC_NS #define NRF_P0 NRF_P0_NS #define NRF_P1 NRF_P1_NS #define NRF_POWER NRF_POWER_NS #define NRF_RADIO NRF_RADIO_NS #define NRF_RESET NRF_RESET_NS #define NRF_RNG NRF_RNG_NS #define NRF_RTC0 NRF_RTC0_NS #define NRF_RTC1 NRF_RTC1_NS #define NRF_SPIM0 NRF_SPIM0_NS #define NRF_SPIS0 NRF_SPIS0_NS #define NRF_SWI0 NRF_SWI0_NS #define NRF_SWI1 NRF_SWI1_NS #define NRF_SWI2 NRF_SWI2_NS #define NRF_SWI3 NRF_SWI3_NS #define NRF_TEMP NRF_TEMP_NS #define NRF_TIMER0 NRF_TIMER0_NS #define NRF_TIMER1 NRF_TIMER1_NS #define NRF_TIMER2 NRF_TIMER2_NS #define NRF_TWIM0 NRF_TWIM0_NS #define NRF_TWIS0 NRF_TWIS0_NS #define NRF_UARTE0 NRF_UARTE0_NS #define NRF_UICR NRF_UICR_NS #define NRF_VMC NRF_VMC_NS #define NRF_VREQCTRL NRF_VREQCTRL_NS #define NRF_WDT NRF_WDT_NS /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 7 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 1 * - XTAL = 2 * - Synth = 3 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 2 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_EGU0_ENABLED #define NRFX_EGU0_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0 Maximum: 15 */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_IPC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_IPC_ENABLED #define NRFX_IPC_ENABLED 0 #endif /** * @brief NRFX_NVMC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_NVMC_ENABLED #define NRFX_NVMC_ENABLED 0 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_RNG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_ENABLED #define NRFX_RNG_ENABLED 0 #endif /** * @brief NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RNG_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RNG_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RNG_CONFIG_LOG_ENABLED #define NRFX_RNG_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RNG_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RNG_CONFIG_LOG_LEVEL #define NRFX_RNG_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_RTC0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC0_ENABLED #define NRFX_RTC0_ENABLED 0 #endif /** * @brief NRFX_RTC1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_RTC1_ENABLED #define NRFX_RTC1_ENABLED 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIM0_ENABLED #define NRFX_SPIM0_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_SPIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SPIS0_ENABLED #define NRFX_SPIS0_ENABLED 0 #endif /** * @brief NRFX_SYSTICK_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_SYSTICK_ENABLED #define NRFX_SYSTICK_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TIMER0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 0 #endif /** * @brief NRFX_TIMER1_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 0 #endif /** * @brief NRFX_TIMER2_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIM0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIM0_ENABLED #define NRFX_TWIM0_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized * only once. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_TWIS0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_TWIS0_ENABLED #define NRFX_TWIS0_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 3 #endif /** * @brief NRFX_UARTE0_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_UARTE0_ENABLED #define NRFX_UARTE0_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 7 */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 3 #endif #endif // NRFX_CONFIG_NRF5340_NETWORK_H__ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf5340_network.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,946
```unknown config HAS_NRFX bool menu "nrfx drivers" depends on HAS_NRFX rsource "Kconfig.logging" config NRFX_ADC bool "ADC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_ADC)) config NRFX_CLOCK bool "CLOCK driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_CLOCK)) config NRFX_CLOCK_LFXO_TWO_STAGE_ENABLED bool "Two stage start sequence of the low frequency clock" depends on NRFX_CLOCK config NRFX_COMP bool "COMP driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_COMP)) config NRFX_DPPI bool "DPPI allocator" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_DPPIC)) config NRFX_EGU bool config NRFX_EGU0 bool "EGU0 driver instance" depends on $(dt_nodelabel_has_compat,egu0,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU1 bool "EGU1 driver instance" depends on $(dt_nodelabel_has_compat,egu1,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU2 bool "EGU2 driver instance" depends on $(dt_nodelabel_has_compat,egu2,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU3 bool "EGU3 driver instance" depends on $(dt_nodelabel_has_compat,egu3,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU4 bool "EGU4 driver instance" depends on $(dt_nodelabel_has_compat,egu4,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU5 bool "EGU5 driver instance" depends on $(dt_nodelabel_has_compat,egu5,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU10 bool "EGU10 driver instance" depends on $(dt_nodelabel_has_compat,egu10,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU20 bool "EGU20 driver instance" depends on $(dt_nodelabel_has_compat,egu20,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU020 bool "EGU020 driver instance" depends on $(dt_nodelabel_has_compat,egu020,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_EGU130 bool "EGU130 driver instance" depends on $(dt_nodelabel_has_compat,egu130,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU config NRFX_GPIOTE bool config NRFX_GPIOTE0 bool "GPIOTE0 driver instance" depends on $(dt_nodelabel_has_compat,gpiote0,$(DT_COMPAT_NORDIC_NRF_GPIOTE)) select NRFX_GPIOTE config NRFX_GPIOTE1 bool "GPIOTE1 driver instance" depends on $(dt_nodelabel_has_compat,gpiote1,$(DT_COMPAT_NORDIC_NRF_GPIOTE)) select NRFX_GPIOTE config NRFX_GPIOTE20 bool "NRFX_GPIOTE20 driver instance" depends on $(dt_nodelabel_has_compat,gpiote20,$(DT_COMPAT_NORDIC_NRF_GPIOTE)) select NRFX_GPIOTE config NRFX_GPIOTE30 bool "NRFX_GPIOTE30 driver instance" depends on $(dt_nodelabel_has_compat,gpiote30,$(DT_COMPAT_NORDIC_NRF_GPIOTE)) select NRFX_GPIOTE config NRFX_GPIOTE130 bool "NRFX_GPIOTE130 driver instance" depends on $(dt_nodelabel_has_compat,gpiote130,$(DT_COMPAT_NORDIC_NRF_GPIOTE)) select NRFX_GPIOTE config NRFX_GPIOTE131 bool "NRFX_GPIOTE131 driver instance" depends on $(dt_nodelabel_has_compat,gpiote131,$(DT_COMPAT_NORDIC_NRF_GPIOTE)) select NRFX_GPIOTE config NRFX_GPIOTE_NUM_OF_EVT_HANDLERS int "Number of event handlers" depends on NRFX_GPIOTE range 1 15 help Specifies number of handlers that can be registered to nrfx_gpiote driver by the user. config NRFX_GRTC bool "GRTC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_GRTC)) config NRFX_I2S bool config NRFX_I2S0 bool "I2S0 driver instance" depends on $(dt_nodelabel_has_compat,i2s0,$(DT_COMPAT_NORDIC_NRF_I2S)) select NRFX_I2S config NRFX_I2S20 bool "I2S20 driver instance" depends on $(dt_nodelabel_has_compat,i2s20,$(DT_COMPAT_NORDIC_NRF_I2S)) select NRFX_I2S config NRFX_IPC bool "IPC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_IPC)) config NRFX_LPCOMP bool "LPCOMP driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_LPCOMP)) config NRFX_NFCT bool "NFCT driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_NFCT)) select NRFX_TIMER4 if SOC_SERIES_NRF52X select NRFX_TIMER2 if SOC_SERIES_NRF53X config NRFX_NVMC bool "NVMC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF51_FLASH_CONTROLLER)) \ || $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF52_FLASH_CONTROLLER)) \ || $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF53_FLASH_CONTROLLER)) \ || $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF91_FLASH_CONTROLLER)) config NRFX_PDM bool "PDM driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PDM)) config NRFX_POWER bool "POWER driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_POWER)) # On SoCs featuring the USBREG peripheral, the POWER driver uses # internally the USBREG driver. select NRFX_USBREG if $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBREG)) config NRFX_PPI bool "PPI allocator" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI)) config NRFX_PWM bool config NRFX_PWM0 bool "PWM0 driver instance" depends on $(dt_nodelabel_has_compat,pwm0,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM1 bool "PWM1 driver instance" depends on $(dt_nodelabel_has_compat,pwm1,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM2 bool "PWM2 driver instance" depends on $(dt_nodelabel_has_compat,pwm2,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM3 bool "PWM3 driver instance" depends on $(dt_nodelabel_has_compat,pwm3,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM20 bool "PWM20 driver instance" depends on $(dt_nodelabel_has_compat,pwm20,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM21 bool "PWM21 driver instance" depends on $(dt_nodelabel_has_compat,pwm21,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM22 bool "PWM22 driver instance" depends on $(dt_nodelabel_has_compat,pwm22,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM120 bool "PWM120 driver instance" depends on $(dt_nodelabel_has_compat,pwm120,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM130 bool "PWM130 driver instance" depends on $(dt_nodelabel_has_compat,pwm130,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM131 bool "PWM131 driver instance" depends on $(dt_nodelabel_has_compat,pwm131,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM132 bool "PWM132 driver instance" depends on $(dt_nodelabel_has_compat,pwm132,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_PWM133 bool "PWM133 driver instance" depends on $(dt_nodelabel_has_compat,pwm133,$(DT_COMPAT_NORDIC_NRF_PWM)) select NRFX_PWM config NRFX_QDEC bool config NRFX_QDEC0 bool "QDEC0 driver instance" depends on $(dt_nodelabel_has_compat,qdec0,$(DT_COMPAT_NORDIC_NRF_QDEC)) select NRFX_QDEC config NRFX_QDEC1 bool "QDEC1 driver instance" depends on $(dt_nodelabel_has_compat,qdec1,$(DT_COMPAT_NORDIC_NRF_QDEC)) select NRFX_QDEC config NRFX_QDEC20 bool "QDEC20 driver instance" depends on $(dt_nodelabel_has_compat,qdec20,$(DT_COMPAT_NORDIC_NRF_QDEC)) select NRFX_QDEC config NRFX_QDEC21 bool "QDEC21 driver instance" depends on $(dt_nodelabel_has_compat,qdec21,$(DT_COMPAT_NORDIC_NRF_QDEC)) select NRFX_QDEC config NRFX_QDEC130 bool "QDEC130 driver instance" depends on $(dt_nodelabel_has_compat,qdec130,$(DT_COMPAT_NORDIC_NRF_QDEC)) select NRFX_QDEC config NRFX_QDEC131 bool "QDEC131 driver instance" depends on $(dt_nodelabel_has_compat,qdec131,$(DT_COMPAT_NORDIC_NRF_QDEC)) select NRFX_QDEC config NRFX_QSPI bool "QSPI driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_QSPI)) config NRFX_RNG bool "RNG driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_RNG)) config NRFX_RRAMC bool "RRAMC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_RRAM_CONTROLLER)) config NRFX_RTC bool config NRFX_RTC0 bool "RTC0 driver instance" depends on $(dt_nodelabel_has_compat,rtc0,$(DT_COMPAT_NORDIC_NRF_RTC)) select NRFX_RTC config NRFX_RTC1 bool "RTC1 driver instance" depends on $(dt_nodelabel_has_compat,rtc1,$(DT_COMPAT_NORDIC_NRF_RTC)) select NRFX_RTC config NRFX_RTC2 bool "RTC2 driver instance" depends on $(dt_nodelabel_has_compat,rtc2,$(DT_COMPAT_NORDIC_NRF_RTC)) select NRFX_RTC config NRFX_RTC130 bool "RTC130 driver instance" depends on $(dt_nodelabel_has_compat,rtc130,$(DT_COMPAT_NORDIC_NRF_RTC)) select NRFX_RTC config NRFX_RTC131 bool "RTC131 driver instance" depends on $(dt_nodelabel_has_compat,rtc131,$(DT_COMPAT_NORDIC_NRF_RTC)) select NRFX_RTC config NRFX_SAADC bool "SAADC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SAADC)) config NRFX_SPI bool config NRFX_SPI0 bool "SPI0 driver instance" depends on $(dt_nodelabel_has_compat,spi0,$(DT_COMPAT_NORDIC_NRF_SPI)) select NRFX_SPI config NRFX_SPI1 bool "SPI1 driver instance" depends on $(dt_nodelabel_has_compat,spi1,$(DT_COMPAT_NORDIC_NRF_SPI)) select NRFX_SPI config NRFX_SPI2 bool "SPI2 driver instance" depends on $(dt_nodelabel_has_compat,spi2,$(DT_COMPAT_NORDIC_NRF_SPI)) select NRFX_SPI config NRFX_SPIM bool config NRFX_SPIM0 bool "SPIM0 driver instance" depends on $(dt_nodelabel_has_compat,spi0,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM1 bool "SPIM1 driver instance" depends on $(dt_nodelabel_has_compat,spi1,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM2 bool "SPIM2 driver instance" depends on $(dt_nodelabel_has_compat,spi2,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM3 bool "SPIM3 driver instance" depends on $(dt_nodelabel_has_compat,spi3,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM4 bool "SPIM4 driver instance" depends on $(dt_nodelabel_has_compat,spi4,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM00 bool "SPIM00 driver instance" depends on $(dt_nodelabel_has_compat,spi00,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM20 bool "SPIM20 driver instance" depends on $(dt_nodelabel_has_compat,spi20,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM21 bool "SPIM21 driver instance" depends on $(dt_nodelabel_has_compat,spi21,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM22 bool "SPIM22 driver instance" depends on $(dt_nodelabel_has_compat,spi22,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM30 bool "SPIM30 driver instance" depends on $(dt_nodelabel_has_compat,spi30,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM120 bool "SPIM120 driver instance" depends on $(dt_nodelabel_has_compat,spi120,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM121 bool "SPIM121 driver instance" depends on $(dt_nodelabel_has_compat,spi121,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM130 bool "SPIM130 driver instance" depends on $(dt_nodelabel_has_compat,spi130,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM131 bool "SPIM131 driver instance" depends on $(dt_nodelabel_has_compat,spi131,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM132 bool "SPIM132 driver instance" depends on $(dt_nodelabel_has_compat,spi132,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM133 bool "SPIM133 driver instance" depends on $(dt_nodelabel_has_compat,spi133,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM134 bool "SPIM134 driver instance" depends on $(dt_nodelabel_has_compat,spi134,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM135 bool "SPIM135 driver instance" depends on $(dt_nodelabel_has_compat,spi135,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM136 bool "SPIM136 driver instance" depends on $(dt_nodelabel_has_compat,spi136,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIM137 bool "SPIM137 driver instance" depends on $(dt_nodelabel_has_compat,spi137,$(DT_COMPAT_NORDIC_NRF_SPIM)) select NRFX_SPIM config NRFX_SPIS bool config NRFX_SPIS0 bool "SPIS0 driver instance" depends on $(dt_nodelabel_has_compat,spi0,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS1 bool "SPIS1 driver instance" depends on $(dt_nodelabel_has_compat,spi1,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS2 bool "SPIS2 driver instance" depends on $(dt_nodelabel_has_compat,spi2,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS3 bool "SPIS3 driver instance" depends on $(dt_nodelabel_has_compat,spi3,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS00 bool "SPIS00 driver instance" depends on $(dt_nodelabel_has_compat,spi00,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS20 bool "SPIS20 driver instance" depends on $(dt_nodelabel_has_compat,spi20,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS21 bool "SPIS21 driver instance" depends on $(dt_nodelabel_has_compat,spi21,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS22 bool "SPIS22 driver instance" depends on $(dt_nodelabel_has_compat,spi22,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS30 bool "SPIS30 driver instance" depends on $(dt_nodelabel_has_compat,spi30,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS120 bool "SPIS120 driver instance" depends on $(dt_nodelabel_has_compat,spi120,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS130 bool "SPIS130 driver instance" depends on $(dt_nodelabel_has_compat,spi130,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS131 bool "SPIS131 driver instance" depends on $(dt_nodelabel_has_compat,spi131,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS132 bool "SPIS132 driver instance" depends on $(dt_nodelabel_has_compat,spi132,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS133 bool "SPIS133 driver instance" depends on $(dt_nodelabel_has_compat,spi133,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS134 bool "SPIS134 driver instance" depends on $(dt_nodelabel_has_compat,spi134,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS135 bool "SPIS135 driver instance" depends on $(dt_nodelabel_has_compat,spi135,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS136 bool "SPIS136 driver instance" depends on $(dt_nodelabel_has_compat,spi136,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SPIS137 bool "SPIS137 driver instance" depends on $(dt_nodelabel_has_compat,spi137,$(DT_COMPAT_NORDIC_NRF_SPIS)) select NRFX_SPIS config NRFX_SYSTICK bool "SYSTICK driver" depends on CPU_CORTEX_M_HAS_SYSTICK config NRFX_TEMP bool "TEMP driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_TEMP)) config NRFX_TIMER bool config NRFX_TIMER0 bool "TIMER0 driver instance" depends on $(dt_nodelabel_has_compat,timer0,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER1 bool "TIMER1 driver instance" depends on $(dt_nodelabel_has_compat,timer1,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER2 bool "TIMER2 driver instance" depends on $(dt_nodelabel_has_compat,timer2,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER3 bool "TIMER3 driver instance" depends on $(dt_nodelabel_has_compat,timer3,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER4 bool "TIMER4 driver instance" depends on $(dt_nodelabel_has_compat,timer4,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER00 bool "TIMER00 driver instance" depends on $(dt_nodelabel_has_compat,timer00,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER10 bool "TIMER10 driver instance" depends on $(dt_nodelabel_has_compat,timer10,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER20 bool "TIMER20 driver instance" depends on $(dt_nodelabel_has_compat,timer20,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER21 bool "TIMER21 driver instance" depends on $(dt_nodelabel_has_compat,timer21,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER22 bool "TIMER22 driver instance" depends on $(dt_nodelabel_has_compat,timer22,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER23 bool "TIMER23 driver instance" depends on $(dt_nodelabel_has_compat,timer23,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER24 bool "TIMER24 driver instance" depends on $(dt_nodelabel_has_compat,timer24,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER020 bool "TIMER020 driver instance" depends on $(dt_nodelabel_has_compat,timer020,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER021 bool "TIMER021 driver instance" depends on $(dt_nodelabel_has_compat,timer021,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER022 bool "TIMER022 driver instance" depends on $(dt_nodelabel_has_compat,timer022,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER120 bool "TIMER120 driver instance" depends on $(dt_nodelabel_has_compat,timer120,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER121 bool "TIMER121 driver instance" depends on $(dt_nodelabel_has_compat,timer121,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER130 bool "TIMER130 driver instance" depends on $(dt_nodelabel_has_compat,timer130,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER131 bool "TIMER131 driver instance" depends on $(dt_nodelabel_has_compat,timer131,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER132 bool "TIMER132 driver instance" depends on $(dt_nodelabel_has_compat,timer132,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER133 bool "TIMER133 driver instance" depends on $(dt_nodelabel_has_compat,timer133,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER134 bool "TIMER134 driver instance" depends on $(dt_nodelabel_has_compat,timer134,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER135 bool "TIMER135 driver instance" depends on $(dt_nodelabel_has_compat,timer135,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER136 bool "TIMER136 driver instance" depends on $(dt_nodelabel_has_compat,timer136,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TIMER137 bool "TIMER137 driver instance" depends on $(dt_nodelabel_has_compat,timer137,$(DT_COMPAT_NORDIC_NRF_TIMER)) select NRFX_TIMER config NRFX_TWI bool config NRFX_TWI0 bool "TWI0 driver instance" depends on $(dt_nodelabel_has_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWI)) select NRFX_TWI config NRFX_TWI1 bool "TWI1 driver instance" depends on $(dt_nodelabel_has_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWI)) select NRFX_TWI config NRFX_TWIM bool config NRFX_TWIM0 bool "TWIM0 driver instance" depends on $(dt_nodelabel_has_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM1 bool "TWIM1 driver instance" depends on $(dt_nodelabel_has_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM2 bool "TWIM2 driver instance" depends on $(dt_nodelabel_has_compat,i2c2,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM3 bool "TWIM3 driver instance" depends on $(dt_nodelabel_has_compat,i2c3,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM20 bool "TWIM20 driver instance" depends on $(dt_nodelabel_has_compat,i2c20,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM21 bool "TWIM21 driver instance" depends on $(dt_nodelabel_has_compat,i2c21,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM22 bool "TWIM22 driver instance" depends on $(dt_nodelabel_has_compat,i2c22,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM30 bool "TWIM30 driver instance" depends on $(dt_nodelabel_has_compat,i2c30,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM120 bool "TWIM120 driver instance" depends on $(dt_nodelabel_has_compat,i2c120,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM130 bool "TWIM130 driver instance" depends on $(dt_nodelabel_has_compat,i2c130,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM131 bool "TWIM131 driver instance" depends on $(dt_nodelabel_has_compat,i2c131,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM132 bool "TWIM132 driver instance" depends on $(dt_nodelabel_has_compat,i2c132,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM133 bool "TWIM133 driver instance" depends on $(dt_nodelabel_has_compat,i2c133,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM134 bool "TWIM134 driver instance" depends on $(dt_nodelabel_has_compat,i2c134,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM135 bool "TWIM135 driver instance" depends on $(dt_nodelabel_has_compat,i2c135,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM136 bool "TWIM136 driver instance" depends on $(dt_nodelabel_has_compat,i2c136,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIM137 bool "TWIM137 driver instance" depends on $(dt_nodelabel_has_compat,i2c137,$(DT_COMPAT_NORDIC_NRF_TWIM)) select NRFX_TWIM config NRFX_TWIS bool config NRFX_TWIS0 bool "TWIS0 driver instance" depends on $(dt_nodelabel_has_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS1 bool "TWIS1 driver instance" depends on $(dt_nodelabel_has_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS2 bool "TWIS2 driver instance" depends on $(dt_nodelabel_has_compat,i2c2,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS3 bool "TWIS3 driver instance" depends on $(dt_nodelabel_has_compat,i2c3,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS20 bool "TWIS20 driver instance" depends on $(dt_nodelabel_has_compat,i2c20,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS21 bool "TWIS21 driver instance" depends on $(dt_nodelabel_has_compat,i2c21,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS22 bool "TWIS22 driver instance" depends on $(dt_nodelabel_has_compat,i2c22,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS30 bool "TWIS30 driver instance" depends on $(dt_nodelabel_has_compat,i2c30,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS130 bool "TWIS130 driver instance" depends on $(dt_nodelabel_has_compat,i2c130,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS131 bool "TWIS131 driver instance" depends on $(dt_nodelabel_has_compat,i2c131,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS132 bool "TWIS132 driver instance" depends on $(dt_nodelabel_has_compat,i2c132,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS133 bool "TWIS133 driver instance" depends on $(dt_nodelabel_has_compat,i2c133,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS134 bool "TWIS134 driver instance" depends on $(dt_nodelabel_has_compat,i2c134,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS135 bool "TWIS135 driver instance" depends on $(dt_nodelabel_has_compat,i2c135,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS136 bool "TWIS136 driver instance" depends on $(dt_nodelabel_has_compat,i2c136,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_TWIS137 bool "TWIS137 driver instance" depends on $(dt_nodelabel_has_compat,i2c137,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS config NRFX_UART bool config NRFX_UART0 bool "UART0 driver instance" depends on $(dt_nodelabel_has_compat,uart0,$(DT_COMPAT_NORDIC_NRF_UART)) select NRFX_UART config NRFX_UARTE bool config NRFX_UARTE0 bool "UARTE0 driver instance" depends on $(dt_nodelabel_has_compat,uart0,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE1 bool "UARTE1 driver instance" depends on $(dt_nodelabel_has_compat,uart1,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE2 bool "UARTE2 driver instance" depends on $(dt_nodelabel_has_compat,uart2,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE3 bool "UARTE3 driver instance" depends on $(dt_nodelabel_has_compat,uart3,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE00 bool "UARTE00 driver instance" depends on $(dt_nodelabel_has_compat,uart00,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE20 bool "UARTE20 driver instance" depends on $(dt_nodelabel_has_compat,uart20,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE21 bool "UARTE21 driver instance" depends on $(dt_nodelabel_has_compat,uart21,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE22 bool "UARTE22 driver instance" depends on $(dt_nodelabel_has_compat,uart22,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE30 bool "UARTE30 driver instance" depends on $(dt_nodelabel_has_compat,uart30,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE120 bool "UARTE120 driver instance" depends on $(dt_nodelabel_has_compat,uart120,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE130 bool "UARTE130 driver instance" depends on $(dt_nodelabel_has_compat,uart130,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE131 bool "UARTE131 driver instance" depends on $(dt_nodelabel_has_compat,uart131,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE132 bool "UARTE132 driver instance" depends on $(dt_nodelabel_has_compat,uart132,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE133 bool "UARTE133 driver instance" depends on $(dt_nodelabel_has_compat,uart133,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE134 bool "UARTE134 driver instance" depends on $(dt_nodelabel_has_compat,uart134,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE135 bool "UARTE135 driver instance" depends on $(dt_nodelabel_has_compat,uart135,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE136 bool "UARTE136 driver instance" depends on $(dt_nodelabel_has_compat,uart136,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE137 bool "UARTE137 driver instance" depends on $(dt_nodelabel_has_compat,uart137,$(DT_COMPAT_NORDIC_NRF_UARTE)) select NRFX_UARTE config NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG bool "UARTE GPIO configuration support" depends on NRFX_UARTE config NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG bool "UARTE PSEL configuration support" depends on NRFX_UARTE config NRFX_UARTE_CONFIG_TX_LINK bool "UARTE TX transfer linking support" depends on NRFX_UARTE config NRFX_UARTE_CONFIG_RX_CACHE_ENABLED bool "UARTE RX caching support" depends on NRFX_UARTE help Feature might be enabled on platforms which has limitations regarding addresses to which receiver can write data. If enabled then internal driver buffers (cache buffers) are used for DMA transfers and data is copied to the user buffer. config NRFX_USBREG bool "USBREG driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBREG)) config NRFX_WDT bool config NRFX_WDT0 bool "WDT0 driver instance" depends on $(dt_nodelabel_has_compat,wdt0,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT1 bool "WDT1 driver instance" depends on $(dt_nodelabel_has_compat,wdt1,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT30 bool "WDT30 driver instance" depends on $(dt_nodelabel_has_compat,wdt30,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT31 bool "WDT31 driver instance" depends on $(dt_nodelabel_has_compat,wdt31,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT010 bool "WDT010 driver instance" depends on $(dt_nodelabel_has_compat,wdt010,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT011 bool "WDT011 driver instance" depends on $(dt_nodelabel_has_compat,wdt011,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT130 bool "WDT130 driver instance" depends on $(dt_nodelabel_has_compat,wdt130,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT131 bool "WDT131 driver instance" depends on $(dt_nodelabel_has_compat,wdt131,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT config NRFX_WDT132 bool "WDT132 driver instance" depends on $(dt_nodelabel_has_compat,wdt132,$(DT_COMPAT_NORDIC_NRF_WDT)) select NRFX_WDT menu "Peripheral Resource Sharing module" config NRFX_PRS bool config NRFX_PRS_BOX_0 bool "PRS box 0" select NRFX_PRS config NRFX_PRS_BOX_1 bool "PRS box 1" select NRFX_PRS config NRFX_PRS_BOX_2 bool "PRS box 2" select NRFX_PRS config NRFX_PRS_BOX_3 bool "PRS box 3" select NRFX_PRS config NRFX_PRS_BOX_4 bool "PRS box 4" select NRFX_PRS endmenu endmenu # "nrfx drivers" ```
/content/code_sandbox/modules/hal_nordic/nrfx/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,066
```objective-c /* * */ #ifndef NRFS_CONFIG_H #define NRFS_CONFIG_H #ifdef CONFIG_NRFS_TEMP_SERVICE_ENABLED #define NRFS_TEMP_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_MRAM_SERVICE_ENABLED #define NRFS_MRAM_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_RESET_SERVICE_ENABLED #define NRFS_RESET_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_VBUS_DETECTOR_SERVICE_ENABLED #define NRFS_VBUS_DETECTOR_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_PMIC_SERVICE_ENABLED #define NRFS_PMIC_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_DVFS_SERVICE_ENABLED #define NRFS_DVFS_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_DIAG_SERVICE_ENABLED #define NRFS_DIAG_SERVICE_ENABLED #endif #ifdef CONFIG_NRFS_CLOCK_SERVICE_ENABLED #define NRFS_CLOCK_SERVICE_ENABLED #endif #ifdef CONFIG_SOC_POSIX #define NRFS_UNIT_TESTS_ENABLED #endif #endif /* NRFS_CONFIG_H */ ```
/content/code_sandbox/modules/hal_nordic/nrfs/nrfs_config.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
190
```unknown config HAS_NRFS bool menu "nRF Services" depends on HAS_NRFS config NRFS_HAS_CLOCK_SERVICE bool config NRFS_HAS_CONST_LATENCY_SERVICE bool config NRFS_HAS_DIAG_SERVICE bool config NRFS_HAS_DVFS_SERVICE bool config NRFS_HAS_MRAM_SERVICE bool config NRFS_HAS_PMIC_SERVICE bool config NRFS_HAS_RESET_SERVICE bool config NRFS_HAS_TEMP_SERVICE bool config NRFS_HAS_VBUS_DETECTOR_SERVICE bool config NRFS bool "nRF Services Support" select NRFS_LOCAL_DOMAIN if (SOC_NRF54H20_CPUAPP || SOC_NRF54H20_CPURAD) depends on HAS_NRFS help This option enables the nRF Services library. if NRFS config NRFS_LOCAL_DOMAIN bool "nRF Services Local Domain Support" depends on $(dt_alias_enabled,ipc-to-cpusys) select IPC_SERVICE select MBOX select EVENTS select REBOOT help This option enables the nRF Services Local Domain libraries. config NRFS_DVFS_LOCAL_DOMAIN bool "Local domain that supports DVFS" depends on NRFS_LOCAL_DOMAIN depends on NRFS_DVFS_SERVICE_ENABLED default y if NRFS_DVFS_SERVICE_ENABLED menu "Enabled Services" module = NRFS module-str = nRF-Services source "subsys/logging/Kconfig.template.log_config" config NRFS_RESET_SERVICE_ENABLED bool "Reset service" depends on NRFS_HAS_RESET_SERVICE config NRFS_MRAM_SERVICE_ENABLED bool "MRAM latency service" depends on NRFS_HAS_MRAM_SERVICE config NRFS_TEMP_SERVICE_ENABLED bool "Temperature service" depends on NRFS_HAS_TEMP_SERVICE default y config NRFS_VBUS_DETECTOR_SERVICE_ENABLED bool "VBUS detector for the USB peripheral" depends on NRFS_HAS_VBUS_DETECTOR_SERVICE default y config NRFS_CONST_LATENCY_SERVICE_ENABLED bool "DPPI constant latency service" depends on NRFS_HAS_CONST_LATENCY_SERVICE default y config NRFS_PMIC_SERVICE_ENABLED bool "PMIC service" depends on NRFS_HAS_PMIC_SERVICE config NRFS_DVFS_SERVICE_ENABLED bool "DVFS service" depends on NRFS_HAS_DVFS_SERVICE default y if SOC_NRF54H20_CPUAPP config NRFS_DIAG_SERVICE_ENABLED bool "System Diagnostics service (only for development purposes)" depends on NRFS_HAS_DIAG_SERVICE config NRFS_CLOCK_SERVICE_ENABLED bool "Clock service" depends on NRFS_HAS_CLOCK_SERVICE default y endmenu rsource "backends/Kconfig" if NRFS_DVFS_LOCAL_DOMAIN rsource "dvfs/Kconfig" endif # NRFS_DVFS_LOCAL_DOMAIN endif # NRFS endmenu ```
/content/code_sandbox/modules/hal_nordic/nrfs/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
606
```objective-c /* * */ #ifndef NRFS_BACKEND_IPC_SERVICE_H #define NRFS_BACKEND_IPC_SERVICE_H #include <stdint.h> #include <nrfs_common.h> #include <zephyr/ipc/ipc_service.h> #include <zephyr/kernel.h> #ifdef __cplusplus extern "C" { #endif struct __packed ipc_data_packet { uint16_t channel_id; uint16_t size; uint8_t data[CONFIG_NRFS_MAX_BACKEND_PACKET_SIZE]; }; enum ipc_channel_status { NOT_CONNECTED = 0, CONNECTED = 1 }; enum nrfs_backend_error { NRFS_ERROR_EPT_RECEIVE_QUEUE_ERROR = 0, NRFS_ERROR_EPT_RECEIVE_DATA_TOO_LONG, NRFS_ERROR_IPC_CHANNEL_INIT, NRFS_ERROR_SEND_DATA, NRFS_ERROR_NO_DATA_RECEIVED, NRFS_ERROR_IPC_OPEN_INSTANCE, NRFS_ERROR_IPC_REGISTER_ENDPOINT, NRFS_ERROR_BACKEND_NOT_CONNECTED, NRFS_ERROR_COUNT }; #define IPC_CPUSYS_CHANNEL_ID 0x5C /** * @brief function to check if backend is connected to sysctrl * * @return true Backend connected. * @return false Backend not connected. */ bool nrfs_backend_connected(void); /** * @brief this function will block until connection or timeout expires * * @param timeout * * @return 0 Connection done. * @return -EAGAIN Waiting period timed out. */ int nrfs_backend_wait_for_connection(k_timeout_t timeout); /** * @brief Extended function for sending a message over the chosen transport backend. * * This function is used by services to send requests to the System Controller. * * @param[in] message Pointer to the message payload. * @param[in] size Message payload size. * @param[in] timeout Non-negative waiting period to add the message, * or one of the special values K_NO_WAIT and K_FOREVER. * @param[in] high_prio True if message should be sent with higher priority. * * @retval NRFS_SUCCESS Message sent successfully. * @retval NRFS_ERR_IPC Backend returned error during message sending. */ nrfs_err_t nrfs_backend_send_ex(void *message, size_t size, k_timeout_t timeout, bool high_prio); /** * @brief Fatal error handler for unrecoverable errors * * This is weak function so it can be overridden if needed. * Error is considered fatal when there is no option to send message to sysctrl * even after retry. Communication with sysctrl is crucial for system to work properly. * * @param error_id parameter to identify error. */ void nrfs_backend_fatal_error_handler(enum nrfs_backend_error error_id); #ifdef __cplusplus } #endif #endif /* NRFS_BACKEND_IPC_SERVICE_H */ ```
/content/code_sandbox/modules/hal_nordic/nrfs/backends/nrfs_backend_ipc_service.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
578
```c /* * */ #include "nrfs_backend_ipc_service.h" #include <internal/nrfs_backend.h> #include <internal/nrfs_dispatcher.h> #include <zephyr/kernel.h> #include <zephyr/sys/reboot.h> #include <zephyr/sys_clock.h> #include <zephyr/logging/log.h> #include <zephyr/init.h> LOG_MODULE_REGISTER(NRFS_BACKEND, CONFIG_NRFS_BACKEND_LOG_LEVEL); #define MAX_PACKET_DATA_SIZE (CONFIG_NRFS_MAX_BACKEND_PACKET_SIZE) K_MSGQ_DEFINE(ipc_transmit_msgq, sizeof(struct ipc_data_packet), CONFIG_NRFS_BACKEND_TX_MSG_QUEUE_SIZE, 4); static struct k_work backend_send_work; static void ipc_sysctrl_ept_bound(void *priv); static void ipc_sysctrl_ept_recv(const void *data, size_t size, void *priv); static K_EVENT_DEFINE(ipc_connected_event); #define IPC_INIT_DONE_EVENT (0x01) struct ipc_channel_config { const struct device *ipc_instance; struct ipc_ept_cfg *endpoint_config; struct ipc_ept ipc_ept; atomic_t status; bool enabled; }; static struct ipc_ept_cfg ipc_sysctrl_ept_cfg = { .name = "ipc_to_sysctrl", .cb = { .bound = ipc_sysctrl_ept_bound, .received = ipc_sysctrl_ept_recv, }, }; static struct ipc_channel_config ipc_cpusys_channel_config = { .ipc_instance = DEVICE_DT_GET(DT_ALIAS(ipc_to_cpusys)), .endpoint_config = &ipc_sysctrl_ept_cfg, .status = ATOMIC_INIT(NOT_CONNECTED), .enabled = true }; /** * @brief nrfs backend error handler * * @param error_id The id of an error to handle. * @param error additional error code if needed, if not needed use 0. * @param fatal true if fatal error and needs special handling */ __weak void nrfs_backend_error_handler(enum nrfs_backend_error error_id, int error, bool fatal) { switch (error_id) { case NRFS_ERROR_EPT_RECEIVE_DATA_TOO_LONG: LOG_ERR("Received data is too long. Config error."); break; case NRFS_ERROR_NO_DATA_RECEIVED: LOG_ERR("No data in received message!"); break; case NRFS_ERROR_IPC_OPEN_INSTANCE: LOG_ERR("IPC open instance failure with error: %d", error); break; case NRFS_ERROR_IPC_REGISTER_ENDPOINT: LOG_ERR("IPC register endpoint failure with error: %d", error); break; default: LOG_ERR("Undefined error id: %d, error cause: %d", error_id, error); break; } if (fatal) { nrfs_backend_fatal_error_handler(error_id); } } static void ipc_sysctrl_ept_bound(void *priv) { LOG_DBG("Bound to sysctrl."); k_event_post(&ipc_connected_event, IPC_INIT_DONE_EVENT); atomic_set(&ipc_cpusys_channel_config.status, CONNECTED); } static void ipc_sysctrl_ept_recv(const void *data, size_t size, void *priv) { struct ipc_data_packet rx_data; __ASSERT(size <= MAX_PACKET_DATA_SIZE, "Received data is too long. Config error."); if (size <= MAX_PACKET_DATA_SIZE) { rx_data.channel_id = IPC_CPUSYS_CHANNEL_ID; rx_data.size = size; if (data) { memcpy(rx_data.data, (uint8_t *)data, size); nrfs_dispatcher_notify(&rx_data.data, rx_data.size); } else { nrfs_backend_error_handler(NRFS_ERROR_NO_DATA_RECEIVED, 0, false); } } else { nrfs_backend_error_handler(NRFS_ERROR_EPT_RECEIVE_DATA_TOO_LONG, 0, true); } } static void nrfs_backend_send_work(struct k_work *item) { struct ipc_data_packet data_to_send; LOG_DBG("Sending data from workqueue"); while (k_msgq_get(&ipc_transmit_msgq, &data_to_send, K_NO_WAIT) == 0) { ipc_service_send(&ipc_cpusys_channel_config.ipc_ept, &data_to_send.data, data_to_send.size); } } /** * @brief Initialize ipc channel * * @return -EINVAL when instance configuration is invalid. * @return -EIO when no backend is registered. * @return -EALREADY when the instance is already opened (or being opened). * @return -EBUSY when the instance is busy. * @return 0 on success */ static int ipc_channel_init(void) { struct ipc_channel_config *ch_cfg; int ret = 0; k_work_init(&backend_send_work, nrfs_backend_send_work); ch_cfg = &ipc_cpusys_channel_config; ret = ipc_service_open_instance(ch_cfg->ipc_instance); if ((ret < 0) && (ret != -EALREADY)) { nrfs_backend_error_handler(NRFS_ERROR_IPC_OPEN_INSTANCE, ret, false); return ret; } LOG_DBG("ipc_service_open_instance() done."); ret = ipc_service_register_endpoint(ch_cfg->ipc_instance, &ch_cfg->ipc_ept, ch_cfg->endpoint_config); if (ret < 0) { nrfs_backend_error_handler(NRFS_ERROR_IPC_REGISTER_ENDPOINT, ret, false); return ret; } LOG_DBG("ipc_service_register_endpoint() done."); return ret; } nrfs_err_t nrfs_backend_send(void *message, size_t size) { return nrfs_backend_send_ex(message, size, K_NO_WAIT, false); } nrfs_err_t nrfs_backend_send_ex(void *message, size_t size, k_timeout_t timeout, bool high_prio) { if (atomic_get(&ipc_cpusys_channel_config.status) != CONNECTED) { LOG_WRN("Backend not yet connected to sysctrl"); return NRFS_ERR_INVALID_STATE; } if (size <= MAX_PACKET_DATA_SIZE) { int err; struct ipc_data_packet tx_data; tx_data.channel_id = IPC_CPUSYS_CHANNEL_ID; tx_data.size = size; memcpy(tx_data.data, (uint8_t *)message, size); err = k_msgq_put(&ipc_transmit_msgq, &tx_data, timeout); if (err) { return NRFS_ERR_IPC; } err = k_work_submit(&backend_send_work); return err >= 0 ? 0 : NRFS_ERR_IPC; } LOG_ERR("Trying to send %d bytes where max is %d.", size, MAX_PACKET_DATA_SIZE); return NRFS_ERR_IPC; } bool nrfs_backend_connected(void) { return atomic_get(&ipc_cpusys_channel_config.status) == CONNECTED; } int nrfs_backend_wait_for_connection(k_timeout_t timeout) { uint32_t events; if (nrfs_backend_connected()) { return 0; } events = k_event_wait(&ipc_connected_event, IPC_INIT_DONE_EVENT, false, timeout); return (events == IPC_INIT_DONE_EVENT ? 0 : (-EAGAIN)); } __weak void nrfs_backend_fatal_error_handler(enum nrfs_backend_error error_id) { LOG_ERR("Fatal error: %d rebooting...", error_id); sys_reboot(SYS_REBOOT_WARM); } SYS_INIT(ipc_channel_init, POST_KERNEL, CONFIG_NRFS_BACKEND_IPC_SERVICE_INIT_PRIO); ```
/content/code_sandbox/modules/hal_nordic/nrfs/backends/nrfs_backend_ipc_service.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,575
```unknown menu "NRFS backend settings" module = NRFS_BACKEND module-str = NRFS backend source "subsys/logging/Kconfig.template.log_config" config NRFS_BACKEND_IPC_SERVICE_INIT_PRIO int "Initialization priority for NRFS IPC backend" default 51 help This should be higher than priority of other drivers/subsystems used by NRFS backend. For example MBOX_INIT_PRIORITY which is 50. config NRFS_MAX_BACKEND_PACKET_SIZE int "Maximum IPC data packet size in bytes" range 8 128 default 32 config NRFS_BACKEND_TX_MSG_QUEUE_SIZE int "Size of TX buffer message queue size" range 1 16 default 8 endmenu ```
/content/code_sandbox/modules/hal_nordic/nrfs/backends/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
151
```c /* * */ #include "ld_dvfs_handler.h" #include "ld_dvfs.h" #include <hal/nrf_hsfll.h> #include <nrfs_dvfs.h> #include <nrfs_backend_ipc_service.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(LD_DVFS_LIB, CONFIG_LOCAL_DOMAIN_DVFS_LIB_LOG_LEVEL); static K_SEM_DEFINE(dvfs_service_sync_sem, 0, 1); static K_SEM_DEFINE(dvfs_service_idle_sem, 0, 1); #define DVFS_SERV_HDL_INIT_DONE_BIT_POS (0) #define DVFS_SERV_HDL_FREQ_CHANGE_REQ_PENDING_BIT_POS (1) static atomic_t dvfs_service_handler_state_bits; static volatile enum dvfs_frequency_setting current_freq_setting; static volatile enum dvfs_frequency_setting requested_freq_setting; static dvfs_service_handler_callback dvfs_frequency_change_applied_clb; static void dvfs_service_handler_set_state_bit(uint32_t bit_pos) { atomic_set_bit(&dvfs_service_handler_state_bits, bit_pos); } static void dvfs_service_handler_clear_state_bit(uint32_t bit_pos) { atomic_clear_bit(&dvfs_service_handler_state_bits, bit_pos); } static bool dvfs_service_handler_get_state_bit(uint32_t bit_pos) { return atomic_test_bit(&dvfs_service_handler_state_bits, bit_pos); } static bool dvfs_service_handler_init_done(void) { return dvfs_service_handler_get_state_bit(DVFS_SERV_HDL_INIT_DONE_BIT_POS); } static bool dvfs_service_handler_freq_change_req_pending(void) { return dvfs_service_handler_get_state_bit(DVFS_SERV_HDL_FREQ_CHANGE_REQ_PENDING_BIT_POS); } static void dvfs_service_handler_nrfs_error_check(nrfs_err_t err) { if (err != NRFS_SUCCESS) { LOG_ERR("Failed with nrfs error: %d", err); } } static void dvfs_service_handler_error(int err) { if (err != 0) { LOG_ERR("Failed with error: %d", err); } } static uint32_t *get_next_context(void) { static uint32_t ctx; ctx++; return &ctx; } static bool dvfs_service_handler_freq_setting_allowed(enum dvfs_frequency_setting freq_setting) { if (freq_setting == DVFS_FREQ_HIGH || freq_setting == DVFS_FREQ_MEDLOW || freq_setting == DVFS_FREQ_LOW) { return true; } return false; } static enum dvfs_frequency_setting dvfs_service_handler_get_current_oppoint(void) { LOG_DBG("Current LD freq setting: %d", current_freq_setting); return current_freq_setting; } static enum dvfs_frequency_setting dvfs_service_handler_get_requested_oppoint(void) { LOG_DBG("Requested LD freq setting: %d", requested_freq_setting); return requested_freq_setting; } /* Function to check if current operation is down-scaling */ static bool dvfs_service_handler_is_downscaling(enum dvfs_frequency_setting target_freq_setting) { if (dvfs_service_handler_freq_setting_allowed(target_freq_setting)) { LOG_DBG("Checking if downscaling %s", (dvfs_service_handler_get_current_oppoint() < target_freq_setting) ? "YES" : "NO"); return dvfs_service_handler_get_current_oppoint() < target_freq_setting; } return false; } /* Function handling steps for scaling preparation. */ static void dvfs_service_handler_prepare_to_scale(enum dvfs_frequency_setting oppoint_freq) { LOG_DBG("Prepare to scale, oppoint freq %d", oppoint_freq); enum dvfs_frequency_setting new_oppoint = oppoint_freq; enum dvfs_frequency_setting current_oppoint = dvfs_service_handler_get_current_oppoint(); if (new_oppoint == current_oppoint) { LOG_DBG("New oppoint is same as previous, no change"); } else { ld_dvfs_configure_abb_for_transition(current_oppoint, new_oppoint); if (dvfs_service_handler_is_downscaling(new_oppoint)) { int32_t err = ld_dvfs_configure_hsfll(new_oppoint); if (err != 0) { dvfs_service_handler_error(err); } } } } /* Do background job during scaling process (e.g. increased power consumption during down-scale). */ static void dvfs_service_handler_scaling_background_job(enum dvfs_frequency_setting oppoint_freq) { LOG_DBG("Perform scaling background job if needed."); if (dvfs_service_handler_is_downscaling(oppoint_freq)) { k_sem_give(&dvfs_service_idle_sem); } } /* Perform scaling finnish procedure. */ static void dvfs_service_handler_scaling_finish(enum dvfs_frequency_setting oppoint_freq) { LOG_DBG("Scaling finnish oppoint freq %d", oppoint_freq); ld_dvfs_scaling_finish(dvfs_service_handler_is_downscaling(oppoint_freq)); if (!dvfs_service_handler_is_downscaling(oppoint_freq)) { int32_t err = ld_dvfs_configure_hsfll(oppoint_freq); if (err != 0) { dvfs_service_handler_error(err); } } dvfs_service_handler_clear_state_bit(DVFS_SERV_HDL_FREQ_CHANGE_REQ_PENDING_BIT_POS); current_freq_setting = oppoint_freq; LOG_DBG("Current LD freq setting: %d", current_freq_setting); if (dvfs_frequency_change_applied_clb) { dvfs_frequency_change_applied_clb(current_freq_setting); } } /* Function to set hsfll to highest frequency when switched to ABB. */ static void dvfs_service_handler_set_initial_hsfll_config(void) { int32_t err = ld_dvfs_configure_hsfll(DVFS_FREQ_HIGH); current_freq_setting = DVFS_FREQ_HIGH; requested_freq_setting = DVFS_FREQ_HIGH; if (err != 0) { dvfs_service_handler_error(err); } } /* Timer to add additional delay to finish downscale procedure when domain other than secure */ #if !defined(NRF_SECURE) #define SCALING_FINISH_DELAY_TIMEOUT_US \ K_USEC(CONFIG_NRFS_LOCAL_DOMAIN_DOWNSCALE_FINISH_DELAY_TIMEOUT_US) static void dvfs_service_handler_scaling_finish_delay_timeout(struct k_timer *timer) { if (timer) { dvfs_service_handler_scaling_finish( *(enum dvfs_frequency_setting *)timer->user_data); } } K_TIMER_DEFINE(dvfs_service_scaling_finish_delay_timer, dvfs_service_handler_scaling_finish_delay_timeout, NULL); #endif /* DVFS event handler callback function.*/ static void nrfs_dvfs_evt_handler(nrfs_dvfs_evt_t const *p_evt, void *context) { LOG_DBG("%s", __func__); switch (p_evt->type) { case NRFS_DVFS_EVT_INIT_PREPARATION: LOG_DBG("DVFS handler EVT_INIT_PREPARATION"); #if defined(NRF_SECURE) ld_dvfs_clear_zbb(); dvfs_service_handler_nrfs_error_check( nrfs_dvfs_init_complete_request(get_next_context())); LOG_DBG("DVFS handler EVT_INIT_PREPARATION handled"); #else LOG_ERR("DVFS handler - unexpected EVT_INIT_PREPARATION"); #endif break; case NRFS_DVFS_EVT_INIT_DONE: LOG_DBG("DVFS handler EVT_INIT_DONE"); dvfs_service_handler_set_initial_hsfll_config(); dvfs_service_handler_set_state_bit(DVFS_SERV_HDL_INIT_DONE_BIT_POS); k_sem_give(&dvfs_service_sync_sem); LOG_DBG("DVFS handler EVT_INIT_DONE handled"); break; case NRFS_DVFS_EVT_OPPOINT_REQ_CONFIRMED: /* Optional confirmation from sysctrl, wait for oppoint.*/ dvfs_service_handler_clear_state_bit(DVFS_SERV_HDL_FREQ_CHANGE_REQ_PENDING_BIT_POS); LOG_DBG("DVFS handler EVT_OPPOINT_REQ_CONFIRMED %d", (uint32_t)p_evt->freq); if (dvfs_service_handler_get_requested_oppoint() == p_evt->freq) { if (dvfs_frequency_change_applied_clb) { dvfs_frequency_change_applied_clb(p_evt->freq); } } break; case NRFS_DVFS_EVT_OPPOINT_SCALING_PREPARE: /*Target oppoint will be received here.*/ LOG_DBG("DVFS handler EVT_OPPOINT_SCALING_PREPARE"); #if !defined(NRF_SECURE) if (dvfs_service_handler_is_downscaling(p_evt->freq)) { #endif dvfs_service_handler_prepare_to_scale(p_evt->freq); dvfs_service_handler_nrfs_error_check( nrfs_dvfs_ready_to_scale(get_next_context())); dvfs_service_handler_scaling_background_job(p_evt->freq); LOG_DBG("DVFS handler EVT_OPPOINT_SCALING_PREPARE handled"); #if !defined(NRF_SECURE) /* Additional delay for downscale to finish on secdom side */ static enum dvfs_frequency_setting freq; freq = p_evt->freq; dvfs_service_scaling_finish_delay_timer.user_data = (void *)&freq; k_timer_start(&dvfs_service_scaling_finish_delay_timer, SCALING_FINISH_DELAY_TIMEOUT_US, K_NO_WAIT); } else { LOG_ERR("DVFS handler - unexpected EVT_OPPOINT_SCALING_PREPARE"); } #endif break; case NRFS_DVFS_EVT_OPPOINT_SCALING_DONE: LOG_DBG("DVFS handler EVT_OPPOINT_SCALING_DONE"); dvfs_service_handler_scaling_finish(p_evt->freq); LOG_DBG("DVFS handler EVT_OPPOINT_SCALING_DONE handled"); break; case NRFS_DVFS_EVT_REJECT: LOG_ERR("DVFS handler - request rejected"); break; default: LOG_ERR("DVFS handler - unexpected event: 0x%x", p_evt->type); break; } } /* Task to handle dvfs init procedure. */ static void dvfs_service_handler_task(void *dummy0, void *dummy1, void *dummy2) { ARG_UNUSED(dummy0); ARG_UNUSED(dummy1); ARG_UNUSED(dummy2); LOG_DBG("Trim ABB for default voltage."); ld_dvfs_init(); LOG_DBG("Waiting for backend init"); /* Wait for ipc initialization */ nrfs_backend_wait_for_connection(K_FOREVER); nrfs_err_t status; LOG_DBG("nrfs_dvfs_init"); status = nrfs_dvfs_init(nrfs_dvfs_evt_handler); dvfs_service_handler_nrfs_error_check(status); LOG_DBG("nrfs_dvfs_init_prepare_request"); status = nrfs_dvfs_init_prepare_request(get_next_context()); dvfs_service_handler_nrfs_error_check(status); /* Wait for init*/ k_sem_take(&dvfs_service_sync_sem, K_FOREVER); LOG_DBG("DVFS init done."); #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_SCALE_DOWN_AFTER_INIT) LOG_DBG("Requesting lowest frequency oppoint."); dvfs_service_handler_change_freq_setting(DVFS_FREQ_LOW); #endif while (1) { k_sem_take(&dvfs_service_idle_sem, K_FOREVER); /* perform background processing */ ld_dvfs_scaling_background_process(true); } } K_THREAD_DEFINE(dvfs_service_handler_task_id, CONFIG_NRFS_LOCAL_DOMAIN_DVFS_HANDLER_TASK_STACK_SIZE, dvfs_service_handler_task, NULL, NULL, NULL, CONFIG_NRFS_LOCAL_DOMAIN_DVFS_HANDLER_TASK_PRIORITY, 0, 0); int32_t dvfs_service_handler_change_freq_setting(enum dvfs_frequency_setting freq_setting) { if (!dvfs_service_handler_init_done()) { LOG_WRN("Init not done!"); return -EAGAIN; } if (!dvfs_service_handler_freq_setting_allowed(freq_setting)) { LOG_ERR("Requested frequency setting %d not supported.", freq_setting); return -ENXIO; } if (dvfs_service_handler_freq_change_req_pending()) { LOG_DBG("Frequency change request pending."); return -EBUSY; } dvfs_service_handler_set_state_bit(DVFS_SERV_HDL_FREQ_CHANGE_REQ_PENDING_BIT_POS); requested_freq_setting = freq_setting; nrfs_err_t status = nrfs_dvfs_oppoint_request(freq_setting, get_next_context()); if (status != NRFS_SUCCESS) { dvfs_service_handler_clear_state_bit(DVFS_SERV_HDL_FREQ_CHANGE_REQ_PENDING_BIT_POS); } dvfs_service_handler_nrfs_error_check(status); return status; } void dvfs_service_handler_register_freq_setting_applied_callback(dvfs_service_handler_callback clb) { if (clb) { LOG_DBG("Registered frequency applied callback"); dvfs_frequency_change_applied_clb = clb; } else { LOG_ERR("Invalid callback function provided!"); } } ```
/content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs_handler.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,683
```objective-c /* * */ #ifndef LD_DVFS_H #define LD_DVFS_H #include <dvfs_oppoint.h> #include <nrfs_common.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Function for initializing the Dynamic Voltage and Frequency Scaling service * from LD perspective.. * */ void ld_dvfs_init(void); /** * @brief Function for clearing the zero bias * */ void ld_dvfs_clear_zbb(void); /** * @brief Configure ABB registers to transition process. * * @param transient_opp current operation point * @param curr_targ_opp target operation point */ void ld_dvfs_configure_abb_for_transition(enum dvfs_frequency_setting transient_opp, enum dvfs_frequency_setting curr_targ_opp); /** * @brief Configure hsfll depending on selected oppoint * * @param enum oppoint target operation point * @return 0 value indicates no error. * @return -EINVAL invalid oppoint or domain. * @return -ETIMEDOUT frequency change took more than HSFLL_FREQ_CHANGE_MAX_DELAY_MS */ int32_t ld_dvfs_configure_hsfll(enum dvfs_frequency_setting oppoint); /** * @brief Background process during scaling. * * @param downscaling indicates if down-scaling is running */ void ld_dvfs_scaling_background_process(bool downscaling); /** * @brief Last step for local domain in downscale procedure * * @param downscaling indicates if down-scaling is running */ void ld_dvfs_scaling_finish(bool downscaling); #ifdef __cplusplus } #endif #endif /* LD_DVFS_H */ ```
/content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
338
```objective-c /* * */ #ifndef LD_DVFS_HANDLER_H #define LD_DVFS_HANDLER_H #include <dvfs_oppoint.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Function to request LD frequency change. * * @param frequency requested frequency setting from enum dvfs_frequency_setting. * @return EBUSY Frequency change request pending. * @return EAGAIN DVFS init in progress. * @return ENXIO Not supported frequency settings. * @return NRFS_SUCCESS Request sent successfully. * @return NRFS_ERR_INVALID_STATE Service is uninitialized. * @return NRFS_ERR_IPC Backend returned error during request sending. */ int32_t dvfs_service_handler_change_freq_setting(enum dvfs_frequency_setting freq_setting); /** * @brief Type to use as callback function in dvfs service * * @param new_setting applied frequency setting */ typedef void (*dvfs_service_handler_callback)(enum dvfs_frequency_setting new_setting); /** * @brief Register callback function which will be called when new dvfs frequency is applied. * * @param clb dvfs_service_handler_callback to register */ void dvfs_service_handler_register_freq_setting_applied_callback(dvfs_service_handler_callback clb); #ifdef __cplusplus } #endif #endif /* LD_DVFS_HANDLER_H */ ```
/content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs_handler.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
276
```c /* * */ #include "ld_dvfs.h" #include <hal/nrf_hsfll.h> #include <hal/nrf_ramc.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LD_DVFS_LIB, CONFIG_LOCAL_DOMAIN_DVFS_LIB_LOG_LEVEL); #define TRANSIENT_ZBB_ABB_SLOT 0 #define CURR_TARG_ABB_SLOT 1 #define LD_ABB_CLR_ZBB 0 /* TODO: this values needs to be provided by HW team */ /* for now reset value will be used */ #define LD_ABB_CTRL4_NORMAL_OPERATION 0x10800UL #define LD_ABB_CTRL4_TRANSITION_OPERATION 0x10800UL /* * wait max 500ms with 10us intervals for hsfll freq change event */ #define HSFLL_FREQ_CHANGE_MAX_DELAY_MS 500UL #define HSFLL_FREQ_CHANGE_CHECK_INTERVAL_US 10 #define HSFLL_FREQ_CHANGE_CHECK_MAX_ATTEMPTS \ ((HSFLL_FREQ_CHANGE_MAX_DELAY_MS) * (USEC_PER_MSEC) / (HSFLL_FREQ_CHANGE_CHECK_INTERVAL_US)) #define ABB_STATUS_CHANGE_MAX_DELAY_MS 5000UL #define ABB_STATUS_CHANGE_CHECK_INTERVAL_US 10 #define ABB_STATUS_CHANGE_CHECK_MAX_ATTEMPTS \ ((ABB_STATUS_CHANGE_MAX_DELAY_MS) * (USEC_PER_MSEC) / (ABB_STATUS_CHANGE_CHECK_INTERVAL_US)) void ld_dvfs_init(void) { #if defined(NRF_SECURE) const struct dvfs_oppoint_data *opp_data = get_dvfs_oppoint_data(DVFS_FREQ_HIGH); #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_TEST) LOG_DBG("%s", __func__); LOG_DBG("REGW: NRF_ABB->TRIM.RINGO[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT], opp_data->abb_ringo); LOG_DBG("REGW: NRF_ABB->TRIM.LOCKRANGE[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT], opp_data->abb_lockrange); LOG_DBG("REGW: NRF_ABB->TRIM.PVTMONCYCLES[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT], opp_data->abb_pvtmoncycles); /*For app core.*/ LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.RINGO[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT], opp_data->abb_ringo); LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.LOCKRANGE[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT], opp_data->abb_lockrange); LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT], opp_data->abb_pvtmoncycles); #else /* TODO: Change to NRFX Hal function when available. */ NRF_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT] = opp_data->abb_ringo; NRF_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT] = opp_data->abb_lockrange; NRF_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT] = opp_data->abb_pvtmoncycles; NRF_APPLICATION_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT] = opp_data->abb_ringo; NRF_APPLICATION_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT] = opp_data->abb_lockrange; NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT] = opp_data->abb_pvtmoncycles; #endif #endif } void ld_dvfs_clear_zbb(void) { #if defined(NRF_SECURE) #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_TEST) LOG_DBG("%s", __func__); LOG_DBG("REGW: NRF_ABB->CONFIG.CTRL1.MODE 0x%x, V: 0x%x", (uint32_t)&NRF_ABB->CONFIG.CTRL1, LD_ABB_CLR_ZBB); #else /* TODO: Change to NRFX Hal function when available. */ NRF_ABB->CONFIG.CTRL1 &= ~(ABB_CONFIG_CTRL1_MODE_Msk); NRF_APPLICATION_ABB->CONFIG.CTRL1 &= ~(ABB_CONFIG_CTRL1_MODE_Msk); #endif #endif } #if defined(NRF_SECURE) #define DOWNSCALE_SAFETY_TIMEOUT (K_USEC(CONFIG_NRFS_LOCAL_DOMAIN_DOWNSCALE_SAFETY_TIMEOUT_US)) atomic_t increased_power_consumption; /** * @brief Secure domain needs to check if downscale is done in defined time * window. This is needed to avoid battery drain if dvfs procedure * takes to much time (some failure?). */ __weak void ld_dvfs_secure_downscale_timeout(struct k_timer *timer) { ARG_UNUSED(timer); LOG_ERR("Downscale timeout expired, reset board."); atomic_set(&increased_power_consumption, 0); } K_TIMER_DEFINE(dvfs_downscale_secure_timer, ld_dvfs_secure_downscale_timeout, NULL); /** * @brief Secure domain starts increased power consumption, needed by dvfs sequence. * This function can be reimplemented in other module if needed. */ __weak void ld_dvfs_secure_start_increased_power_consumption(void) { LOG_DBG("Start increased power consumption for DVFS sequence and start safety timer."); k_timer_start(&dvfs_downscale_secure_timer, DOWNSCALE_SAFETY_TIMEOUT, K_NO_WAIT); atomic_set(&increased_power_consumption, 1); volatile uint8_t idle_counter = 0; while (atomic_get(&increased_power_consumption)) { if (idle_counter < 100) { k_yield(); idle_counter++; } else { idle_counter = 0; k_usleep(1); } } } /** * @brief Secure domain stops increased power consumption at the end of downscale. * This function can be reimplemented in other module if needed. */ __weak void ld_dvfs_secure_stop_increased_power_consumption(void) { LOG_DBG("Stop increased power consumption for DVFS sequence."); k_timer_stop(&dvfs_downscale_secure_timer); atomic_set(&increased_power_consumption, 0); } #endif void ld_dvfs_configure_abb_for_transition(enum dvfs_frequency_setting transient_opp, enum dvfs_frequency_setting curr_targ_opp) { #if defined(NRF_SECURE) const struct dvfs_oppoint_data *opp_data = get_dvfs_oppoint_data(transient_opp); #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_TEST) LOG_DBG("%s", __func__); LOG_DBG("transient_opp: %d, curr_targ_opp: %d", transient_opp, curr_targ_opp); LOG_DBG("REGW: NRF_ABB->TRIM.RINGO[%d] 0x%x, V: 0x%x", TRANSIENT_ZBB_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.RINGO[TRANSIENT_ZBB_ABB_SLOT], opp_data->abb_ringo); LOG_DBG("REGW: NRF_ABB->TRIM.LOCKRANGE[%d] 0x%x, V: 0x%x", TRANSIENT_ZBB_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.LOCKRANGE[TRANSIENT_ZBB_ABB_SLOT], opp_data->abb_lockrange); LOG_DBG("REGW: NRF_ABB->TRIM.PVTMONCYCLES[%d] 0x%x, V: 0x%x", TRANSIENT_ZBB_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.PVTMONCYCLES[TRANSIENT_ZBB_ABB_SLOT], opp_data->abb_pvtmoncycles); /* For app core.*/ LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.RINGO[%d] 0x%x, V: 0x%x", TRANSIENT_ZBB_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.RINGO[TRANSIENT_ZBB_ABB_SLOT], opp_data->abb_ringo); LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.LOCKRANGE[%d] 0x%x, V: 0x%x", TRANSIENT_ZBB_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.LOCKRANGE[TRANSIENT_ZBB_ABB_SLOT], opp_data->abb_lockrange); LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[%d] 0x%x, V: 0x%x", TRANSIENT_ZBB_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[TRANSIENT_ZBB_ABB_SLOT], opp_data->abb_pvtmoncycles); #else NRF_ABB->TRIM.RINGO[TRANSIENT_ZBB_ABB_SLOT] = opp_data->abb_ringo; NRF_ABB->TRIM.LOCKRANGE[TRANSIENT_ZBB_ABB_SLOT] = opp_data->abb_lockrange; NRF_ABB->TRIM.PVTMONCYCLES[TRANSIENT_ZBB_ABB_SLOT] = opp_data->abb_pvtmoncycles; NRF_APPLICATION_ABB->TRIM.RINGO[TRANSIENT_ZBB_ABB_SLOT] = opp_data->abb_ringo; NRF_APPLICATION_ABB->TRIM.LOCKRANGE[TRANSIENT_ZBB_ABB_SLOT] = opp_data->abb_lockrange; NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[TRANSIENT_ZBB_ABB_SLOT] = opp_data->abb_pvtmoncycles; #endif opp_data = get_dvfs_oppoint_data(curr_targ_opp); #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_TEST) LOG_DBG("REGW: NRF_ABB->TRIM.RINGO[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT], opp_data->abb_ringo); LOG_DBG("REGW: NRF_ABB->TRIM.LOCKRANGE[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT], opp_data->abb_lockrange); LOG_DBG("REGW: NRF_ABB->TRIM.PVTMONCYCLES[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT], opp_data->abb_pvtmoncycles); LOG_DBG("REGW: TODO: NRF_ABB->CONFIG.CTRL4 0x%x, V: 0x%lx", (uint32_t)&NRF_ABB->CONFIG.CTRL4, LD_ABB_CTRL4_TRANSITION_OPERATION); /* For app core */ LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.RINGO[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT], opp_data->abb_ringo); LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.LOCKRANGE[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT], opp_data->abb_lockrange); LOG_DBG("REGW: NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[%d] 0x%x, V: 0x%x", CURR_TARG_ABB_SLOT, (uint32_t)&NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT], opp_data->abb_pvtmoncycles); LOG_DBG("REGW: TODO: NRF_APPLICATION_ABB->CONFIG.CTRL4 0x%x, V: 0x%lx", (uint32_t)&NRF_APPLICATION_ABB->CONFIG.CTRL4, LD_ABB_CTRL4_TRANSITION_OPERATION); #else NRF_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT] = opp_data->abb_ringo; NRF_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT] = opp_data->abb_lockrange; NRF_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT] = opp_data->abb_pvtmoncycles; NRF_ABB->CONFIG.CTRL4 = LD_ABB_CTRL4_TRANSITION_OPERATION; NRF_APPLICATION_ABB->TRIM.RINGO[CURR_TARG_ABB_SLOT] = opp_data->abb_ringo; NRF_APPLICATION_ABB->TRIM.LOCKRANGE[CURR_TARG_ABB_SLOT] = opp_data->abb_lockrange; NRF_APPLICATION_ABB->TRIM.PVTMONCYCLES[CURR_TARG_ABB_SLOT] = opp_data->abb_pvtmoncycles; NRF_APPLICATION_ABB->CONFIG.CTRL4 = LD_ABB_CTRL4_TRANSITION_OPERATION; #endif #endif } int32_t ld_dvfs_configure_hsfll(enum dvfs_frequency_setting oppoint) { nrf_hsfll_trim_t hsfll_trim = {}; if (oppoint >= DVFS_FREQ_COUNT) { LOG_ERR("Not valid oppoint %d", oppoint); return -EINVAL; } uint8_t freq_trim = get_dvfs_oppoint_data(oppoint)->new_f_trim_entry; #ifdef CONFIG_SOC_NRF54H20_CPUAPP hsfll_trim.vsup = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.VSUP; hsfll_trim.coarse = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.COARSE[freq_trim]; hsfll_trim.fine = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.FINE[freq_trim]; #else hsfll_trim.vsup = NRF_FICR->TRIM.SECURE.HSFLL.TRIM.VSUP; hsfll_trim.coarse = NRF_FICR->TRIM.SECURE.HSFLL.TRIM.COARSE[freq_trim]; hsfll_trim.fine = NRF_FICR->TRIM.SECURE.HSFLL.TRIM.FINE[freq_trim]; #endif #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_TEST) LOG_DBG("%s oppoint: %d", __func__, oppoint); LOG_DBG("REGW: NRF_HSFLL->MIRROR 0x%x, V: 0x%x", (uint32_t)&NRF_HSFLL->MIRROR, 1); LOG_DBG("REGW: NRF_HSFLL->TRIM.COARSE 0x%x, V: 0x%x", (uint32_t)&NRF_HSFLL->TRIM.COARSE, hsfll_trim.coarse); LOG_DBG("REGW: NRF_HSFLL->TRIM.FINE 0x%x, V: 0x%x", (uint32_t)&NRF_HSFLL->TRIM.FINE, hsfll_trim.fine); LOG_DBG("REGW: NRF_HSFLL->MIRROR 0x%x, V: 0x%x", (uint32_t)&NRF_HSFLL->MIRROR, 0); LOG_DBG("REGW: NRF_HSFLL->CLOCKCTRL.MULT 0x%x, V: 0x%x", (uint32_t)&NRF_HSFLL->CLOCKCTRL.MULT, get_dvfs_oppoint_data(oppoint)->new_f_mult); LOG_DBG("REGW: NRF_HSFLL->NRF_HSFLL_TASK_FREQ_CHANGE 0x%x, V: 0x%x", (uint32_t)NRF_HSFLL + NRF_HSFLL_TASK_FREQ_CHANGE, 0x1); return 0; #else nrf_hsfll_trim_set(NRF_HSFLL, &hsfll_trim); nrf_barrier_w(); nrf_hsfll_clkctrl_mult_set(NRF_HSFLL, get_dvfs_oppoint_data(oppoint)->new_f_mult); nrf_hsfll_task_trigger(NRF_HSFLL, NRF_HSFLL_TASK_FREQ_CHANGE); /* Trigger hsfll task one more time, SEE PAC-4078 */ nrf_hsfll_task_trigger(NRF_HSFLL, NRF_HSFLL_TASK_FREQ_CHANGE); bool hsfll_freq_changed = false; NRFX_WAIT_FOR(nrf_hsfll_event_check(NRF_HSFLL, NRF_HSFLL_EVENT_FREQ_CHANGED), HSFLL_FREQ_CHANGE_CHECK_MAX_ATTEMPTS, HSFLL_FREQ_CHANGE_CHECK_INTERVAL_US, hsfll_freq_changed); if (hsfll_freq_changed) { return 0; } return -ETIMEDOUT; #endif } void ld_dvfs_scaling_background_process(bool downscaling) { #if defined(NRF_SECURE) if (NRF_DOMAIN == NRF_DOMAIN_SECURE) { if (downscaling) { ld_dvfs_secure_start_increased_power_consumption(); } } #endif } void ld_dvfs_scaling_finish(bool downscaling) { #if defined(NRF_SECURE) #if defined(CONFIG_NRFS_LOCAL_DOMAIN_DVFS_TEST) LOG_DBG("%s", __func__); LOG_DBG("REGW: NRF_ABB->CONFIG.CTRL4 0x%x, V: 0x%lx", (uint32_t)&NRF_ABB->CONFIG.CTRL4, LD_ABB_CTRL4_NORMAL_OPERATION); LOG_DBG("REGW: NRF_APPLICATION_ABB->CONFIG.CTRL4 0x%x, V: 0x%lx", (uint32_t)&NRF_APPLICATION_ABB->CONFIG.CTRL4, LD_ABB_CTRL4_NORMAL_OPERATION); #else NRF_ABB->CONFIG.CTRL4 = LD_ABB_CTRL4_NORMAL_OPERATION; NRF_APPLICATION_ABB->CONFIG.CTRL4 = LD_ABB_CTRL4_NORMAL_OPERATION; #endif if (NRF_DOMAIN == NRF_DOMAIN_SECURE) { if (downscaling) { ld_dvfs_secure_stop_increased_power_consumption(); } } #endif } ```
/content/code_sandbox/modules/hal_nordic/nrfs/dvfs/ld_dvfs.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,290
```unknown # # # menu "Local domain DVFS library" module = LOCAL_DOMAIN_DVFS_LIB module-str = Local domain DVFS library source "subsys/logging/Kconfig.template.log_config" config NRFS_LOCAL_DOMAIN_DVFS_TEST bool "Local domain DVFS test" help Disable hw registers interaction for testing. config NRFS_LOCAL_DOMAIN_DVFS_SCALE_DOWN_AFTER_INIT bool "Local domain scale down after init" help Request lowest oppoint after DVFS initialization. config NRFS_LOCAL_DOMAIN_DOWNSCALE_SAFETY_TIMEOUT_US int "Voltage downscale procedure safety timeout in us" range 1 10000000 default 1000000 if (NRFS_LOCAL_DOMAIN_DVFS_TEST || LOG) default 1500 config NRFS_LOCAL_DOMAIN_DOWNSCALE_FINISH_DELAY_TIMEOUT_US int "Additional delay to let secdom finish dowscale procedure in us" range 1 10000000 default 1000 config NRFS_LOCAL_DOMAIN_DVFS_HANDLER_TASK_STACK_SIZE int "Stack size used for DVFS handling task" range 256 2048 default 1024 if LOG default 512 config NRFS_LOCAL_DOMAIN_DVFS_HANDLER_TASK_PRIORITY int "Priority of DVFS handling task" range -16 NUM_PREEMPT_PRIORITIES default 0 endmenu ```
/content/code_sandbox/modules/hal_nordic/nrfs/dvfs/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
285
```c /* * */ #include <zephyr/kernel.h> #include "nrf_802154_assert_zephyr.h" #if defined(CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL) __weak void nrf_802154_assert_handler(void) { #ifdef CONFIG_USERSPACE /* User threads aren't allowed to induce kernel panics; generate * an oops instead. */ if (k_is_user_context()) { k_oops(); } #endif k_panic(); } #endif /* CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL */ ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
121
```c /* * */ #include <platform/nrf_802154_irq.h> #include <zephyr/irq.h> #include <nrfx.h> void nrf_802154_irq_init(uint32_t irqn, int32_t prio, nrf_802154_isr_t isr) { uint32_t flags = 0U; if (prio < 0) { prio = 0; flags |= IRQ_ZERO_LATENCY; } irq_connect_dynamic(irqn, prio, isr, NULL, flags); } void nrf_802154_irq_enable(uint32_t irqn) { irq_enable(irqn); } void nrf_802154_irq_disable(uint32_t irqn) { irq_disable(irqn); } void nrf_802154_irq_set_pending(uint32_t irqn) { /* Zephyr does not provide abstraction layer for setting pending IRQ */ NVIC_SetPendingIRQ(irqn); } void nrf_802154_irq_clear_pending(uint32_t irqn) { /* Zephyr does not provide abstraction layer for clearing pending IRQ */ NVIC_ClearPendingIRQ(irqn); } bool nrf_802154_irq_is_enabled(uint32_t irqn) { return irq_is_enabled(irqn); } uint32_t nrf_802154_irq_priority_get(uint32_t irqn) { return NVIC_GetPriority(irqn); } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_irq_zephyr.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
292
```c /* * */ #include <nrf_802154_config.h> #include <platform/nrf_802154_clock.h> #include <stddef.h> #include <compiler_abstraction.h> #include <zephyr/kernel.h> #if defined(CONFIG_CLOCK_CONTROL_NRF) #include <zephyr/drivers/clock_control/nrf_clock_control.h> #include <zephyr/drivers/clock_control.h> #elif !defined(NRF54H_SERIES) #error No implementation to start or stop HFCLK due to missing clock_control. #endif static bool hfclk_is_running; void nrf_802154_clock_init(void) { /* Intentionally empty. */ } void nrf_802154_clock_deinit(void) { /* Intentionally empty. */ } bool nrf_802154_clock_hfclk_is_running(void) { return hfclk_is_running; } #if defined(CONFIG_CLOCK_CONTROL_NRF) static struct onoff_client hfclk_cli; static void hfclk_on_callback(struct onoff_manager *mgr, struct onoff_client *cli, uint32_t state, int res) { hfclk_is_running = true; nrf_802154_clock_hfclk_ready(); } void nrf_802154_clock_hfclk_start(void) { int ret; struct onoff_manager *mgr = z_nrf_clock_control_get_onoff(CLOCK_CONTROL_NRF_SUBSYS_HF); __ASSERT_NO_MSG(mgr != NULL); sys_notify_init_callback(&hfclk_cli.notify, hfclk_on_callback); ret = onoff_request(mgr, &hfclk_cli); __ASSERT_NO_MSG(ret >= 0); } void nrf_802154_clock_hfclk_stop(void) { int ret; struct onoff_manager *mgr = z_nrf_clock_control_get_onoff(CLOCK_CONTROL_NRF_SUBSYS_HF); __ASSERT_NO_MSG(mgr != NULL); ret = onoff_cancel_or_release(mgr, &hfclk_cli); __ASSERT_NO_MSG(ret >= 0); hfclk_is_running = false; } #elif defined(NRF54H_SERIES) #define NRF_LRCCONF_RADIO_PD NRF_LRCCONF010 /* HF clock time to ramp-up. */ #define MAX_HFXO_RAMP_UP_TIME_US 550 static void hfclk_started_timer_handler(struct k_timer *dummy) { hfclk_is_running = true; nrf_802154_clock_hfclk_ready(); } K_TIMER_DEFINE(hfclk_started_timer, hfclk_started_timer_handler, NULL); void nrf_802154_clock_hfclk_start(void) { /* Use register directly, there is no support for that task in nrf_lrcconf_task_trigger. * This code might cause troubles if there are other HFXO users in this CPU. */ NRF_LRCCONF_RADIO_PD->EVENTS_HFXOSTARTED = 0x0; NRF_LRCCONF_RADIO_PD->TASKS_REQHFXO = 0x1; k_timer_start(&hfclk_started_timer, K_USEC(MAX_HFXO_RAMP_UP_TIME_US), K_NO_WAIT); } void nrf_802154_clock_hfclk_stop(void) { /* Use register directly, there is no support for that task in nrf_lrcconf_task_trigger. * This code might cause troubles if there are other HFXO users in this CPU. */ NRF_LRCCONF_RADIO_PD->TASKS_STOPREQHFXO = 0x1; NRF_LRCCONF_RADIO_PD->EVENTS_HFXOSTARTED = 0x0; hfclk_is_running = false; } #endif ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
760
```c /* * */ /** * @file * This file implements the thermometer abstraction that uses Zephyr sensor * API for the die thermometer. * */ #include "platform/nrf_802154_temperature.h" #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> /** @brief Default temperature [C] reported if NRF_802154_TEMPERATURE_UPDATE is disabled. */ #define DEFAULT_TEMPERATURE 20 #define LOG_LEVEL LOG_LEVEL_INFO #define LOG_MODULE_NAME nrf_802154_temperature LOG_MODULE_REGISTER(LOG_MODULE_NAME); static int8_t value = DEFAULT_TEMPERATURE; #if defined(CONFIG_NRF_802154_TEMPERATURE_UPDATE) static const struct device *const device = DEVICE_DT_GET(DT_NODELABEL(temp)); static struct k_work_delayable dwork; static void work_handler(struct k_work *work) { struct sensor_value val; int err; err = sensor_sample_fetch(device); if (!err) { err = sensor_channel_get(device, SENSOR_CHAN_DIE_TEMP, &val); } if (!err && (value != val.val1)) { value = val.val1; nrf_802154_temperature_changed(); } k_work_reschedule(&dwork, K_MSEC(CONFIG_NRF_802154_TEMPERATURE_UPDATE_PERIOD)); } static int temperature_update_init(void) { __ASSERT_NO_MSG(device_is_ready(device)); k_work_init_delayable(&dwork, work_handler); k_work_schedule(&dwork, K_NO_WAIT); return 0; } SYS_INIT(temperature_update_init, POST_KERNEL, CONFIG_NRF_802154_TEMPERATURE_UPDATE_INIT_PRIO); BUILD_ASSERT(CONFIG_SENSOR_INIT_PRIORITY < CONFIG_NRF_802154_TEMPERATURE_UPDATE_INIT_PRIO, "CONFIG_SENSOR_INIT_PRIORITY must be lower than CONFIG_NRF_802154_TEMPERATURE_UPDATE_INIT_PRIO"); #endif /* defined(CONFIG_NRF_802154_TEMPERATURE_UPDATE) */ void nrf_802154_temperature_init(void) { /* Intentionally empty. */ } void nrf_802154_temperature_deinit(void) { /* Intentionally empty. */ } int8_t nrf_802154_temperature_get(void) { return value; } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_temperature_zephyr.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
475
```c /* * */ #include "nrf_802154_spinel_response_notifier.h" #include <assert.h> #include <string.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include "../spinel_base/spinel.h" #include "nrf_802154_spinel_log.h" #define LOG_LEVEL LOG_LEVEL_INFO #define LOG_MODULE_NAME spinel_ipc_backend_rsp_ntf LOG_MODULE_REGISTER(LOG_MODULE_NAME); /* TODO: Current implementation doesn't support reentrancy or multiple awaits. */ /** * Valid property IDs are from 0 to SPINEL_MAX_UINT_PACKED (2097151). * We use UINT32_MAX which is out of this range to indicate that we are * not waiting for any property. */ #define AWAITED_PROPERTY_NONE UINT32_MAX struct spinel_notify_buff_internal { nrf_802154_spinel_notify_buff_t buff; bool free; }; static K_SEM_DEFINE(notify_sem, 0, 1); static struct k_mutex await_mutex; static struct spinel_notify_buff_internal notify_buff; static spinel_prop_key_t awaited_property = AWAITED_PROPERTY_NONE; void nrf_802154_spinel_response_notifier_init(void) { notify_buff.free = true; k_mutex_init(&await_mutex); } void nrf_802154_spinel_response_notifier_lock_before_request(spinel_prop_key_t property) { /* * Only one thread can await response. * TODO: Implement matching responses to requests and allow multiple threads * to await simultaneously */ LOG_DBG("Locking response notifier"); int ret = k_mutex_lock(&await_mutex, K_FOREVER); assert(ret == 0); (void)ret; assert(awaited_property == AWAITED_PROPERTY_NONE); awaited_property = property; } nrf_802154_spinel_notify_buff_t *nrf_802154_spinel_response_notifier_property_await( uint32_t timeout) { nrf_802154_spinel_notify_buff_t *result = NULL; k_timeout_t k_timeout; if (timeout == 0) { k_timeout = K_NO_WAIT; } else if (timeout == SPINEL_RESPONSE_NOTIFIER_INF_TIMEOUT) { k_timeout = K_FOREVER; } else { k_timeout = K_MSEC(timeout); } if (k_sem_take(&notify_sem, k_timeout) == 0) { result = &notify_buff.buff; } else { LOG_ERR("No response within timeout %u", timeout); } return result; } void nrf_802154_spinel_response_notifier_free(nrf_802154_spinel_notify_buff_t *p_notify) { struct spinel_notify_buff_internal *p_notify_buff_free; int ret; p_notify_buff_free = CONTAINER_OF(p_notify, struct spinel_notify_buff_internal, buff); assert(p_notify_buff_free == &notify_buff); LOG_DBG("Unlocking response notifier"); p_notify_buff_free->free = true; ret = k_mutex_unlock(&await_mutex); assert(ret == 0); (void)ret; } void nrf_802154_spinel_response_notifier_property_notify(spinel_prop_key_t property, const void *p_data, size_t data_len) { if (property == awaited_property) { assert(notify_buff.free); notify_buff.free = false; awaited_property = AWAITED_PROPERTY_NONE; assert(data_len <= sizeof(notify_buff.buff.data)); memcpy(notify_buff.buff.data, p_data, data_len); notify_buff.buff.data_len = data_len; k_sem_give(&notify_sem); } else { /* TODO: Determine if this is an error condition. */ NRF_802154_SPINEL_LOG_RAW("Received property that noone is waiting for\n"); } } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_response_notifier.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
801
```c /* * */ #include <zephyr/init.h> #include "nrf_802154.h" #include "nrf_802154_serialization.h" static int serialization_init(void) { /* On NET core we don't use Zephyr's shim layer so we have to call inits manually */ nrf_802154_init(); nrf_802154_serialization_init(); return 0; } BUILD_ASSERT(CONFIG_NRF_802154_SER_RADIO_INIT_PRIO > CONFIG_KERNEL_INIT_PRIORITY_DEVICE, "CONFIG_NRF_802154_SER_RADIO_INIT_PRIO must be higher than CONFIG_KERNEL_INIT_PRIORITY_DEVICE"); SYS_INIT(serialization_init, POST_KERNEL, CONFIG_NRF_802154_SER_RADIO_INIT_PRIO); ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_init_net.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
148
```c /* * */ #include "nrf_802154_serialization_crit_sect.h" #ifndef TEST #include <zephyr/irq.h> #endif void nrf_802154_serialization_crit_sect_enter(uint32_t *p_critical_section) { #ifndef TEST *p_critical_section = irq_lock(); #else (void)p_critical_section; #endif } void nrf_802154_serialization_crit_sect_exit(uint32_t critical_section) { #ifndef TEST irq_unlock(critical_section); #else (void)critical_section; #endif } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_serialization_crit_sect.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
115
```objective-c /* * */ #ifndef NRFX_CONFIG_NRF54L15_ENGA_FLPR_H__ #define NRFX_CONFIG_NRF54L15_ENGA_FLPR_H__ #ifndef NRFX_CONFIG_H__ #error "This file should not be included directly. Include nrfx_config.h instead." #endif /** * @brief NRFX_DEFAULT_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_DEFAULT_IRQ_PRIORITY #define NRFX_DEFAULT_IRQ_PRIORITY 0 #endif /** * @brief NRFX_CLOCK_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_ENABLED #define NRFX_CLOCK_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_SRC * * Integer value. * Supported values: * - RC = 0 * - XTAL = 1 * - Synth = 2 */ #ifndef NRFX_CLOCK_CONFIG_LF_SRC #define NRFX_CLOCK_CONFIG_LF_SRC 1 #endif /** * @brief NRFX_CLOCK_CONFIG_LF_CAL_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED #define NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED 0 #endif /** * @brief NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_CLOCK_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL #define NRFX_CLOCK_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_COMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_ENABLED #define NRFX_COMP_ENABLED 0 #endif /** * @brief NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_COMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_COMP_CONFIG_LOG_ENABLED #define NRFX_COMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_COMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_COMP_CONFIG_LOG_LEVEL #define NRFX_COMP_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_DPPI_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_ENABLED #define NRFX_DPPI_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED #define NRFX_DPPI_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_DPPI_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL #define NRFX_DPPI_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_EGU_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU_ENABLED #define NRFX_EGU_ENABLED 0 #endif /** * @brief NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_EGU10_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU10_ENABLED #define NRFX_EGU10_ENABLED 0 #endif /** * @brief NRFX_EGU20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_EGU20_ENABLED #define NRFX_EGU20_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_ENABLED #define NRFX_GPIOTE_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS * * Integer value. Minimum: 0. Maximum: 15. */ #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS #define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 2 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GPIOTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_GPIOTE20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE20_ENABLED #define NRFX_GPIOTE20_ENABLED 0 #endif /** * @brief NRFX_GPIOTE30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GPIOTE30_ENABLED #define NRFX_GPIOTE30_ENABLED 0 #endif /** * @brief NRFX_GRTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_ENABLED #define NRFX_GRTC_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_SLEEP_ALLOWED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_SLEEP_ALLOWED #define NRFX_GRTC_CONFIG_SLEEP_ALLOWED 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOEN * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOEN #define NRFX_GRTC_CONFIG_AUTOEN 0 #endif /** * @brief NRFX_GRTC_CONFIG_AUTOSTART * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_AUTOSTART #define NRFX_GRTC_CONFIG_AUTOSTART 0 #endif /** * @brief NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS * * Integer value. */ #ifndef NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS #define NRFX_GRTC_CONFIG_NUM_OF_CC_CHANNELS 2 #endif /** * @brief NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK */ #ifndef NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK #define NRFX_GRTC_CONFIG_ALLOWED_CC_CHANNELS_MASK 0x00000018 #endif /** * @brief NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_GRTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_GRTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_GRTC_CONFIG_LOG_ENABLED #define NRFX_GRTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_GRTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_GRTC_CONFIG_LOG_LEVEL #define NRFX_GRTC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_I2S_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_I2S_ENABLED #define NRFX_I2S_ENABLED 0 #endif /** * @brief NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_I2S_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_I2S_CONFIG_LOG_ENABLED #define NRFX_I2S_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_I2S_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_I2S_CONFIG_LOG_LEVEL #define NRFX_I2S_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_I2S20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_I2S20_ENABLED #define NRFX_I2S20_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_ENABLED #define NRFX_LPCOMP_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_LPCOMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_NFCT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_ENABLED #define NRFX_NFCT_ENABLED 0 #endif /** * @brief NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. * * Integer value. Minimum: 0. Maximum: 5. */ #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED #define NRFX_NFCT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_NFCT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL #define NRFX_NFCT_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_PDM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_ENABLED #define NRFX_PDM_ENABLED 0 #endif /** * @brief NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PDM_CONFIG_LOG_ENABLED #define NRFX_PDM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PDM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PDM_CONFIG_LOG_LEVEL #define NRFX_PDM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_POWER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_POWER_ENABLED #define NRFX_POWER_ENABLED 0 #endif /** * @brief NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_PRS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_ENABLED #define NRFX_PRS_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_PRS_BOX_0_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_0_ENABLED #define NRFX_PRS_BOX_0_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_1_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_1_ENABLED #define NRFX_PRS_BOX_1_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_2_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_2_ENABLED #define NRFX_PRS_BOX_2_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_3_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_3_ENABLED #define NRFX_PRS_BOX_3_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_4_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_4_ENABLED #define NRFX_PRS_BOX_4_ENABLED 0 #endif /** * @brief NRFX_PRS_BOX_5_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_PRS_BOX_5_ENABLED #define NRFX_PRS_BOX_5_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PRS_CONFIG_LOG_ENABLED #define NRFX_PRS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PRS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PRS_CONFIG_LOG_LEVEL #define NRFX_PRS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_PWM_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 0 #endif /** * @brief NRFX_PWM20_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM20_ENABLED #define NRFX_PWM20_ENABLED 0 #endif /** * @brief NRFX_PWM21_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM21_ENABLED #define NRFX_PWM21_ENABLED 0 #endif /** * @brief NRFX_PWM22_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM22_ENABLED #define NRFX_PWM22_ENABLED 0 #endif /** * @brief NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0 Maximum: 3 */ #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_PWM_CONFIG_LOG_ENABLED #define NRFX_PWM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_PWM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_PWM_CONFIG_LOG_LEVEL #define NRFX_PWM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_QDEC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_ENABLED #define NRFX_QDEC_ENABLED 0 #endif /** * @brief NRFX_QDEC20_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC20_ENABLED #define NRFX_QDEC20_ENABLED 0 #endif /** * @brief NRFX_QDEC21_ENABLED * * Boolean. Accepted values 0 and 1. */ #ifndef NRFX_QDEC21_ENABLED #define NRFX_QDEC21_ENABLED 0 #endif /** * @brief NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_QDEC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_QDEC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED #define NRFX_QDEC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_QDEC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL #define NRFX_QDEC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_QDEC20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC20_ENABLED #define NRFX_QDEC20_ENABLED 0 #endif /** * @brief NRFX_QDEC21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_QDEC21_ENABLED #define NRFX_QDEC21_ENABLED 0 #endif /** * @brief NRFX_RRAMC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RRAMC_ENABLED #define NRFX_RRAMC_ENABLED 0 #endif /** * @brief NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RRAMC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RRAMC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RRAMC_CONFIG_LOG_ENABLED #define NRFX_RRAMC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RRAMC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RRAMC_CONFIG_LOG_LEVEL #define NRFX_RRAMC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_RTC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_ENABLED #define NRFX_RTC_ENABLED 0 #endif /** * @brief NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_RTC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC_CONFIG_LOG_ENABLED #define NRFX_RTC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_RTC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_RTC_CONFIG_LOG_LEVEL #define NRFX_RTC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_RTC10_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC10_ENABLED #define NRFX_RTC10_ENABLED 0 #endif /** * @brief NRFX_RTC30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_RTC30_ENABLED #define NRFX_RTC30_ENABLED 0 #endif /** * @brief NRFX_SAADC_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_ENABLED #define NRFX_SAADC_ENABLED 0 #endif /** * @brief NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SAADC_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SAADC_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED #define NRFX_SAADC_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SAADC_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL #define NRFX_SAADC_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_SPIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_ENABLED #define NRFX_SPIM_ENABLED 0 #endif /** * @brief NRFX_SPIM_EXTENDED_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_EXTENDED_ENABLED #define NRFX_SPIM_EXTENDED_ENABLED 0 #endif /** * @brief NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED #define NRFX_SPIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL #define NRFX_SPIM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_SPIM00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM00_ENABLED #define NRFX_SPIM00_ENABLED 0 #endif /** * @brief NRFX_SPIM20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM20_ENABLED #define NRFX_SPIM20_ENABLED 0 #endif /** * @brief NRFX_SPIM21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM21_ENABLED #define NRFX_SPIM21_ENABLED 0 #endif /** * @brief NRFX_SPIM22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM22_ENABLED #define NRFX_SPIM22_ENABLED 0 #endif /** * @brief NRFX_SPIM30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIM30_ENABLED #define NRFX_SPIM30_ENABLED 0 #endif /** * @brief NRFX_SPIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_ENABLED #define NRFX_SPIS_ENABLED 0 #endif /** * @brief NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_SPIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED #define NRFX_SPIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_SPIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL #define NRFX_SPIS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_SPIS00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS00_ENABLED #define NRFX_SPIS00_ENABLED 0 #endif /** * @brief NRFX_SPIS20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS20_ENABLED #define NRFX_SPIS20_ENABLED 0 #endif /** * @brief NRFX_SPIS21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS21_ENABLED #define NRFX_SPIS21_ENABLED 0 #endif /** * @brief NRFX_SPIS22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS22_ENABLED #define NRFX_SPIS22_ENABLED 0 #endif /** * @brief NRFX_SPIS30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_SPIS30_ENABLED #define NRFX_SPIS30_ENABLED 0 #endif /** * @brief NRFX_TEMP_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_ENABLED #define NRFX_TEMP_ENABLED 0 #endif /** * @brief NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TEMP_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TEMP_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TEMP_CONFIG_LOG_ENABLED #define NRFX_TEMP_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TEMP_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TEMP_CONFIG_LOG_LEVEL #define NRFX_TEMP_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TIMER_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 #endif /** * @brief NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TIMER_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TIMER_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TIMER00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER00_ENABLED #define NRFX_TIMER00_ENABLED 0 #endif /** * @brief NRFX_TIMER10_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER10_ENABLED #define NRFX_TIMER10_ENABLED 0 #endif /** * @brief NRFX_TIMER20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER20_ENABLED #define NRFX_TIMER20_ENABLED 0 #endif /** * @brief NRFX_TIMER21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER21_ENABLED #define NRFX_TIMER21_ENABLED 0 #endif /** * @brief NRFX_TIMER22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER22_ENABLED #define NRFX_TIMER22_ENABLED 0 #endif /** * @brief NRFX_TIMER23_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER23_ENABLED #define NRFX_TIMER23_ENABLED 0 #endif /** * @brief NRFX_TIMER24_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TIMER24_ENABLED #define NRFX_TIMER24_ENABLED 0 #endif /** * @brief NRFX_TWIM_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_ENABLED #define NRFX_TWIM_ENABLED 0 #endif /** * @brief NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIM_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED #define NRFX_TWIM_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIM_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL #define NRFX_TWIM_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TWIM20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM20_ENABLED #define NRFX_TWIM20_ENABLED 0 #endif /** * @brief NRFX_TWIM21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM21_ENABLED #define NRFX_TWIM21_ENABLED 0 #endif /** * @brief NRFX_TWIM22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM22_ENABLED #define NRFX_TWIM22_ENABLED 0 #endif /** * @brief NRFX_TWIM30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIM30_ENABLED #define NRFX_TWIM30_ENABLED 0 #endif /** * @brief NRFX_TWIS_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ENABLED #define NRFX_TWIS_ENABLED 0 #endif /** * @brief NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_TWIS_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED #define NRFX_TWIS_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY * Assume that any instance would be initialized only once. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0 #endif /** * @brief NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS_NO_SYNC_MODE #define NRFX_TWIS_NO_SYNC_MODE 0 #endif /** * @brief NRFX_TWIS_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL #define NRFX_TWIS_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_TWIS20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS20_ENABLED #define NRFX_TWIS20_ENABLED 0 #endif /** * @brief NRFX_TWIS21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS21_ENABLED #define NRFX_TWIS21_ENABLED 0 #endif /** * @brief NRFX_TWIS22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS22_ENABLED #define NRFX_TWIS22_ENABLED 0 #endif /** * @brief NRFX_TWIS30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_TWIS30_ENABLED #define NRFX_TWIS30_ENABLED 0 #endif /** * @brief NRFX_UARTE_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_ENABLED #define NRFX_UARTE_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG * If enabled, support for configuring GPIO pins is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG #define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG * If enabled, support for configuring PSEL registers is removed from the driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG #define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 0 #endif /** * @brief NRFX_UARTE_CONFIG_TX_LINK * If enabled, driver supports linking of TX transfers. * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_TX_LINK #define NRFX_UARTE_CONFIG_TX_LINK 1 #endif /** * @brief NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE * * Integer value. Minimum: 0. Maximum: 255. */ #ifndef NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE #define NRFX_UARTE_RX_FIFO_FLUSH_WORKAROUND_MAGIC_BYTE 171 #endif /** * @brief NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_UARTE_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED #define NRFX_UARTE_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_UARTE_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL #define NRFX_UARTE_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_UARTE00_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE00_ENABLED #define NRFX_UARTE00_ENABLED 0 #endif /** * @brief NRFX_UARTE20_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE20_ENABLED #define NRFX_UARTE20_ENABLED 0 #endif /** * @brief NRFX_UARTE21_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE21_ENABLED #define NRFX_UARTE21_ENABLED 0 #endif /** * @brief NRFX_UARTE22_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE22_ENABLED #define NRFX_UARTE22_ENABLED 0 #endif /** * @brief NRFX_UARTE30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_UARTE30_ENABLED #define NRFX_UARTE30_ENABLED 0 #endif /** * @brief NRFX_VEVIF_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_VEVIF_ENABLED #define NRFX_VEVIF_ENABLED 0 #endif /** * @brief NRFX_WDT_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_ENABLED #define NRFX_WDT_ENABLED 0 #endif /** * @brief NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY * * Integer value. Minimum: 0. Maximum: 3. */ #ifndef NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY NRFX_DEFAULT_IRQ_PRIORITY #endif /** * @brief NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_NO_IRQ #define NRFX_WDT_CONFIG_NO_IRQ 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT_CONFIG_LOG_ENABLED #define NRFX_WDT_CONFIG_LOG_ENABLED 0 #endif /** * @brief NRFX_WDT_CONFIG_LOG_LEVEL * * Integer value. * Supported values: * - Off = 0 * - Error = 1 * - Warning = 2 * - Info = 3 * - Debug = 4 */ #ifndef NRFX_WDT_CONFIG_LOG_LEVEL #define NRFX_WDT_CONFIG_LOG_LEVEL 0 #endif /** * @brief NRFX_WDT30_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT30_ENABLED #define NRFX_WDT30_ENABLED 0 #endif /** * @brief NRFX_WDT31_ENABLED * * Boolean. Accepted values: 0 and 1. */ #ifndef NRFX_WDT31_ENABLED #define NRFX_WDT31_ENABLED 0 #endif #endif /* NRFX_CONFIG_NRF54L15_ENGA_FLPR_H__ */ ```
/content/code_sandbox/modules/hal_nordic/nrfx/nrfx_config_nrf54l15_enga_flpr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,033
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/ipc/ipc_service.h> #include <zephyr/device.h> #include <zephyr/logging/log.h> #include "nrf_802154.h" #include "nrf_802154_spinel_backend_callouts.h" #include "nrf_802154_serialization_error.h" #include "../../spinel_base/spinel.h" #include "../../src/include/nrf_802154_spinel.h" #if defined(CONFIG_SOC_NRF5340_CPUAPP) #include <nrf53_cpunet_mgmt.h> #endif #define LOG_LEVEL LOG_LEVEL_INFO #define LOG_MODULE_NAME spinel_ipc_backend LOG_MODULE_REGISTER(LOG_MODULE_NAME); #define IPC_BOUND_TIMEOUT_IN_MS K_MSEC(1000) static K_SEM_DEFINE(edp_bound_sem, 0, 1); static struct ipc_ept ept; static void endpoint_bound(void *priv) { k_sem_give(&edp_bound_sem); } static void endpoint_received(const void *data, size_t len, void *priv) { LOG_DBG("Received message of %u bytes.", len); nrf_802154_spinel_encoded_packet_received(data, len); } static struct ipc_ept_cfg ept_cfg = { .name = "nrf_802154_spinel", .cb = { .bound = endpoint_bound, .received = endpoint_received }, }; nrf_802154_ser_err_t nrf_802154_backend_init(void) { const struct device *const ipc_instance = DEVICE_DT_GET(DT_CHOSEN(nordic_802154_spinel_ipc)); int err; #if defined(CONFIG_SOC_NRF5340_CPUAPP) nrf53_cpunet_enable(true); #endif err = ipc_service_open_instance(ipc_instance); if (err < 0 && err != -EALREADY) { LOG_ERR("Failed to open IPC instance: %d", err); return NRF_802154_SERIALIZATION_ERROR_INIT_FAILED; } err = ipc_service_register_endpoint(ipc_instance, &ept, &ept_cfg); if (err < 0) { LOG_ERR("Failed to register IPC endpoint: %d", err); return NRF_802154_SERIALIZATION_ERROR_INIT_FAILED; } err = k_sem_take(&edp_bound_sem, IPC_BOUND_TIMEOUT_IN_MS); if (err < 0) { LOG_ERR("IPC endpoint bind timed out"); return NRF_802154_SERIALIZATION_ERROR_INIT_FAILED; } return NRF_802154_SERIALIZATION_ERROR_OK; } /* Send packet thread details */ #define SEND_THREAD_STACK_SIZE 1024 /* Make the ring buffer long enough to hold all notifications that the driver can produce */ #define RING_BUFFER_LEN (NRF_802154_MAX_PENDING_NOTIFICATIONS + 1) static K_SEM_DEFINE(send_sem, 0, RING_BUFFER_LEN); K_THREAD_STACK_DEFINE(send_thread_stack, SEND_THREAD_STACK_SIZE); struct k_thread send_thread_data; struct ringbuffer { uint32_t len; uint8_t data[NRF_802154_SPINEL_FRAME_MAX_SIZE]; }; static struct ringbuffer ring_buffer[RING_BUFFER_LEN]; static uint8_t rd_idx; static uint8_t wr_idx; static uint8_t get_rb_idx_plus_1(uint8_t i) { return (i + 1) % RING_BUFFER_LEN; } static nrf_802154_ser_err_t spinel_packet_from_thread_send(const uint8_t *data, uint32_t len) { if (get_rb_idx_plus_1(wr_idx) == rd_idx) { LOG_ERR("No spinel buffer available to send a new packet"); return NRF_802154_SERIALIZATION_ERROR_BACKEND_FAILURE; } LOG_DBG("Scheduling %u bytes for send thread", len); struct ringbuffer *buf = &ring_buffer[wr_idx]; wr_idx = get_rb_idx_plus_1(wr_idx); buf->len = len; memcpy(buf->data, data, len); k_sem_give(&send_sem); return (nrf_802154_ser_err_t)len; } static void spinel_packet_send_thread_fn(void *arg1, void *arg2, void *arg3) { LOG_DBG("Spinel backend send thread started"); while (true) { k_sem_take(&send_sem, K_FOREVER); struct ringbuffer *buf = &ring_buffer[rd_idx]; uint32_t expected_ret = buf->len; LOG_DBG("Sending %u bytes from send thread", buf->len); int ret = ipc_service_send(&ept, buf->data, buf->len); rd_idx = get_rb_idx_plus_1(rd_idx); if (ret != expected_ret) { nrf_802154_ser_err_data_t err = { .reason = NRF_802154_SERIALIZATION_ERROR_BACKEND_FAILURE, }; nrf_802154_serialization_error(&err); } } } K_THREAD_DEFINE(spinel_packet_send_thread, SEND_THREAD_STACK_SIZE, spinel_packet_send_thread_fn, NULL, NULL, NULL, K_PRIO_COOP(0), 0, 0); nrf_802154_ser_err_t nrf_802154_spinel_encoded_packet_send(const void *p_data, size_t data_len) { if (k_is_in_isr()) { return spinel_packet_from_thread_send(p_data, data_len); } LOG_DBG("Sending %u bytes directly", data_len); int ret = ipc_service_send(&ept, p_data, data_len); return ((ret < 0) ? NRF_802154_SERIALIZATION_ERROR_BACKEND_FAILURE : (nrf_802154_ser_err_t) ret); } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,197
```c /* * */ #include <stdint.h> #include <stddef.h> #include <zephyr/kernel.h> void nrf_802154_spinel_log(const char *p_fmt, ...) { va_list args; va_start(args, p_fmt); vprintk(p_fmt, args); va_end(args); } void nrf_802154_spinel_buff_log(const uint8_t *p_buff, size_t buff_len) { for (size_t i = 0; i < buff_len; i++) { if (i != 0) { printk(" "); } printk("0x%02x", p_buff[i]); } } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_log.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
136
```c /* * */ #include <platform/nrf_802154_temperature.h> #include <zephyr/drivers/entropy.h> static uint32_t state; static uint32_t next(void) { state ^= (state<<13); state ^= (state>>17); return state ^= (state<<5); } void nrf_802154_random_init(void) { const struct device *const dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_entropy)); int err; __ASSERT_NO_MSG(device_is_ready(dev)); do { err = entropy_get_entropy(dev, (uint8_t *)&state, sizeof(state)); __ASSERT_NO_MSG(err == 0); } while (state == 0); } void nrf_802154_random_deinit(void) { /* Intentionally empty */ } uint32_t nrf_802154_random_get(void) { return next(); } ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/radio/platform/nrf_802154_random_zephyr.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
182
```objective-c /* * */ #ifndef NRF_802154_ASSERT_ZEPHYR_H__ #define NRF_802154_ASSERT_ZEPHYR_H__ #if defined(CONFIG_NRF_802154_ASSERT_ZEPHYR) #include <zephyr/sys/__assert.h> #define NRF_802154_ASSERT(condition) __ASSERT_NO_MSG(condition) #elif defined(CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL) extern void nrf_802154_assert_handler(void); #define NRF_802154_ASSERT(condition) \ do { \ if (!(condition)) { \ nrf_802154_assert_handler(); \ } \ } while (0) #endif /* CONFIG_NRF_802154_ASSERT_ZEPHYR_MINIMAL */ #endif /* NRF_802154_ASSERT_ZEPHYR_H__*/ ```
/content/code_sandbox/modules/hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
165
```cmake function(nrf_regtool_generate_hex_from_dts peripheral) string(TOLOWER "${peripheral}.hex" generated_hex_name) string(TOLOWER "${peripheral}_merged.hex" merged_hex_name) # Prepare common argument sub-lists. string(REPEAT "-v;" ${CONFIG_NRF_REGTOOL_VERBOSITY} verbosity) list(TRANSFORM CACHED_DTS_ROOT_BINDINGS PREPEND "--bindings-dir;" OUTPUT_VARIABLE bindings_dirs) separate_arguments(extra_args UNIX_COMMAND "${CONFIG_NRF_REGTOOL_EXTRA_GENERATE_ARGS}") set(generated_hex_file ${PROJECT_BINARY_DIR}/${generated_hex_name}) execute_process( COMMAND ${CMAKE_COMMAND} -E env PYTHONPATH=${ZEPHYR_BASE}/scripts/dts/python-devicetree/src ${NRF_REGTOOL} ${verbosity} generate --peripheral ${peripheral} --svd-file ${SOC_SVD_FILE} --dts-file ${ZEPHYR_DTS} ${bindings_dirs} --output-file ${generated_hex_file} ${extra_args} WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR} COMMAND_ERROR_IS_FATAL ANY ) message(STATUS "Generated ${peripheral} hex file: ${generated_hex_file}") set(merged_hex_file ${PROJECT_BINARY_DIR}/${merged_hex_name}) set_property(GLOBAL APPEND PROPERTY extra_post_build_commands COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/mergehex.py -o ${merged_hex_file} ${generated_hex_file} ${PROJECT_BINARY_DIR}/${KERNEL_HEX_NAME} ) set_property(TARGET runners_yaml_props_target PROPERTY hex_file ${merged_hex_file}) endfunction() foreach(component IN LISTS ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS) string(REGEX MATCH "(^.*):(.*$)" match ${component}) set(operation "${CMAKE_MATCH_1}") set(peripheral "${CMAKE_MATCH_2}") if(operation STREQUAL "GENERATE") nrf_regtool_generate_hex_from_dts(${peripheral}) else() message(FATAL_ERROR "Unrecognized package component: \"${component}\"") endif() endforeach() ```
/content/code_sandbox/modules/hal_nordic/nrf-regtool/nrf-regtoolConfig.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
466
```cmake find_program(NRF_REGTOOL nrf-regtool) if(NRF_REGTOOL) execute_process( COMMAND ${NRF_REGTOOL} --version OUTPUT_VARIABLE version RESULT_VARIABLE result ) if(result EQUAL 0 AND version MATCHES "version ([0-9]+[.][0-9]+[.][0-9]+)") set(PACKAGE_VERSION ${CMAKE_MATCH_1}) if(PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION) set(PACKAGE_VERSION_COMPATIBLE TRUE) if(PACKAGE_VERSION VERSION_EQUAL PACKAGE_FIND_VERSION) set(PACKAGE_VERSION_EXACT TRUE) endif() message(STATUS "Found nrf-regtool (found suitable version \"${PACKAGE_VERSION}\", " "minimum required is \"${PACKAGE_FIND_VERSION}\")" ) return() endif() endif() endif() # We only get here if we don't pass the version check. set(PACKAGE_VERSION_UNSUITABLE TRUE) set(NRF_REGTOOL NRF_REGTOOL-NOTFOUND CACHE INTERNAL "Path to a program") ```
/content/code_sandbox/modules/hal_nordic/nrf-regtool/nrf-regtoolConfigVersion.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
237
```unknown # config AMBIQ_HAL bool "Ambiq HAL drivers support" depends on SOC_SERIES_APOLLO4X || SOC_SERIES_APOLLO3X help Use the Ambiq HAL if AMBIQ_HAL config AMBIQ_HAL_USE_GPIO bool help Use the GPIO driver from Ambiq HAL config AMBIQ_HAL_USE_STIMER bool help Use the STIMER driver from Ambiq HAL config AMBIQ_HAL_USE_TIMER bool help Use the TIMER driver from Ambiq HAL config AMBIQ_HAL_USE_WDT bool help Use the WDT driver from Ambiq HAL config AMBIQ_HAL_USE_I2C bool help Use the I2C driver from Ambiq HAL config AMBIQ_HAL_USE_SPI bool help Use the SPI driver from Ambiq HAL config AMBIQ_HAL_USE_MSPI bool help Use the MSPI driver from Ambiq HAL config AMBIQ_HAL_USE_HWINFO bool help Use the HWINFO driver from Ambiq HAL config AMBIQ_HAL_USE_BLEIF bool help Use the BLEIF driver from Ambiq HAL config AMBIQ_HAL_USE_ADC bool help Use the ADC driver from Ambiq HAL endif # AMBIQ_HAL ```
/content/code_sandbox/modules/hal_ambiq/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
293
```unknown # # # # file is empty and kept as a place holder if/when Kconfig is needed ```
/content/code_sandbox/modules/hal_nxp/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
22