/** * \brief Configure Timer module. */ static void configure_timer(void) { struct sw_timer_config swt_conf; sw_timer_get_config_defaults(&swt_conf); sw_timer_init(&swt_module_inst, &swt_conf); sw_timer_enable(&swt_module_inst); }
static void _thethingsio_mqtt_configure_timer(void) { struct sw_timer_config swt_conf_mqtt; sw_timer_get_config_defaults(&swt_conf_mqtt); sw_timer_init(&swt_module_mqtt_inst, &swt_conf_mqtt); sw_timer_enable(&swt_module_mqtt_inst); }