modules: hal_nordic: Update nrfx to version 2.6.0
Update the hal_nordic module revision, to switch to nrfx v2.6.0. nrfx 2.6.0 includes extended API in nrfx_gpiote which can be used by the zephyr shim. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
7464c8a923
commit
7e0f1d08e4
|
@ -7,6 +7,7 @@ set(NRFX_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/nrfx)
|
|||
set(INC_DIR ${NRFX_DIR}/drivers/include)
|
||||
set(SRC_DIR ${NRFX_DIR}/drivers/src)
|
||||
set(MDK_DIR ${NRFX_DIR}/mdk)
|
||||
set(HELPERS_DIR ${NRFX_DIR}/helpers)
|
||||
|
||||
zephyr_include_directories(${NRFX_DIR})
|
||||
zephyr_include_directories(${INC_DIR})
|
||||
|
@ -58,6 +59,7 @@ zephyr_library_sources_ifdef(CONFIG_SOC_NRF5340_CPUNET ${MDK_DIR}/system_nrf5340
|
|||
zephyr_library_sources_ifdef(CONFIG_SOC_NRF9160 ${MDK_DIR}/system_nrf9160.c)
|
||||
|
||||
zephyr_library_sources(nrfx_glue.c)
|
||||
zephyr_library_sources(${HELPERS_DIR}/nrfx_flag32_allocator.c)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_NRFX_PRS ${SRC_DIR}/prs/nrfx_prs.c)
|
||||
|
||||
|
|
|
@ -105,6 +105,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -185,9 +191,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -157,9 +163,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -231,9 +237,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -232,9 +238,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -256,9 +262,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -256,9 +262,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -256,9 +262,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -38,6 +38,12 @@
|
|||
#define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_CT_ENABLED - Enables Calibration Timer Support
|
||||
|
||||
#ifndef NRFX_CLOCK_CONFIG_CT_ENABLED
|
||||
#define NRFX_CLOCK_CONFIG_CT_ENABLED 0
|
||||
#endif
|
||||
|
||||
// <q> NRFX_CLOCK_CONFIG_LFXO_TWO_STAGE_ENABLED - Enables two-stage LFXO start procedure
|
||||
|
||||
// <i> If set to a non-zero value, LFRC will be started before LFXO and corresponding
|
||||
|
@ -256,9 +262,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
|
||||
|
|
|
@ -419,9 +419,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins.
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority.
|
||||
|
|
|
@ -266,9 +266,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins.
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority.
|
||||
|
|
|
@ -307,9 +307,10 @@
|
|||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins.
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
|
||||
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS - Number of dedicated handlers
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS
|
||||
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority.
|
||||
|
|
|
@ -195,6 +195,41 @@ void nrfx_busy_wait(uint32_t usec_to_wait);
|
|||
*/
|
||||
#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)
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue