#include "hal_button.h" #includevoid hal_button_read(const int in_index, hal_button_state_e *const out_state) { switch (in_index) { case 0: *out_state = HAL_BUTTON_STATE_ON; break; default: *out_state = HAL_BUTTON_STATE_OFF; break; } return; } void hal_button_print_on(void) { printf("button is pressed\n"); } /* eof */