-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboard.h
38 lines (37 loc) · 1.38 KB
/
board.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Witi */
#define BOARD_PID "WITI"
#define BOARD_NAME "WITI"
#define BOARD_DESC "WITI Wireless Router"
#define BOARD_VENDOR_NAME "MQmaker"
#define BOARD_VENDOR_URL "https://mqmaker.com/"
#define BOARD_MODEL_URL "https://mqmaker.com/witi.com"
#define BOARD_BOOT_TIME 30
#define BOARD_FLASH_TIME 40
#define BOARD_GPIO_BTN_RESET 6
#define BOARD_GPIO_BTN_WPS 18
#define BOARD_GPIO_BTN_FN1 7
#define BOARD_GPIO_BTN_FN2 10
#define BOARD_GPIO_LED_INVERTED /* LED pins value is inverted (1: LED show, 0: LED hide) */
#undef BOARD_GPIO_LED_ALL
#undef BOARD_GPIO_LED_WIFI
#define BOARD_GPIO_LED_SW2G 15 /* soft-blink LED */
#define BOARD_GPIO_LED_SW5G 16 /* soft-blink LED */
#define BOARD_GPIO_LED_POWER 9
#define BOARD_GPIO_LED_LAN 12 /* LED Fn */
#define BOARD_GPIO_LED_WAN 17
#define BOARD_GPIO_LED_USB 13 /* USB #1 LED */
#define BOARD_GPIO_LED_USB2 14 /* USB #2 LED */
#undef BOARD_GPIO_LED_ROUTER
#define BOARD_GPIO_PWR_USB_ON 1 /* 1: 5V Power ON, 0: 5V Power OFF */
#define BOARD_GPIO_PWR_USB 5 /* USB2.0 5V Power */
#define BOARD_GPIO_PWR_USB2 11 /* USB3.0 5V Power */
#define BOARD_HAS_5G_11AC 1
#define BOARD_NUM_ANT_5G_TX 2
#define BOARD_NUM_ANT_5G_RX 2
#define BOARD_NUM_ANT_2G_TX 2
#define BOARD_NUM_ANT_2G_RX 2
#define BOARD_NUM_ETH_LEDS 1
#define BOARD_HAS_EPHY_L1000 1
#define BOARD_HAS_EPHY_W1000 1
#define BOARD_NUM_UPHY_USB3 1
#define BOARD_USB_PORT_SWAP 1 /* USB3.0 = #2, USB2.0 = #1 */