-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmos.yml
65 lines (57 loc) · 2.17 KB
/
mos.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
author: mongoose-os
description: Ethernet support
type: lib
version: 1.0
platforms: [ esp32, stm32, ubuntu ]
sources:
- src
- src/${mos.platform}
includes:
- include
- include/${mos.platform}
config_schema:
- ["eth", "o", {title: "Ethernet settings"}]
- ["eth.enable", "b", false, {title: "Enable Ethernet interface"}]
- ["eth.phy_addr", "i", 0, {title: "(R)MII PHY address"}]
- ["eth.ip", "s", {title: "Static IP Address"}]
- ["eth.netmask", "s", {title: "Static Netmask"}]
- ["eth.gw", "s", {title: "Static Default Gateway"}]
- ["eth.nameserver", "s", {title: "Static DNS Server"}]
conds:
- when: mos.platform == "esp32"
apply:
libs:
- location: https://github.com/mongoose-os-libs/lwip
config_schema:
- ["eth.dhcp_hostname", "s", {title: "Host name to include in DHCP requests"}]
- ["eth.clk_mode", "i", 0, {title: "50 MHz clock source: 0 in <- GPIO0, 1 out -> GPIO0, 2 out -> GPIO16, 3 out -> GPIO17 (inverted)"}]
- ["eth.mdc_gpio", "i", 23, {title: "GPIO to use for RMII MDC signal"}]
- ["eth.mdio_gpio", "i", 18, {title: "GPIO to use for RMII MDIO signal"}]
- ["eth.phy_pwr_gpio", "i", -1, {title: "GPIO to use for PHY PWR control signal"}]
build_vars:
ESP_IDF_EXTRA_COMPONENTS: >
${build_vars.ESP_IDF_EXTRA_COMPONENTS}
esp_eth
cdefs:
# Select the PHY model. Only one at a time.
MGOS_ETH_PHY_IP101: 0
MGOS_ETH_PHY_RTL8201: 0
MGOS_ETH_PHY_LAN87x0: 1
MGOS_ETH_PHY_DP83848: 0
- when: mos.platform == "stm32"
apply:
libs:
- location: https://github.com/mongoose-os-libs/lwip
config_schema:
# OUI = 12:34:56 happens to be a valid Locally Administered Address prefix. Win!
- ["eth.mac", "s", "12:34:56:??:??:??", {title: "MAC address. ?? are replaced with bits from chip's unique ID."}]
- ["eth.speed", "s", "auto", {title: "Speed and duplex selection: auto, 10HD, 10FD, 100HD, 100FD."}]
- ["eth.mtu", "i", 1460, {title: "Interface MTU"}]
build_vars:
MGOS_ENABLE_LWIP: 1
tags:
- c
- net
- docs:net:Ethernet
no_implicit_init_deps: true
manifest_version: 2018-06-20