#include "buttons.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

void buttons_init(void)
{
}

btn_event_t buttons_wait(uint32_t timeout_ms)
{
    if (timeout_ms != 0xFFFFFFFFu) {
        vTaskDelay(pdMS_TO_TICKS(timeout_ms));
    }

    btn_event_t evt = {
        .id = BTN_NONE,
        .kind = BTN_EVT_NONE,
    };
    return evt;
}

btn_event_t buttons_poll(void)
{
    btn_event_t evt = {
        .id = BTN_NONE,
        .kind = BTN_EVT_NONE,
    };
    return evt;
}
