123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- #ifndef NRF_DRV_PWM_H__
- #define NRF_DRV_PWM_H__
- #include <nrfx_pwm.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef nrfx_pwm_t nrf_drv_pwm_t;
- typedef nrfx_pwm_config_t nrf_drv_pwm_config_t;
- #define NRF_DRV_PWM_INSTANCE NRFX_PWM_INSTANCE
- #define NRF_DRV_PWM_PIN_NOT_USED NRFX_PWM_PIN_NOT_USED
- #define NRF_DRV_PWM_PIN_INVERTED NRFX_PWM_PIN_INVERTED
- #define NRF_DRV_PWM_DEFAULT_CONFIG NRFX_PWM_DEFAULT_CONFIG
- #define NRF_DRV_PWM_FLAG_STOP NRFX_PWM_FLAG_STOP
- #define NRF_DRV_PWM_FLAG_LOOP NRFX_PWM_FLAG_LOOP
- #define NRF_DRV_PWM_FLAG_SIGNAL_END_SEQ0 NRFX_PWM_FLAG_SIGNAL_END_SEQ0
- #define NRF_DRV_PWM_FLAG_SIGNAL_END_SEQ1 NRFX_PWM_FLAG_SIGNAL_END_SEQ1
- #define NRF_DRV_PWM_FLAG_NO_EVT_FINISHED NRFX_PWM_FLAG_NO_EVT_FINISHED
- #define NRF_DRV_PWM_FLAG_START_VIA_TASK NRFX_PWM_FLAG_START_VIA_TASK
- #define nrf_drv_pwm_flag_t nrfx_pwm_flag_t
- #define NRF_DRV_PWM_EVT_FINISHED NRFX_PWM_EVT_FINISHED
- #define NRF_DRV_PWM_EVT_END_SEQ0 NRFX_PWM_EVT_END_SEQ0
- #define NRF_DRV_PWM_EVT_END_SEQ1 NRFX_PWM_EVT_END_SEQ1
- #define NRF_DRV_PWM_EVT_STOPPED NRFX_PWM_EVT_STOPPED
- #define nrf_drv_pwm_evt_type_t nrfx_pwm_evt_type_t
- #define nrf_drv_pwm_handler_t nrfx_pwm_handler_t
- #define nrf_drv_pwm_init nrfx_pwm_init
- #define nrf_drv_pwm_uninit nrfx_pwm_uninit
- #define nrf_drv_pwm_simple_playback nrfx_pwm_simple_playback
- #define nrf_drv_pwm_complex_playback nrfx_pwm_complex_playback
- #define nrf_drv_pwm_step nrfx_pwm_step
- #define nrf_drv_pwm_stop nrfx_pwm_stop
- #define nrf_drv_pwm_is_stopped nrfx_pwm_is_stopped
- #define nrf_drv_pwm_sequence_update nrfx_pwm_sequence_update
- #define nrf_drv_pwm_sequence_values_update nrfx_pwm_sequence_values_update
- #define nrf_drv_pwm_sequence_length_update nrfx_pwm_sequence_length_update
- #define nrf_drv_pwm_sequence_repeats_update nrfx_pwm_sequence_repeats_update
- #define nrf_drv_pwm_sequence_end_delay_update nrfx_pwm_sequence_end_delay_update
- #define nrf_drv_pwm_task_address_get nrfx_pwm_task_address_get
- #define nrf_drv_pwm_event_address_get nrfx_pwm_event_address_get
- #ifdef __cplusplus
- }
- #endif
- #endif
|