mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-04 18:55:00 +00:00
Add support for wESP32-PoE board
This commit is contained in:
@@ -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
12
lib/SvelteUi/app/dist/index.js
vendored
12
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
6
lib/SvelteUi/app/package-lock.json
generated
6
lib/SvelteUi/app/package-lock.json
generated
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user