123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- #ifndef NRF_DRV_RTC_H__
- #define NRF_DRV_RTC_H__
- #include <nrfx_rtc.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef nrfx_rtc_t nrf_drv_rtc_t;
- typedef nrfx_rtc_config_t nrf_drv_rtc_config_t;
- #define NRF_DRV_RTC_INSTANCE NRFX_RTC_INSTANCE
- #define NRF_DRV_RTC_DEFAULT_CONFIG NRFX_RTC_DEFAULT_CONFIG
- #define RTC_US_TO_TICKS NRFX_RTC_US_TO_TICKS
- #define NRF_DRV_RTC_INT_COMPARE0 NRFX_RTC_INT_COMPARE0
- #define NRF_DRV_RTC_INT_COMPARE1 NRFX_RTC_INT_COMPARE1
- #define NRF_DRV_RTC_INT_COMPARE2 NRFX_RTC_INT_COMPARE2
- #define NRF_DRV_RTC_INT_COMPARE3 NRFX_RTC_INT_COMPARE3
- #define NRF_DRV_RTC_INT_TICK NRFX_RTC_INT_TICK
- #define NRF_DRV_RTC_INT_OVERFLOW NRFX_RTC_INT_OVERFLOW
- #define nrf_drv_rtc_int_type_t nrfx_rtc_int_type_t
- #define nrf_drv_rtc_handler_t nrfx_rtc_handler_t
- #define nrf_drv_rtc_init nrfx_rtc_init
- #define nrf_drv_rtc_uninit nrfx_rtc_uninit
- #define nrf_drv_rtc_enable nrfx_rtc_enable
- #define nrf_drv_rtc_disable nrfx_rtc_disable
- #define nrf_drv_rtc_cc_set nrfx_rtc_cc_set
- #define nrf_drv_rtc_cc_disable nrfx_rtc_cc_disable
- #define nrf_drv_rtc_tick_enable nrfx_rtc_tick_enable
- #define nrf_drv_rtc_tick_disable nrfx_rtc_tick_disable
- #define nrf_drv_rtc_overflow_enable nrfx_rtc_overflow_enable
- #define nrf_drv_rtc_overflow_disable nrfx_rtc_overflow_disable
- #define nrf_drv_rtc_max_ticks_get nrfx_rtc_max_ticks_get
- #define nrf_drv_rtc_int_disable nrfx_rtc_int_disable
- #define nrf_drv_rtc_int_enable nrfx_rtc_int_enable
- #define nrf_drv_rtc_counter_get nrfx_rtc_counter_get
- #define nrf_drv_rtc_counter_clear nrfx_rtc_counter_clear
- #define nrf_drv_rtc_task_address_get nrfx_rtc_task_address_get
- #define nrf_drv_rtc_event_address_get nrfx_rtc_event_address_get
- #ifdef __cplusplus
- }
- #endif
- #endif
|