123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef NRF_DRV_COMMON_H__
- #define NRF_DRV_COMMON_H__
- #include <nrfx.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define INTERRUPT_PRIORITY_VALIDATION(pri) STATIC_ASSERT(INTERRUPT_PRIORITY_IS_VALID((pri)))
- #define INTERRUPT_PRIORITY_ASSERT(pri) ASSERT(INTERRUPT_PRIORITY_IS_VALID((pri)))
- #define nrf_drv_irq_handler_t nrfx_irq_handler_t
- #define nrf_drv_bitpos_to_event nrfx_bitpos_to_event
- #define nrf_drv_event_to_bitpos nrfx_event_to_bitpos
- #define nrf_drv_get_IRQn nrfx_get_irq_number
- #define nrf_drv_is_in_RAM nrfx_is_in_ram
- #ifdef __cplusplus
- }
- #endif
- #endif
|