Add support for wESP32-PoE board

This commit is contained in:
Peter Wahlberg
2024-09-27 17:01:30 +02:00
parent cf773985b1
commit 4f47ffa21e
7 changed files with 600 additions and 451 deletions

View File

@@ -60,6 +60,14 @@ bool EthernetConnectionHandler::connect(NetworkConfig config, SystemConfig sys)
ethPowerPin = 16;
ethMdc = 23;
ethMdio = 18;
} else if (sys.boardType == 245) { // wESP32
ethType = ETH_PHY_RTL8201;
ethEnablePin = -1;
ethAddr = 0;
ethClkMode = ETH_CLOCK_GPIO0_IN;
ethPowerPin = -1;
ethMdc = 16;
ethMdio = 17;
} else if(sys.boardType == 244) {
return false; // TODO
} else {

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -2481,8 +2481,10 @@
},
"node_modules/svelte-navigator": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/svelte-navigator/-/svelte-navigator-3.2.2.tgz",
"integrity": "sha512-Xio4ohLUG1nQJ+ENNbLphXXu9L189fnI1WGg+2Q3CIMPe8Jm2ipytKQthdBs8t0mN7p3Eb03SE9hq0xZAqwQNQ==",
"dev": true,
"license": "MIT",
"hasInstallScript": true,
"dependencies": {
"svelte2tsx": "^0.1.151"
},
@@ -4238,6 +4240,8 @@
},
"svelte-navigator": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/svelte-navigator/-/svelte-navigator-3.2.2.tgz",
"integrity": "sha512-Xio4ohLUG1nQJ+ENNbLphXXu9L189fnI1WGg+2Q3CIMPe8Jm2ipytKQthdBs8t0mN7p3Eb03SE9hq0xZAqwQNQ==",
"dev": true,
"requires": {
"svelte2tsx": "^0.1.151"

View File

@@ -9,6 +9,11 @@
"build": "vite build",
"preview": "vite preview"
},
"overrides": {
"svelte-navigator": {
"svelte": ">=4.x"
}
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.1.0",
"@tailwindcss/forms": "^0.5.3",

View File

@@ -30,6 +30,7 @@
<option value={241}>{boardtype(chip, 241)}</option>
<option value={242}>{boardtype(chip, 242)}</option>
<option value={243}>{boardtype(chip, 243)}</option>
<option value={245}>{boardtype(chip, 245)}</option>
<option value={200}>{boardtype(chip, 200)}</option>
</optgroup>
{/if}

View File

@@ -85,6 +85,8 @@ export function boardtype(c, b) {
return "M5 PoESP32";
case 243:
return "WT32-ETH01";
case 245:
return "wESP32";
case 200:
return "Generic ESP32";
case 2: