#include "hal_button.h" void 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; } /* eof */