Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Variable (not Button/LED/Timer) assign for handler

Hi everyone,
I see in nRF5 SDK 16.0.0, a Button/Led/Timer assign for handler, like that:
bsp_init(BSP_INIT_LEDS | BSP_INIT_BUTTONS, bsp_event_handler);
Or:
app_timer_create(&m_glucose_meas_timer_id, APP_TIMER_MODE_REPEATED, glucose_meas_timeout_handler);
>> So how to change, a variable assign for handler, I imagine such as:
custom_init(var==2, custom_event_handler);
Thank you.

Related