#include "board.h"

#include "sr_gpio.h"
#include "sr_uart.h"

#ifdef  SR_GPIO_INIT_TABLE

SR_GPIO_CFG_T gpioTable[] = SR_GPIO_INIT_TABLE;

#define SR_GPIO_NUM sizeof(gpioTable) / sizeof(SR_GPIO_CFG_T)

int SR_BoardInit(void)
{
    for (uint8_t id = 0; id < SR_GPIO_NUM; id++)
    {
        SR_HalGpioInit(gpioTable[id].gpioID, &gpioTable[id]);
    }

    return 0;
}
SR_INIT_BSP_EXPORT(SR_BoardInit, SR_PRIORITY_2);

#endif
