hanwckf / rt-n56u

Padavan
3.28k stars 3.69k forks source link

参照ZTE_E8820S给LINKSYS_EA7500V2适配,只有LED还有点问题 #780

Open yunhai20082008 opened 1 year ago

yunhai20082008 commented 1 year ago

1.前面板linksys灯gpio为10,但是用#define BOARD_GPIO_LED_POWER或者#define BOARD_GPIO_LED_SYS都不亮 2.lan1口绿灯gpio为3,但是board.h中并未定义,且web-参数设置-按钮/LED-电源:LED 禁用和启动会被触发

board.h

/* ZTE_E8820S */

#define BOARD_PID       "ZTE_E8820S"
#define BOARD_NAME      "ZTE_E8820S"
#define BOARD_DESC      "ZTE_E8820S Wireless Router"
#define BOARD_VENDOR_NAME   "ZTE Technology"
#define BOARD_VENDOR_URL    "http://www.ztehome.com.cn/"
#define BOARD_MODEL_URL     "http://www.ztehome.com.cn/"
#define BOARD_BOOT_TIME     30
#define BOARD_FLASH_TIME    120
#define BOARD_GPIO_BTN_FN1    
#define BOARD_GPIO_BTN_RESET    12
#define BOARD_GPIO_BTN_WPS  17
#undef  BOARD_GPIO_LED_ALL
#undef BOARD_GPIO_LED_WIFI  
#undef BOARD_GPIO_LED_SW2G   
#undef BOARD_GPIO_LED_SW5G   
#define BOARD_GPIO_LED_POWER
#define BOARD_GPIO_LED_SYS  10
#undef BOARD_GPIO_LED_LAN
#undef BOARD_GPIO_LED_WAN   7
#undef BOARD_GPIO_LED_USB   
#undef BOARD_GPIO_LED_ROUTER
#undef  BOARD_GPIO_PWR_USB
#define BOARD_HAS_5G_11AC   1
#define BOARD_NUM_ANT_5G_TX
#define BOARD_NUM_ANT_5G_RX
#define BOARD_NUM_ANT_2G_TX
#define BOARD_NUM_ANT_2G_RX
#define BOARD_NUM_ETH_LEDS
#define BOARD_HAS_EPHY_L1000
#define BOARD_HAS_EPHY_W1000
#define BOARD_NUM_UPHY_USB3
#define BOARD_GPIO_PWR_USB
#define BOARD_GPIO_PWR_USB_ON
#define BOARD_USB_PORT_SWAP