firmware/stm8/can_node/mod_button.c
// Convert button config to GPIO mode bits
Convert button config to GPIO mode bits
Convert button config to GPIO mode bits
static
uint8_t button_gpio_mode(uint8_t channel_id)
{
	if (buttons[channel_id].config & HA_CAN_Node_ButtonConfig_PullUp)
		return GPIO_MODE_IN_PU_NO_IT;
	else
		return GPIO_MODE_IN_FL_NO_IT;
}
static uint8_t button_gpio_mode ( uint8_t channel_id ) { if ( buttons [ channel_id ] . config & HA_CAN_Node_ButtonConfig_PullUp ) return GPIO_MODE_IN_PU_NO_IT ; else return GPIO_MODE_IN_FL_NO_IT ; }
Convert button config to GPIO mode bits
Convert button config to GPIO mode bits