#ifndef CONFIGURATION_ADAPTATION_H
#define CONFIGURATION_ADAPTATION_H

#include <stddef.h>
#include <stdint.h>


// 默认参数
#define DEFAULT_UART_BAUD 9600
#define DEFAULT_UART_DATABIT 8
#define DEFAULT_UART_STOPBIT 1
#define DEFAULT_UART_PARITY "N"
#define DEFAULT_LAN_TYPE "static"
#define DEFAULT_LAN_IP "172.18.39.254"
#define DEFAULT_LAN_MASK "255.255.255.0"
#define DEFAULT_WAN_TYPE "dhcp"
#define DEFAULT_WAN_IP "172.18.36.254"
#define DEFAULT_WAN_GATEWAY "172.18.36.1"
#define DEFAULT_WAN_MASK "255.255.255.0"
#define DEFAULT_WAN_METRIC "80"
#define DEFAULT_CAN_BAUD 500000
#define DEFAULT_CAN_FILTER_ID "0x00000001"
#define DEFAULT_CAN_FILTER_MASK "0xffffffff"
#define DEFAULT_DI_NCNO 0

typedef struct board_port_list
{
    char board_name[32];
    int uart_num;
    int lan_num;
    int wan_num;
    int can_num;
    int di_num;
    int do_num;
}board_port_list_t;


typedef struct board_config_info
{
    char board_name[32];
    void (*port_config_check)(board_port_list_t *port_info, char *port_config_file);
    //
}board_info_t;




int update_board_config(void);


#endif  /* CONFIGURATION_ADAPTATION_H */