123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- extern "C" {
- typedef nrfx_comp_config_t nrf_drv_comp_config_t;
- __STATIC_INLINE ret_code_t nrf_drv_comp_init(nrf_drv_comp_config_t const * p_config,
- comp_events_handler_t event_handler)
- {
- if (p_config == NULL)
- {
- static nrfx_comp_config_t const default_config = NRFX_COMP_DEFAULT_CONFIG(NRF_COMP_INPUT_0);
- p_config = &default_config;
- }
- return nrfx_comp_init(p_config, event_handler);
- }
- }
|