esp32tool 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apple-touch-icon.png +0 -0
- package/css/style.css +38 -8
- package/dist/console.d.ts +15 -0
- package/dist/console.js +237 -0
- package/dist/const.d.ts +99 -0
- package/dist/const.js +129 -8
- package/dist/esp_loader.d.ts +119 -3
- package/dist/esp_loader.js +797 -48
- package/dist/util/console-color.d.ts +19 -0
- package/dist/util/console-color.js +272 -0
- package/dist/util/line-break-transformer.d.ts +5 -0
- package/dist/util/line-break-transformer.js +17 -0
- package/dist/web/index.js +1 -1
- package/icons/icon-128.png +0 -0
- package/icons/icon-144.png +0 -0
- package/icons/icon-152.png +0 -0
- package/icons/icon-192.png +0 -0
- package/icons/icon-384.png +0 -0
- package/icons/icon-512.png +0 -0
- package/icons/icon-72.png +0 -0
- package/icons/icon-96.png +0 -0
- package/index.html +62 -22
- package/js/console.js +269 -0
- package/js/modules/esptool.js +1 -1
- package/js/script.js +586 -16
- package/js/util/console-color.js +282 -0
- package/js/util/line-break-transformer.js +19 -0
- package/package.cli.json +1 -1
- package/package.json +9 -8
- package/screenshots/desktop.png +0 -0
- package/screenshots/mobile.png +0 -0
- package/src/console.ts +278 -0
- package/src/const.ts +165 -8
- package/src/esp_loader.ts +971 -50
- package/src/util/console-color.ts +290 -0
- package/src/util/line-break-transformer.ts +20 -0
package/apple-touch-icon.png
CHANGED
|
Binary file
|
package/css/style.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.header {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
font-size: 16px;
|
|
8
|
-
height: 85px;
|
|
8
|
+
min-height: 85px;
|
|
9
9
|
padding: 15px 70px;
|
|
10
10
|
position: fixed;
|
|
11
11
|
width: 100%;
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
margin: 0;
|
|
14
14
|
border-bottom: 5px solid #00a7e9;
|
|
15
15
|
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
16
17
|
justify-content: flex-start;
|
|
17
|
-
align-items:
|
|
18
|
+
align-items: flex-start;
|
|
18
19
|
top: 0;
|
|
19
|
-
|
|
20
|
+
/* Auto-hide feature disabled - header stays visible at all times */
|
|
21
|
+
/* transition: transform 0.3s ease-in-out; */
|
|
20
22
|
overflow-x: auto;
|
|
21
23
|
overflow-y: hidden;
|
|
22
24
|
-webkit-overflow-scrolling: touch;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
.header-hidden
|
|
26
|
-
transform: translateY(-100%);
|
|
27
|
-
}
|
|
27
|
+
/* .header-hidden class removed - auto-hide feature disabled */
|
|
28
28
|
|
|
29
29
|
.header-content {
|
|
30
30
|
display: flex;
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
gap: 10px;
|
|
33
33
|
flex-wrap: nowrap;
|
|
34
34
|
white-space: nowrap;
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.header-content.advanced-row {
|
|
39
|
+
margin-top: 10px;
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
.header-content > label {
|
|
@@ -126,14 +131,32 @@ div.clear {
|
|
|
126
131
|
transition: padding-top 0.3s ease-in-out;
|
|
127
132
|
}
|
|
128
133
|
|
|
129
|
-
.main.
|
|
130
|
-
padding-top:
|
|
134
|
+
.main.advanced-active {
|
|
135
|
+
padding-top: 140px;
|
|
131
136
|
}
|
|
132
137
|
|
|
138
|
+
/* .main.no-header-padding removed - auto-hide feature disabled */
|
|
139
|
+
|
|
133
140
|
.hidden {
|
|
134
141
|
display: none;
|
|
135
142
|
}
|
|
136
143
|
|
|
144
|
+
/* Console Container */
|
|
145
|
+
.console-container {
|
|
146
|
+
height: 500px;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
transition: height 0.3s ease-in-out, visibility 0.3s ease-in-out;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0;
|
|
151
|
+
visibility: visible;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.console-container.hidden {
|
|
155
|
+
height: 0;
|
|
156
|
+
visibility: hidden;
|
|
157
|
+
max-height: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
137
160
|
.notSupported {
|
|
138
161
|
padding: 1em;
|
|
139
162
|
margin-top: 1em;
|
|
@@ -1080,6 +1103,9 @@ div.clear {
|
|
|
1080
1103
|
.main {
|
|
1081
1104
|
padding-top: 80px;
|
|
1082
1105
|
}
|
|
1106
|
+
.main.advanced-active {
|
|
1107
|
+
padding-top: 130px;
|
|
1108
|
+
}
|
|
1083
1109
|
|
|
1084
1110
|
#commands {
|
|
1085
1111
|
min-width: unset;
|
|
@@ -1256,4 +1282,8 @@ div.clear {
|
|
|
1256
1282
|
padding-left: 15px;
|
|
1257
1283
|
padding-right: 15px;
|
|
1258
1284
|
}
|
|
1285
|
+
|
|
1286
|
+
.main.advanced-active {
|
|
1287
|
+
padding-top: 120px;
|
|
1288
|
+
}
|
|
1259
1289
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class ESP32ToolConsole {
|
|
2
|
+
private port;
|
|
3
|
+
private console?;
|
|
4
|
+
private cancelConnection?;
|
|
5
|
+
private containerElement;
|
|
6
|
+
private allowInput;
|
|
7
|
+
constructor(port: SerialPort, containerElement: HTMLElement, allowInput?: boolean);
|
|
8
|
+
logs(): string;
|
|
9
|
+
init(): Promise<void>;
|
|
10
|
+
private _connect;
|
|
11
|
+
private _sendCommand;
|
|
12
|
+
clear(): void;
|
|
13
|
+
reset(): Promise<void>;
|
|
14
|
+
disconnect(): Promise<void>;
|
|
15
|
+
}
|
package/dist/console.js
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { ColoredConsole, coloredConsoleStyles } from "./util/console-color.js";
|
|
2
|
+
import { LineBreakTransformer } from "./util/line-break-transformer.js";
|
|
3
|
+
export class ESP32ToolConsole {
|
|
4
|
+
constructor(port, containerElement, allowInput = true) {
|
|
5
|
+
this.port = port;
|
|
6
|
+
this.containerElement = containerElement;
|
|
7
|
+
this.allowInput = allowInput;
|
|
8
|
+
}
|
|
9
|
+
logs() {
|
|
10
|
+
var _a;
|
|
11
|
+
return ((_a = this.console) === null || _a === void 0 ? void 0 : _a.logs()) || "";
|
|
12
|
+
}
|
|
13
|
+
async init() {
|
|
14
|
+
// Create console HTML
|
|
15
|
+
this.containerElement.innerHTML = `
|
|
16
|
+
<style>
|
|
17
|
+
.esp32tool-console-wrapper {
|
|
18
|
+
background-color: #1c1c1c;
|
|
19
|
+
color: #ddd;
|
|
20
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,
|
|
21
|
+
monospace;
|
|
22
|
+
line-height: 1.45;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
height: 100%;
|
|
26
|
+
border: 1px solid #333;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
}
|
|
29
|
+
.esp32tool-console-header {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 8px 12px;
|
|
34
|
+
background-color: #2a2a2a;
|
|
35
|
+
border-bottom: 1px solid #333;
|
|
36
|
+
}
|
|
37
|
+
.esp32tool-console-header h3 {
|
|
38
|
+
margin: 0;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
}
|
|
42
|
+
.esp32tool-console-controls {
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
}
|
|
46
|
+
.esp32tool-console-controls button {
|
|
47
|
+
padding: 4px 12px;
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
background-color: #444;
|
|
50
|
+
color: #ddd;
|
|
51
|
+
border: 1px solid #555;
|
|
52
|
+
border-radius: 3px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
.esp32tool-console-controls button:hover {
|
|
56
|
+
background-color: #555;
|
|
57
|
+
}
|
|
58
|
+
.esp32tool-console-form {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
padding: 0 8px 0 16px;
|
|
62
|
+
background-color: #1c1c1c;
|
|
63
|
+
border-top: 1px solid #333;
|
|
64
|
+
}
|
|
65
|
+
.esp32tool-console-input {
|
|
66
|
+
flex: 1;
|
|
67
|
+
padding: 8px;
|
|
68
|
+
margin: 4px 8px;
|
|
69
|
+
border: 0;
|
|
70
|
+
outline: none;
|
|
71
|
+
background-color: #1c1c1c;
|
|
72
|
+
color: #ddd;
|
|
73
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,
|
|
74
|
+
monospace;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
}
|
|
77
|
+
${coloredConsoleStyles}
|
|
78
|
+
.esp32tool-console-wrapper .log {
|
|
79
|
+
flex: 1;
|
|
80
|
+
margin: 0;
|
|
81
|
+
border-radius: 0;
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
84
|
+
<div class="esp32tool-console-wrapper">
|
|
85
|
+
<div class="esp32tool-console-header">
|
|
86
|
+
<h3>ESP Console</h3>
|
|
87
|
+
<div class="esp32tool-console-controls">
|
|
88
|
+
<button id="console-clear-btn">Clear</button>
|
|
89
|
+
<button id="console-reset-btn">Reset Device</button>
|
|
90
|
+
<button id="console-close-btn">Close Console</button>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="log"></div>
|
|
94
|
+
${this.allowInput
|
|
95
|
+
? `<form class="esp32tool-console-form">
|
|
96
|
+
<input class="esp32tool-console-input" autofocus placeholder="Type command and press Enter...">
|
|
97
|
+
</form>`
|
|
98
|
+
: ""}
|
|
99
|
+
</div>
|
|
100
|
+
`;
|
|
101
|
+
this.console = new ColoredConsole(this.containerElement.querySelector(".log"));
|
|
102
|
+
// Setup event listeners
|
|
103
|
+
const clearBtn = this.containerElement.querySelector("#console-clear-btn");
|
|
104
|
+
if (clearBtn) {
|
|
105
|
+
clearBtn.addEventListener("click", () => this.clear());
|
|
106
|
+
}
|
|
107
|
+
const resetBtn = this.containerElement.querySelector("#console-reset-btn");
|
|
108
|
+
if (resetBtn) {
|
|
109
|
+
resetBtn.addEventListener("click", () => this.reset());
|
|
110
|
+
}
|
|
111
|
+
const closeBtn = this.containerElement.querySelector("#console-close-btn");
|
|
112
|
+
if (closeBtn) {
|
|
113
|
+
closeBtn.addEventListener("click", () => {
|
|
114
|
+
this.containerElement.dispatchEvent(new CustomEvent("console-close", { bubbles: true }));
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (this.allowInput) {
|
|
118
|
+
const input = this.containerElement.querySelector(".esp32tool-console-input");
|
|
119
|
+
this.containerElement.addEventListener("click", () => {
|
|
120
|
+
var _a;
|
|
121
|
+
// Only focus input if user didn't select some text
|
|
122
|
+
if (((_a = getSelection()) === null || _a === void 0 ? void 0 : _a.toString()) === "") {
|
|
123
|
+
input.focus();
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
const form = this.containerElement.querySelector("form");
|
|
127
|
+
if (form) {
|
|
128
|
+
form.addEventListener("submit", (ev) => {
|
|
129
|
+
ev.preventDefault();
|
|
130
|
+
ev.stopPropagation();
|
|
131
|
+
this._sendCommand();
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
input.addEventListener("keydown", (ev) => {
|
|
135
|
+
if (ev.key === "Enter") {
|
|
136
|
+
ev.preventDefault();
|
|
137
|
+
ev.stopPropagation();
|
|
138
|
+
this._sendCommand();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// Start connection
|
|
143
|
+
const abortController = new AbortController();
|
|
144
|
+
const connection = this._connect(abortController.signal);
|
|
145
|
+
this.cancelConnection = () => {
|
|
146
|
+
abortController.abort();
|
|
147
|
+
return connection;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
async _connect(abortSignal) {
|
|
151
|
+
console.log("Starting console read loop");
|
|
152
|
+
// Check if port.readable is available
|
|
153
|
+
if (!this.port.readable) {
|
|
154
|
+
this.console.addLine("");
|
|
155
|
+
this.console.addLine("");
|
|
156
|
+
this.console.addLine(`Terminal disconnected: Port readable stream not available`);
|
|
157
|
+
console.error("Port readable stream not available - port may need to be reopened at correct baudrate");
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
try {
|
|
161
|
+
await this.port
|
|
162
|
+
.readable.pipeThrough(new TextDecoderStream(), {
|
|
163
|
+
signal: abortSignal,
|
|
164
|
+
})
|
|
165
|
+
.pipeThrough(new TransformStream(new LineBreakTransformer()))
|
|
166
|
+
.pipeTo(new WritableStream({
|
|
167
|
+
write: (chunk) => {
|
|
168
|
+
const cleaned = chunk.replace(/\r\n$/, "\n");
|
|
169
|
+
this.console.addLine(cleaned);
|
|
170
|
+
},
|
|
171
|
+
}));
|
|
172
|
+
if (!abortSignal.aborted) {
|
|
173
|
+
this.console.addLine("");
|
|
174
|
+
this.console.addLine("");
|
|
175
|
+
this.console.addLine("Terminal disconnected");
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
catch (e) {
|
|
179
|
+
this.console.addLine("");
|
|
180
|
+
this.console.addLine("");
|
|
181
|
+
this.console.addLine(`Terminal disconnected: ${e}`);
|
|
182
|
+
}
|
|
183
|
+
finally {
|
|
184
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
185
|
+
console.log("Finished console read loop");
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
async _sendCommand() {
|
|
189
|
+
const input = this.containerElement.querySelector(".esp32tool-console-input");
|
|
190
|
+
const command = input.value;
|
|
191
|
+
if (!this.port.writable) {
|
|
192
|
+
this.console.addLine("Terminal disconnected: port not writable");
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const encoder = new TextEncoder();
|
|
196
|
+
let writer;
|
|
197
|
+
try {
|
|
198
|
+
writer = this.port.writable.getWriter();
|
|
199
|
+
await writer.write(encoder.encode(command + "\r\n"));
|
|
200
|
+
this.console.addLine(`> ${command}`);
|
|
201
|
+
}
|
|
202
|
+
catch (err) {
|
|
203
|
+
this.console.addLine(`Write failed: ${err}`);
|
|
204
|
+
}
|
|
205
|
+
finally {
|
|
206
|
+
if (writer) {
|
|
207
|
+
try {
|
|
208
|
+
writer.releaseLock();
|
|
209
|
+
}
|
|
210
|
+
catch (err) {
|
|
211
|
+
console.error("Ignoring release lock error", err);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
input.value = "";
|
|
216
|
+
input.focus();
|
|
217
|
+
}
|
|
218
|
+
clear() {
|
|
219
|
+
const logElement = this.containerElement.querySelector(".log");
|
|
220
|
+
if (logElement) {
|
|
221
|
+
logElement.innerHTML = "";
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
async reset() {
|
|
225
|
+
console.log("Reset device requested from console");
|
|
226
|
+
// Don't use addLine here as stream might already be closed
|
|
227
|
+
// This will be called from script.js with proper reset logic
|
|
228
|
+
const event = new CustomEvent("console-reset");
|
|
229
|
+
this.containerElement.dispatchEvent(event);
|
|
230
|
+
}
|
|
231
|
+
async disconnect() {
|
|
232
|
+
if (this.cancelConnection) {
|
|
233
|
+
await this.cancelConnection();
|
|
234
|
+
this.cancelConnection = undefined;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
package/dist/const.d.ts
CHANGED
|
@@ -67,6 +67,18 @@ export declare const ESP32S2_SPI_MISO_DLEN_OFFS = 40;
|
|
|
67
67
|
export declare const ESP32S2_SPI_W0_OFFS = 88;
|
|
68
68
|
export declare const ESP32S2_UART_DATE_REG_ADDR = 1610612856;
|
|
69
69
|
export declare const ESP32S2_BOOTLOADER_FLASH_OFFSET = 4096;
|
|
70
|
+
export declare const ESP32S2_RTCCNTL_BASE_REG = 1061191680;
|
|
71
|
+
export declare const ESP32S2_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
72
|
+
export declare const ESP32S2_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
73
|
+
export declare const ESP32S2_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
74
|
+
export declare const ESP32S2_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
75
|
+
export declare const ESP32S2_GPIO_STRAP_REG = 1061175352;
|
|
76
|
+
export declare const ESP32S2_GPIO_STRAP_SPI_BOOT_MASK: number;
|
|
77
|
+
export declare const ESP32S2_GPIO_STRAP_VDDSPI_MASK: number;
|
|
78
|
+
export declare const ESP32S2_RTC_CNTL_OPTION1_REG = 1061191976;
|
|
79
|
+
export declare const ESP32S2_RTC_CNTL_FORCE_DOWNLOAD_BOOT_MASK = 1;
|
|
80
|
+
export declare const ESP32S2_UARTDEV_BUF_NO = 1073741076;
|
|
81
|
+
export declare const ESP32S2_UARTDEV_BUF_NO_USB_OTG = 2;
|
|
70
82
|
export declare const ESP32S3_SPI_REG_BASE = 1610620928;
|
|
71
83
|
export declare const ESP32S3_BASEFUSEADDR = 1610641408;
|
|
72
84
|
export declare const ESP32S3_MACFUSEADDR: number;
|
|
@@ -78,6 +90,19 @@ export declare const ESP32S3_SPI_MISO_DLEN_OFFS = 40;
|
|
|
78
90
|
export declare const ESP32S3_SPI_W0_OFFS = 88;
|
|
79
91
|
export declare const ESP32S3_UART_DATE_REG_ADDR = 1610612864;
|
|
80
92
|
export declare const ESP32S3_BOOTLOADER_FLASH_OFFSET = 0;
|
|
93
|
+
export declare const ESP32S3_RTCCNTL_BASE_REG = 1610645504;
|
|
94
|
+
export declare const ESP32S3_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
95
|
+
export declare const ESP32S3_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
96
|
+
export declare const ESP32S3_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
97
|
+
export declare const ESP32S3_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
98
|
+
export declare const ESP32S3_GPIO_STRAP_REG = 1610629176;
|
|
99
|
+
export declare const ESP32S3_GPIO_STRAP_SPI_BOOT_MASK: number;
|
|
100
|
+
export declare const ESP32S3_GPIO_STRAP_VDDSPI_MASK: number;
|
|
101
|
+
export declare const ESP32S3_RTC_CNTL_OPTION1_REG = 1610645804;
|
|
102
|
+
export declare const ESP32S3_RTC_CNTL_FORCE_DOWNLOAD_BOOT_MASK = 1;
|
|
103
|
+
export declare const ESP32S3_UARTDEV_BUF_NO = 1070526796;
|
|
104
|
+
export declare const ESP32S3_UARTDEV_BUF_NO_USB_OTG = 3;
|
|
105
|
+
export declare const ESP32S3_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 4;
|
|
81
106
|
export declare const ESP32C2_SPI_REG_BASE = 1610620928;
|
|
82
107
|
export declare const ESP32C2_BASEFUSEADDR = 1610647552;
|
|
83
108
|
export declare const ESP32C2_MACFUSEADDR: number;
|
|
@@ -89,8 +114,14 @@ export declare const ESP32C2_SPI_MISO_DLEN_OFFS = 40;
|
|
|
89
114
|
export declare const ESP32C2_SPI_W0_OFFS = 88;
|
|
90
115
|
export declare const ESP32C2_UART_DATE_REG_ADDR = 1610612860;
|
|
91
116
|
export declare const ESP32C2_BOOTLOADER_FLASH_OFFSET = 0;
|
|
117
|
+
export declare const ESP32C2_RTCCNTL_BASE_REG = 1610645504;
|
|
118
|
+
export declare const ESP32C2_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
119
|
+
export declare const ESP32C2_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
120
|
+
export declare const ESP32C2_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
121
|
+
export declare const ESP32C2_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
92
122
|
export declare const ESP32C3_SPI_REG_BASE = 1610620928;
|
|
93
123
|
export declare const ESP32C3_BASEFUSEADDR = 1610647552;
|
|
124
|
+
export declare const ESP32C3_EFUSE_BLOCK1_ADDR: number;
|
|
94
125
|
export declare const ESP32C3_MACFUSEADDR: number;
|
|
95
126
|
export declare const ESP32C3_SPI_USR_OFFS = 24;
|
|
96
127
|
export declare const ESP32C3_SPI_USR1_OFFS = 28;
|
|
@@ -100,6 +131,19 @@ export declare const ESP32C3_SPI_MISO_DLEN_OFFS = 40;
|
|
|
100
131
|
export declare const ESP32C3_SPI_W0_OFFS = 88;
|
|
101
132
|
export declare const ESP32C3_UART_DATE_REG_ADDR = 1610612860;
|
|
102
133
|
export declare const ESP32C3_BOOTLOADER_FLASH_OFFSET = 0;
|
|
134
|
+
export declare const ESP32C3_RTC_CNTL_BASE_REG = 1610645504;
|
|
135
|
+
export declare const ESP32C3_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
136
|
+
export declare const ESP32C3_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
137
|
+
export declare const ESP32C3_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
138
|
+
export declare const ESP32C3_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
139
|
+
export declare const ESP32C3_RTC_CNTL_SWD_WKEY = 2401055018;
|
|
140
|
+
export declare const ESP32C3_RTC_CNTL_SWD_CONF_REG: number;
|
|
141
|
+
export declare const ESP32C3_RTC_CNTL_SWD_AUTO_FEED_EN: number;
|
|
142
|
+
export declare const ESP32C3_RTC_CNTL_SWD_WPROTECT_REG: number;
|
|
143
|
+
export declare const ESP32C3_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 3;
|
|
144
|
+
export declare const ESP32C3_BUF_UART_NO_OFFSET = 24;
|
|
145
|
+
export declare const ESP32C3_EFUSE_RD_MAC_SPI_SYS_3_REG = 1610647632;
|
|
146
|
+
export declare const ESP32C3_EFUSE_RD_MAC_SPI_SYS_5_REG = 1610647640;
|
|
103
147
|
export declare const ESP32C5_SPI_REG_BASE = 1610625024;
|
|
104
148
|
export declare const ESP32C5_BASEFUSEADDR = 1611352064;
|
|
105
149
|
export declare const ESP32C5_MACFUSEADDR: number;
|
|
@@ -111,6 +155,8 @@ export declare const ESP32C5_SPI_MISO_DLEN_OFFS = 40;
|
|
|
111
155
|
export declare const ESP32C5_SPI_W0_OFFS = 88;
|
|
112
156
|
export declare const ESP32C5_UART_DATE_REG_ADDR = 1610612860;
|
|
113
157
|
export declare const ESP32C5_BOOTLOADER_FLASH_OFFSET = 8192;
|
|
158
|
+
export declare const ESP32C5_UARTDEV_BUF_NO = 1082520852;
|
|
159
|
+
export declare const ESP32C5_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 3;
|
|
114
160
|
export declare const ESP32C6_SPI_REG_BASE = 1610625024;
|
|
115
161
|
export declare const ESP32C6_BASEFUSEADDR = 1611335680;
|
|
116
162
|
export declare const ESP32C6_MACFUSEADDR: number;
|
|
@@ -122,6 +168,22 @@ export declare const ESP32C6_SPI_MISO_DLEN_OFFS = 40;
|
|
|
122
168
|
export declare const ESP32C6_SPI_W0_OFFS = 88;
|
|
123
169
|
export declare const ESP32C6_UART_DATE_REG_ADDR = 1610612860;
|
|
124
170
|
export declare const ESP32C6_BOOTLOADER_FLASH_OFFSET = 0;
|
|
171
|
+
export declare const ESP32C6_DR_REG_LP_WDT_BASE = 1611340800;
|
|
172
|
+
export declare const ESP32C6_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
173
|
+
export declare const ESP32C6_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
174
|
+
export declare const ESP32C6_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
175
|
+
export declare const ESP32C6_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
176
|
+
export declare const ESP32C6_RTC_CNTL_SWD_WKEY = 1356348065;
|
|
177
|
+
export declare const ESP32C6_UARTDEV_BUF_NO = 1082652032;
|
|
178
|
+
export declare const ESP32C6_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 3;
|
|
179
|
+
export declare const ESP32C5_C6_DR_REG_LP_WDT_BASE = 1611340800;
|
|
180
|
+
export declare const ESP32C5_C6_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
181
|
+
export declare const ESP32C5_C6_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
182
|
+
export declare const ESP32C5_C6_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
183
|
+
export declare const ESP32C5_C6_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
184
|
+
export declare const ESP32C5_C6_RTC_CNTL_SWD_CONF_REG: number;
|
|
185
|
+
export declare const ESP32C5_C6_RTC_CNTL_SWD_AUTO_FEED_EN: number;
|
|
186
|
+
export declare const ESP32C5_C6_RTC_CNTL_SWD_WPROTECT_REG: number;
|
|
125
187
|
export declare const ESP32C61_SPI_REG_BASE = 1610625024;
|
|
126
188
|
export declare const ESP32C61_BASEFUSEADDR = 1611352064;
|
|
127
189
|
export declare const ESP32C61_MACFUSEADDR: number;
|
|
@@ -144,6 +206,14 @@ export declare const ESP32H2_SPI_MISO_DLEN_OFFS = 40;
|
|
|
144
206
|
export declare const ESP32H2_SPI_W0_OFFS = 88;
|
|
145
207
|
export declare const ESP32H2_UART_DATE_REG_ADDR = 1610612860;
|
|
146
208
|
export declare const ESP32H2_BOOTLOADER_FLASH_OFFSET = 0;
|
|
209
|
+
export declare const ESP32H2_DR_REG_LP_WDT_BASE = 1611340800;
|
|
210
|
+
export declare const ESP32H2_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
211
|
+
export declare const ESP32H2_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
212
|
+
export declare const ESP32H2_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
213
|
+
export declare const ESP32H2_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
214
|
+
export declare const ESP32H2_RTC_CNTL_SWD_WKEY = 1356348065;
|
|
215
|
+
export declare const ESP32H2_UARTDEV_BUF_NO = 1082457852;
|
|
216
|
+
export declare const ESP32H2_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 3;
|
|
147
217
|
export declare const ESP32H4_SPI_REG_BASE = 1611239424;
|
|
148
218
|
export declare const ESP32H4_BASEFUSEADDR = 1611339776;
|
|
149
219
|
export declare const ESP32H4_MACFUSEADDR: number;
|
|
@@ -155,6 +225,12 @@ export declare const ESP32H4_SPI_MISO_DLEN_OFFS = 40;
|
|
|
155
225
|
export declare const ESP32H4_SPI_W0_OFFS = 88;
|
|
156
226
|
export declare const ESP32H4_UART_DATE_REG_ADDR: number;
|
|
157
227
|
export declare const ESP32H4_BOOTLOADER_FLASH_OFFSET = 8192;
|
|
228
|
+
export declare const ESP32H4_DR_REG_LP_WDT_BASE = 1611355136;
|
|
229
|
+
export declare const ESP32H4_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
230
|
+
export declare const ESP32H4_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
231
|
+
export declare const ESP32H4_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
232
|
+
export declare const ESP32H4_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
233
|
+
export declare const ESP32H4_RTC_CNTL_SWD_WKEY = 1356348065;
|
|
158
234
|
export declare const ESP32H21_SPI_REG_BASE = 1610625024;
|
|
159
235
|
export declare const ESP32H21_BASEFUSEADDR = 1611350016;
|
|
160
236
|
export declare const ESP32H21_MACFUSEADDR: number;
|
|
@@ -166,6 +242,12 @@ export declare const ESP32H21_SPI_MISO_DLEN_OFFS = 40;
|
|
|
166
242
|
export declare const ESP32H21_SPI_W0_OFFS = 88;
|
|
167
243
|
export declare const ESP32H21_UART_DATE_REG_ADDR = 1610612860;
|
|
168
244
|
export declare const ESP32H21_BOOTLOADER_FLASH_OFFSET = 0;
|
|
245
|
+
export declare const ESP32H21_DR_REG_LP_WDT_BASE = 1611340800;
|
|
246
|
+
export declare const ESP32H21_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
247
|
+
export declare const ESP32H21_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
248
|
+
export declare const ESP32H21_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
249
|
+
export declare const ESP32H21_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
250
|
+
export declare const ESP32H21_RTC_CNTL_SWD_WKEY = 1356348065;
|
|
169
251
|
export declare const ESP32P4_SPI_REG_BASE = 1342754816;
|
|
170
252
|
export declare const ESP32P4_BASEFUSEADDR = 1343410176;
|
|
171
253
|
export declare const ESP32P4_EFUSE_BLOCK1_ADDR: number;
|
|
@@ -178,6 +260,23 @@ export declare const ESP32P4_SPI_MISO_DLEN_OFFS = 40;
|
|
|
178
260
|
export declare const ESP32P4_SPI_W0_OFFS = 88;
|
|
179
261
|
export declare const ESP32P4_UART_DATE_REG_ADDR: number;
|
|
180
262
|
export declare const ESP32P4_BOOTLOADER_FLASH_OFFSET = 8192;
|
|
263
|
+
export declare const ESP32P4_DR_REG_LP_WDT_BASE = 1343315968;
|
|
264
|
+
export declare const ESP32P4_RTC_CNTL_WDTWPROTECT_REG: number;
|
|
265
|
+
export declare const ESP32P4_RTC_CNTL_WDTCONFIG0_REG: number;
|
|
266
|
+
export declare const ESP32P4_RTC_CNTL_WDTCONFIG1_REG: number;
|
|
267
|
+
export declare const ESP32P4_RTC_CNTL_WDT_WKEY = 1356348065;
|
|
268
|
+
export declare const ESP32P4_RTC_CNTL_SWD_CONF_REG: number;
|
|
269
|
+
export declare const ESP32P4_RTC_CNTL_SWD_AUTO_FEED_EN: number;
|
|
270
|
+
export declare const ESP32P4_RTC_CNTL_SWD_WPROTECT_REG: number;
|
|
271
|
+
export declare const ESP32P4_RTC_CNTL_SWD_WKEY = 1356348065;
|
|
272
|
+
export declare const ESP32P4_UARTDEV_BUF_NO_REV0 = 1341390536;
|
|
273
|
+
export declare const ESP32P4_UARTDEV_BUF_NO_REV300 = 1341914824;
|
|
274
|
+
export declare const ESP32P4_UARTDEV_BUF_NO_USB_OTG = 5;
|
|
275
|
+
export declare const ESP32P4_UARTDEV_BUF_NO_USB_JTAG_SERIAL = 6;
|
|
276
|
+
export declare const ESP32P4_GPIO_STRAP_REG = 1343094840;
|
|
277
|
+
export declare const ESP32P4_GPIO_STRAP_SPI_BOOT_MASK = 8;
|
|
278
|
+
export declare const ESP32P4_RTC_CNTL_OPTION1_REG = 1343291400;
|
|
279
|
+
export declare const ESP32P4_RTC_CNTL_FORCE_DOWNLOAD_BOOT_MASK = 4;
|
|
181
280
|
export declare const ESP32S31_SPI_REG_BASE = 542113792;
|
|
182
281
|
export declare const ESP32S31_BASEFUSEADDR = 544296960;
|
|
183
282
|
export declare const ESP32S31_EFUSE_BLOCK1_ADDR: number;
|