This file contains macros that should be implemented according to the needs of the host environment into which nrfx is integrated. More...
This file contains macros that should be implemented according to the needs of the host environment into which nrfx is integrated.
Definition in file nrfx_glue.h.
Go to the source code of this file.
| #define | NRFX_ASSERT(expression) |
| Macro for placing a runtime assertion. More... | |
| #define | NRFX_STATIC_ASSERT(expression) |
| Macro for placing a compile time assertion. More... | |
| #define | NRFX_IRQ_PRIORITY_SET(irq_number, priority) |
| Macro for setting the priority of a specific IRQ. More... | |
| #define | NRFX_IRQ_ENABLE(irq_number) |
| Macro for enabling a specific IRQ. More... | |
| #define | NRFX_IRQ_IS_ENABLED(irq_number) |
| Macro for checking if a specific IRQ is enabled. More... | |
| #define | NRFX_IRQ_DISABLE(irq_number) |
| Macro for disabling a specific IRQ. More... | |
| #define | NRFX_IRQ_PENDING_SET(irq_number) |
| Macro for setting a specific IRQ as pending. More... | |
| #define | NRFX_IRQ_PENDING_CLEAR(irq_number) |
| Macro for clearing the pending status of a specific IRQ. More... | |
| #define | NRFX_IRQ_IS_PENDING(irq_number) |
| Macro for checking the pending status of a specific IRQ. More... | |
| #define | NRFX_CRITICAL_SECTION_ENTER() |
| Macro for entering into a critical section. | |
| #define | NRFX_CRITICAL_SECTION_EXIT() |
| Macro for exiting from a critical section. | |
| #define | NRFX_DELAY_DWT_BASED 0 |
| When set to a non-zero value, this macro specifies that nrfx_coredep_delay_us uses a precise DWT-based solution. More... | |
| #define | NRFX_DELAY_US(us_time) |
| Macro for delaying the code execution for at least the specified time. More... | |
| #define | nrfx_atomic_t |
| Atomic 32-bit unsigned type. | |
| #define | NRFX_ATOMIC_FETCH_STORE(p_data, value) |
| Macro for storing a value to an atomic object and returning its previous value. More... | |
| #define | NRFX_ATOMIC_FETCH_OR(p_data, value) |
| Macro for running a bitwise OR operation on an atomic object and returning its previous value. More... | |
| #define | NRFX_ATOMIC_FETCH_AND(p_data, value) |
| Macro for running a bitwise AND operation on an atomic object and returning its previous value. More... | |
| #define | NRFX_ATOMIC_FETCH_XOR(p_data, value) |
| Macro for running a bitwise XOR operation on an atomic object and returning its previous value. More... | |
| #define | NRFX_ATOMIC_FETCH_ADD(p_data, value) |
| Macro for running an addition operation on an atomic object and returning its previous value. More... | |
| #define | NRFX_ATOMIC_FETCH_SUB(p_data, value) |
| Macro for running a subtraction operation on an atomic object and returning its previous value. More... | |
| #define | NRFX_ATOMIC_CAS(p_data, old_value, new_value) |
| Macro for running compare and swap on an atomic object. More... | |
| #define | NRFX_CLZ(value) |
| Macro for counting leading zeros. More... | |
| #define | NRFX_CTZ(value) |
| Macro for counting trailing zeros. More... | |
| #define | NRFX_CUSTOM_ERROR_CODES 0 |
When set to a non-zero value, this macro specifies that the nrfx_error_codes and the nrfx_err_t type itself are defined in a customized way and the default definitions from <nrfx_error.h> should not be used. | |
| #define | NRFX_EVENT_READBACK_ENABLED 1 |
| 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_DPPI_CHANNELS_USED 0 |
| Bitmask that defines DPPI channels that are reserved for use outside of the nrfx library. | |
| #define | NRFX_DPPI_GROUPS_USED 0 |
| Bitmask that defines DPPI groups that are reserved for use outside of the nrfx library. | |
| #define | NRFX_PPI_CHANNELS_USED 0 |
| Bitmask that defines PPI channels that are reserved for use outside of the nrfx library. | |
| #define | NRFX_PPI_GROUPS_USED 0 |
| Bitmask that defines PPI groups that are reserved for use outside of the nrfx library. | |
| #define | NRFX_GPIOTE_CHANNELS_USED 0 |
| Bitmask that defines GPIOTE channels that are reserved for use outside of the nrfx library. | |
| #define | NRFX_EGUS_USED 0 |
| Bitmask that defines EGU instances that are reserved for use outside of the nrfx library. | |
| #define | NRFX_TIMERS_USED 0 |
| Bitmask that defines TIMER instances that are reserved for use outside of the nrfx library. | |
| #define NRFX_ASSERT | ( | expression | ) |
Macro for placing a runtime assertion.
| expression | Expression to be evaluated. |
Definition at line 57 of file nrfx_glue.h.
| #define NRFX_ATOMIC_CAS | ( | p_data, | |
| old_value, | |||
| new_value | |||
| ) |
Macro for running compare and swap on an atomic object.
Value is updated to the new value only if it previously equaled old value.
| [in,out] | p_data | Atomic memory pointer. |
| [in] | old_value | Expected old value. |
| [in] | new_value | New value. |
| true | If value was updated. |
| false | If value was not updated because location was not equal to old_value. |
Definition at line 220 of file nrfx_glue.h.
| #define NRFX_ATOMIC_FETCH_ADD | ( | p_data, | |
| value | |||
| ) |
Macro for running an addition operation on an atomic object and returning its previous value.
| [in] | p_data | Atomic memory pointer. |
| [in] | value | Value of the second operand in the ADD operation. |
Definition at line 195 of file nrfx_glue.h.
| #define NRFX_ATOMIC_FETCH_AND | ( | p_data, | |
| value | |||
| ) |
Macro for running a bitwise AND operation on an atomic object and returning its previous value.
| [in] | p_data | Atomic memory pointer. |
| [in] | value | Value of the second operand in the AND operation. |
Definition at line 173 of file nrfx_glue.h.
| #define NRFX_ATOMIC_FETCH_OR | ( | p_data, | |
| value | |||
| ) |
Macro for running a bitwise OR operation on an atomic object and returning its previous value.
| [in] | p_data | Atomic memory pointer. |
| [in] | value | Value of the second operand in the OR operation. |
Definition at line 162 of file nrfx_glue.h.
| #define NRFX_ATOMIC_FETCH_STORE | ( | p_data, | |
| value | |||
| ) |
Macro for storing a value to an atomic object and returning its previous value.
| [in] | p_data | Atomic memory pointer. |
| [in] | value | Value to store. |
Definition at line 152 of file nrfx_glue.h.
| #define NRFX_ATOMIC_FETCH_SUB | ( | p_data, | |
| value | |||
| ) |
Macro for running a subtraction operation on an atomic object and returning its previous value.
| [in] | p_data | Atomic memory pointer. |
| [in] | value | Value of the second operand in the SUB operation. |
Definition at line 206 of file nrfx_glue.h.
| #define NRFX_ATOMIC_FETCH_XOR | ( | p_data, | |
| value | |||
| ) |
Macro for running a bitwise XOR operation on an atomic object and returning its previous value.
| [in] | p_data | Atomic memory pointer. |
| [in] | value | Value of the second operand in the XOR operation. |
Definition at line 184 of file nrfx_glue.h.
| #define NRFX_CLZ | ( | value | ) |
Macro for counting leading zeros.
| [in] | value | A word value. |
value, starting at the most significant bit position. If x is 0, the result is undefined. Definition at line 230 of file nrfx_glue.h.
| #define NRFX_CTZ | ( | value | ) |
Macro for counting trailing zeros.
| [in] | value | A word value. |
value, starting at the least significant bit position. If x is 0, the result is undefined. Definition at line 240 of file nrfx_glue.h.
| #define NRFX_DELAY_DWT_BASED 0 |
When set to a non-zero value, this macro specifies that 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.
Definition at line 132 of file nrfx_glue.h.
| #define NRFX_DELAY_US | ( | us_time | ) |
Macro for delaying the code execution for at least the specified time.
| us_time | Number of microseconds to wait. |
Definition at line 139 of file nrfx_glue.h.
| #define NRFX_IRQ_DISABLE | ( | irq_number | ) |
Macro for disabling a specific IRQ.
| irq_number | IRQ number. |
Definition at line 96 of file nrfx_glue.h.
| #define NRFX_IRQ_ENABLE | ( | irq_number | ) |
Macro for enabling a specific IRQ.
| irq_number | IRQ number. |
Definition at line 79 of file nrfx_glue.h.
| #define NRFX_IRQ_IS_ENABLED | ( | irq_number | ) |
Macro for checking if a specific IRQ is enabled.
| irq_number | IRQ number. |
| true | If the IRQ is enabled. |
| false | Otherwise. |
Definition at line 89 of file nrfx_glue.h.
| #define NRFX_IRQ_IS_PENDING | ( | irq_number | ) |
Macro for checking the pending status of a specific IRQ.
| true | If the IRQ is pending. |
| false | Otherwise. |
Definition at line 118 of file nrfx_glue.h.
| #define NRFX_IRQ_PENDING_CLEAR | ( | irq_number | ) |
Macro for clearing the pending status of a specific IRQ.
| irq_number | IRQ number. |
Definition at line 110 of file nrfx_glue.h.
| #define NRFX_IRQ_PENDING_SET | ( | irq_number | ) |
Macro for setting a specific IRQ as pending.
| irq_number | IRQ number. |
Definition at line 103 of file nrfx_glue.h.
| #define NRFX_IRQ_PRIORITY_SET | ( | irq_number, | |
| priority | |||
| ) |
Macro for setting the priority of a specific IRQ.
| irq_number | IRQ number. |
| priority | Priority to be set. |
Definition at line 72 of file nrfx_glue.h.
| #define NRFX_STATIC_ASSERT | ( | expression | ) |
Macro for placing a compile time assertion.
| expression | Expression to be evaluated. |
Definition at line 64 of file nrfx_glue.h.