Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge/5 5 0 #59

Open
wants to merge 273 commits into
base: dev/translate-jp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
9e76da4
xsbug: test262 skipped features
Nov 14, 2024
04d5608
XS: compartment and JSON modules
Nov 15, 2024
a5c14c5
XS: Float16
Nov 20, 2024
62148e8
XS: Float16
Nov 20, 2024
d7b6c29
XS: obsolete build flags
Nov 20, 2024
3071f3d
XS: default build flags
Nov 20, 2024
4e163bd
XS: obsolete build flags
Nov 21, 2024
31a46e3
XS: default and obsolete build flags
Nov 21, 2024
8a2a930
XS: default build flags
Nov 21, 2024
97d7e2e
XS: immutable ArrayBuffer tests
Nov 21, 2024
a230990
XS: immutable ArrayBuffer
Nov 21, 2024
a72a55b
XS: version numbers
Nov 24, 2024
a479e35
Merge branch 'master' into XS-16
Nov 25, 2024
a27d50c
XS: xsnap build
Nov 25, 2024
4e80b13
XS: undefined bindings #1435
Nov 26, 2024
f01d75a
merge master
Nov 26, 2024
e32b2f1
io update macOS
Nov 26, 2024
b4fdfba
testmc: module stuff
Nov 26, 2024
4787af6
io update macOS
Nov 26, 2024
ed63a52
oops
Nov 26, 2024
3850589
eliminate a buffer copy on write, don't mask messages sent as server
phoddie Dec 7, 2024
c90e9b0
tighten up
phoddie Dec 8, 2024
f33f492
reduce data copy and buffer resize
phoddie Dec 8, 2024
f1162fd
add support for Bitmap.Gray16
mkellner Dec 11, 2024
7f74685
add mqttsclient
phoddie Dec 12, 2024
3dbddc5
419 TLS write options.more
phoddie Dec 12, 2024
aec0815
419 TCP write always returns updated writable
phoddie Dec 12, 2024
8767477
use writable value returned by TCP socket
phoddie Dec 12, 2024
ee115ad
use writable value returned by TCP socket
phoddie Dec 12, 2024
114eb54
attach doesn't need URL
phoddie Dec 12, 2024
1c1e38b
default to binary when options present; last packet of group must be …
phoddie Dec 13, 2024
8aeb8a7
optional count argument
phoddie Dec 13, 2024
6070edd
implement format, target, and BYOB in read
phoddie Dec 13, 2024
fab2a24
clean-up
phoddie Dec 13, 2024
fa64e16
use writable value returned by TCP socket
phoddie Dec 13, 2024
a91f51c
implement format and target
phoddie Dec 13, 2024
be0005a
re-enable touch and startupSound
mkellner Dec 15, 2024
485d00f
ECMA419 ft6202 driver now accepts vendor 0 and 2 as it did before
mkellner Dec 15, 2024
6776b1a
update cam framesizes
mkellner Dec 15, 2024
57390c6
mqtt removeEventListener fix
Dec 16, 2024
ae4c0f3
XS: Error.isError
Dec 16, 2024
d18f15d
include SAN in TL certification verification #1421
phoddie Dec 16, 2024
0f2c541
set applicationLayerProtocolNegotiation for https; sync http & https …
phoddie Dec 17, 2024
516f5a6
basic TLS SAN unit tests #1421
phoddie Dec 17, 2024
6fa9043
XS backup
Dec 17, 2024
1e882bc
XS backup
Dec 17, 2024
4956b55
XS backup
Dec 17, 2024
a2f93e9
XS backup
Dec 17, 2024
eb5b9f8
esp camera module removed some frame sizes
phoddie Dec 17, 2024
6e54d5c
esp32 canera does rgb16->gray 4; piu image buffer does gray 4
phoddie Dec 17, 2024
d81132d
clean-up; remove private APIs and fields from public view
phoddie Dec 17, 2024
e6452e4
XS backup
Dec 18, 2024
edb8834
Merge branch 'master' into XS-16
Dec 18, 2024
61b8689
XS: iterator helpers
Dec 18, 2024
20ca4db
pico: reduce build warnings, allow builds with latest gcc-arm-embedded
mkellner Dec 19, 2024
fda7721
pico remove the gpio callback on destructor
mkellner Dec 19, 2024
8da7aa2
pico: update build instructions to build pioasm
mkellner Dec 19, 2024
ab20690
Merge branch 'master' into XS-16
Dec 19, 2024
472c98c
#1421 continued
phoddie Dec 19, 2024
7ac016a
one more SAN test
phoddie Dec 19, 2024
18a8ad9
fix warning
phoddie Dec 19, 2024
ead5dc0
XS: iterator helpers
Dec 20, 2024
485730b
fixes for sending partial http headers; pin writable to request body …
phoddie Dec 20, 2024
5fa5e11
switch to broker.hivemq.com for test server
phoddie Dec 20, 2024
228787f
macos: use -X with cp to omit writing metainfo to device during install
mkellner Dec 20, 2024
9198d01
Moddable Four: update bootloader to wait briefly after install for ma…
mkellner Dec 20, 2024
7dd35ad
less exhuberence
phoddie Dec 21, 2024
0929992
image for doc
mkellner Dec 21, 2024
37044c5
XS: iterator helpers
Dec 22, 2024
50a71bc
xsbug: fix TEST pane scrolling on Linux/Windows
Dec 26, 2024
54a5e4d
Merge branch 'master' into XS-16
Dec 30, 2024
0905ffe
xsbug: test262 filter
Dec 30, 2024
974751b
don't require screen #1445
phoddie Jan 2, 2025
35863e7
nrf52/xiao use the correct pin numbers for leds
mkellner Dec 28, 2024
a13a35c
nrf52 bootloader 8.3
mkellner Dec 29, 2024
0545cbb
pico: allocate digital structure with calloc
mkellner Jan 3, 2025
0f3f4c6
pico: add PulseCount to host/provider.js
mkellner Jan 3, 2025
c9f3ecb
pico: 419 PulseCount
mkellner Jan 3, 2025
c9e0b5f
fix doc link
mkellner Jan 4, 2025
acad746
XS: check iterator helper
Jan 4, 2025
18bfbf7
instrument listener
phoddie Jan 5, 2025
579a96c
fix http response of unknown length #1448
phoddie Jan 5, 2025
56d41a6
clean-up
phoddie Jan 5, 2025
631d4d5
more reliable with multiple connections
phoddie Jan 5, 2025
93fa5b8
usb/jtag reliability
phoddie Jan 5, 2025
92eb7b8
add moddable_six_cdc target - big heaps and stack
phoddie Jan 5, 2025
cf78cb7
update null handling in CDATA
phoddie Jan 5, 2025
dc95f31
correct debug msg
phoddie Jan 5, 2025
7080efa
bigger heaps and stack
phoddie Jan 5, 2025
770f466
shorter timeout on usb_serial_jtag_read_bytes seems more reliable wit…
phoddie Jan 6, 2025
ed0afed
oops - fix non-debug builds
phoddie Jan 6, 2025
5468701
define ESP build environment variables in mcconfig to make available …
phoddie Jan 6, 2025
288b812
merge over changes
phoddie Jan 7, 2025
bad7eae
XS: with has get sequence in xst only
Jan 7, 2025
285f144
configurable XCLK_FREQ and JPEG_QUALITY #1447
phoddie Jan 7, 2025
eaf6699
XS: iterator helpers close receiver on argument validation failure
Jan 9, 2025
2821dd5
xsbug: test2626 without regexp unicode property escape cases
Jan 9, 2025
372ca99
mcconfig: manifest*.json are no json modules
Jan 9, 2025
2113cb6
deactivate C API for 419 I2C (sync)
phoddie Jan 10, 2025
6af2c25
typos
phoddie Jan 10, 2025
ea2cbd0
rad/write C API for 419 DigitalBank
phoddie Jan 10, 2025
718db7b
pico: 419 pulsecount
mkellner Jan 5, 2025
3f70ff6
migrate 419 flash and update
mkellner Jan 5, 2025
b33b2d3
esp32 - split debug variants from main.c, respect UPLOAD_PORT, DEBUGG…
mkellner Jan 15, 2025
3955d84
signature hash algorithms list for TLS 1.2 and beyond (fix OpenAI han…
phoddie Jan 15, 2025
053f518
pico: 419 pulsecount
mkellner Jan 5, 2025
6e77a27
migrate 419 flash and update
mkellner Jan 5, 2025
3dfbe41
Merge branch 'master' into factor_main
mkellner Jan 16, 2025
12b4a93
fix warning
phoddie Jan 16, 2025
b71a07a
document GATT Characteristic Properties #1450
phoddie Jan 16, 2025
deb76e0
remove obsolete check for closed socket
phoddie Jan 16, 2025
806be29
respect configuration value for neopixel pin
mkellner Jan 16, 2025
7377621
m5stack_core2: remove obsolete esp idf config
mkellner Jan 16, 2025
3bd443f
esp32 - pass instrumentation option to idf build
mkellner Jan 16, 2025
ba209d7
Linux host: conditionalize use of mxUseFloat16 on GNUC version (try >…
Jan 16, 2025
45968ea
cdc works with instrumentation; remove printf & unused headers
phoddie Jan 16, 2025
e62e38a
test fixture to eliminate duplicating worker configuration
phoddie Jan 17, 2025
85f5091
sanity check deprecated worker configuration (allows tests to work on…
phoddie Jan 17, 2025
1d93e22
pico: 419 pulsecount
mkellner Jan 5, 2025
1aa19d4
migrate 419 flash and update
mkellner Jan 5, 2025
9a2c41a
compatible with SOFTRESET in testmc & test262; move xsbug IP address …
phoddie Jan 17, 2025
5cce0ee
esp32 - factor main
mkellner Jan 17, 2025
6c1c029
esp32: more variations for 9a2c41a7
mkellner Jan 17, 2025
3c97779
missed an endif
mkellner Jan 17, 2025
71b5c11
void for consistency
phoddie Jan 17, 2025
819a9af
modLog_transmit more efficient with ESP_put
phoddie Jan 17, 2025
ad837dd
Merge branch 'factor_main'
mkellner Jan 18, 2025
2f1847a
update and flash directories
mkellner Jan 19, 2025
372e0a0
Split ble.d.ts
stc1988 Jan 14, 2025
c1e1c5d
update type definition of ble
stc1988 Jan 16, 2025
ddd5831
add properties property to Characteristic
stc1988 Jan 16, 2025
b70140a
xst Float 16 variation
Jan 20, 2025
c71e59c
esp32 at 5.3.1
mkellner Jan 21, 2025
1282457
XS: demarshall garbage collection
Jan 22, 2025
2d19d68
marshall fuzzing
phoddie Jan 22, 2025
9718c75
fix the type definition of Bytes.
stc1988 Jan 22, 2025
3942f66
native onReadable callback
phoddie Jan 23, 2025
25354dd
remove unneeded check
phoddie Jan 23, 2025
dda1783
remove unused rises & falls fields
phoddie Jan 23, 2025
66edbed
consistent error msg
phoddie Jan 23, 2025
a0c5db7
xsl warnings: not frozen array items
Jan 24, 2025
1c6ab06
xsl: freeze preloaded JSON modules
Jan 24, 2025
9c464ab
XS: fuzz marshall/demarshall
Jan 24, 2025
a270030
cert
phoddie Jan 25, 2025
e0832ba
eliminate buffer copy and overallocation in readPacket
phoddie Jan 25, 2025
3a36e33
sync with latest compilerDataView (float16)
phoddie Jan 25, 2025
9612955
XS: fuzz marshall/demarshall
Jan 25, 2025
9c2c9b7
XS: fuzz marshall/demarshall
Jan 26, 2025
327c2e4
XS: marshall/demarshall sparse array
Jan 27, 2025
d0289fa
XS: enable garbage collector while demarshalling
Jan 27, 2025
2c92241
correct confusion between FrameSize index and frame_size id, add new …
phoddie Jan 27, 2025
4dc1715
validate format
phoddie Jan 28, 2025
9e3aabe
XS: fuzz marshall/demarshall
Jan 28, 2025
fd165a6
fix handling of JSON transforms (flows.json in Node-RED MCU)
phoddie Jan 28, 2025
88aa216
better error message for invalid platforn
phoddie Jan 28, 2025
57fefaf
split m5atom_s3r into m5atom_s3r_cam and m5atom_s3r_m12 - #1456
stc1988 Jan 28, 2025
b594343
remove unnecessary check
phoddie Jan 29, 2025
173f9cf
XS: fuzz marshall/demarshall
Jan 29, 2025
1021fe5
XS: iterator.prototype.constructor setter vs proxy
Jan 29, 2025
c88ac59
gc paranoia
phoddie Jan 30, 2025
b57086b
CDATA NULL changes break Node-RED MCU Edition – revert until that can…
phoddie Jan 30, 2025
a29e8f5
esp32 camera constructor deactivates I2C for camera initialization
mkellner Jan 29, 2025
95adace
alternate YUV to RGB with no multiple (disabled)
phoddie Feb 3, 2025
fc3d5b1
ESP32-C3 has only one I²C port (reported by @mshioji)
phoddie Feb 3, 2025
dcb9eac
clean-up and eliminate IDF warnings
phoddie Feb 3, 2025
1d6918c
shorten default message timeout
phoddie Feb 3, 2025
cb25560
don't invoke callbacks after close
phoddie Feb 3, 2025
4cb761f
XS: iterator.prototype.constructor setter vs proxy, infinite loop is …
Feb 4, 2025
f03fbf1
first time
phoddie Feb 5, 2025
165c660
quiet warning from IDF 5.4
phoddie Feb 6, 2025
73b6cd7
clear ledc_channel_config_t for IDF 5.4
phoddie Feb 6, 2025
9083148
add map, set, and bigint tests
phoddie Feb 6, 2025
ac4b1a2
no allocate/free for small messages
phoddie Feb 6, 2025
07fbbc3
reduce allocations
phoddie Feb 6, 2025
9e57a86
sync with marshall error change
phoddie Feb 6, 2025
303b550
typo
phoddie Feb 7, 2025
1e63b70
fix detect of unknown response length phoddie/node-red-mcu#129
phoddie Feb 7, 2025
196d162
read returns undefined when nothing available
phoddie Feb 7, 2025
25fd96d
handle callback closing connection; delete connection options after c…
phoddie Feb 12, 2025
21766ed
merge Patrick's file changes for latest 419 draft
phoddie Feb 13, 2025
ecccd72
sync file tests with 419 changes
phoddie Feb 13, 2025
fbc07a6
only preload self
phoddie Feb 13, 2025
8125e89
Piu Port: mark computed style
Feb 13, 2025
6c55d74
try allowing CONFIG_FREERTOS_HZ != 1000
phoddie Feb 14, 2025
9367715
http server: read with no arguments
phoddie Feb 14, 2025
19895e9
evolving WebPage route to 419 Static Route
phoddie Feb 14, 2025
9c7a347
move 419 keyValue storage code to correct place and use final module …
phoddie Feb 15, 2025
99d94e7
update module specifier
phoddie Feb 15, 2025
fc1d57d
XS linker: fix Atomics table #if mxFloat16
Feb 15, 2025
7a9edae
fuzzilli: native stack overflows in marshall
phoddie Feb 17, 2025
d66c2a9
buffer hacking; more atomics
phoddie Feb 17, 2025
4b19f26
sync with latest 419 draft and posix implementation
phoddie Feb 19, 2025
4e1a1d0
update freertos tasks & gcc atomics for esp32 family
phoddie Feb 21, 2025
4435892
better check for riscv
phoddie Feb 24, 2025
2c7ed32
warnings
phoddie Feb 24, 2025
b607cdb
ESP32 handles unaligned access
phoddie Feb 24, 2025
aa0f8e4
add CHECK_NETWORK_SAFE to work-around ESP-IDF abort()
phoddie Feb 24, 2025
a5e41cd
kaluga: touch_pad support obsoleted
mkellner Feb 24, 2025
ed7afc8
esp32 - change expected IDF to 5.4, build again for moddable_two
mkellner Feb 24, 2025
ba6eb79
preload modules only built by this manifest, not all "embedded:*"
phoddie Feb 24, 2025
8923665
use normative module specifiers
phoddie Feb 24, 2025
1d93158
ensure "tmp" dir exists for tests
phoddie Feb 24, 2025
78e3cfa
esp32 camera - constructor using i2c->doDeactivate to prepare camera …
mkellner Feb 25, 2025
c7c4b0d
terminate test on write exception
phoddie Feb 25, 2025
803a904
big memory for Moddable Six CDC too
phoddie Feb 25, 2025
f3bd3a9
tweaks...
phoddie Feb 25, 2025
1463cfd
follow fixture naming conventions
phoddie Feb 25, 2025
ca6b3c4
free serial interrupt on close #1462
phoddie Feb 25, 2025
22f669a
Symbol.iterator on directory instance
phoddie Feb 25, 2025
32eca44
more quieting warnings
phoddie Feb 26, 2025
e867828
esp32 windows idf 5.4 tweaks
mkellner Feb 26, 2025
7dd3726
migrate Patrick's AI chat here
phoddie Feb 26, 2025
8085426
don't duplicate wssconfig
phoddie Feb 26, 2025
ba28dbd
doc update for idf 5.4
mkellner Feb 26, 2025
155ba1b
use slot_mask RIGHT for pdm on esp32
mkellner Feb 26, 2025
e5b2228
longer user prompts
phoddie Feb 26, 2025
acacc27
conversationalAI: gemini long prompt
Feb 27, 2025
7071c5c
Add more stars with slightly different colors to make star field more…
Feb 27, 2025
a2d97f2
bigger animation interval, smaller device memory
phoddie Feb 28, 2025
45074db
419 audio in tests
phoddie Feb 28, 2025
203a184
audio in fixes based on tests
phoddie Feb 28, 2025
565ba27
419 audio in tests
phoddie Feb 28, 2025
80c3b9a
correct audio module specfiiers
phoddie Feb 28, 2025
a665d53
type -> audioType
phoddie Feb 28, 2025
5b0b151
configurable slot mask
phoddie Mar 1, 2025
c26105e
PDM mic
phoddie Mar 1, 2025
15e9604
fix-up flash fixture
phoddie Mar 1, 2025
92439b2
remove unused lval
phoddie Mar 1, 2025
5b22cab
decode rejects surrogate pairs and overlong encoding #1464
phoddie Mar 1, 2025
03ed102
remove string;ascii support
phoddie Mar 2, 2025
4dad3d6
workers use lower priority than main task on all FreeRTOS ports
phoddie Mar 2, 2025
828f034
conversationalAI: prompt bubble
Mar 3, 2025
a460936
voices
phoddie Mar 3, 2025
5f407e6
report openai failures
phoddie Mar 4, 2025
78ca3e2
more personalities
phoddie Mar 4, 2025
aba2f4e
more personalities
phoddie Mar 4, 2025
579088c
conversationalAI: prompt bubble animation
Mar 4, 2025
d14fde7
characters
phoddie Mar 4, 2025
55b6552
add microphone
phoddie Mar 4, 2025
80e43d6
no key
mkellner Mar 5, 2025
4d043a5
gemini worker too many turns
Mar 5, 2025
fdc103f
fix one more case of callbacks triggering after close
phoddie Mar 5, 2025
988c265
app notes
phoddie Mar 5, 2025
579c8af
moddable mic works with moddable_two
mkellner Mar 5, 2025
4e53b0b
a bit more
phoddie Mar 5, 2025
dea8ce1
moddable mic on moddable_two_io
mkellner Mar 5, 2025
bd90b09
more docs
phoddie Mar 5, 2025
45b58ab
simulator!
phoddie Mar 5, 2025
b11c527
numbered list
phoddie Mar 5, 2025
4b441ea
Merge tag '5.5.0' into merge/5_5_0
stc1988 Mar 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions build/devices/esp32/config/idfSerialPort
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash


if [[ "$UPLOAD_PORT" ]]; then
>&2 echo "Using <env> UPLOAD_PORT $UPLOAD_PORT"
if [[ -c "$UPLOAD_PORT" ]]; then
echo $UPLOAD_PORT
exit
fi
fi

CACHED_DIR=$MODDABLE/build/tmp/esp32

if [[ -f ${CACHED_DIR}/UPLOAD_PORT ]]; then
Expand Down
160 changes: 160 additions & 0 deletions build/devices/esp32/lib/debugger/debugger_cdc.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
/*
* Copyright (c) 2016-2025 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK Runtime.
*
* The Moddable SDK Runtime is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The Moddable SDK Runtime is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the Moddable SDK Runtime. If not, see <http://www.gnu.org/licenses/>.
*
*/

#define __XS6PLATFORMMINIMAL__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#include "esp_log.h"

#include "driver/usb_serial_jtag.h"

#include "xs.h"
#include "xsHost.h"
#include "xsHosts.h"

#include "mc.defines.h"

#ifndef XT_STACK_EXTRA
#define XT_STACK_EXTRA 512
#endif

//#define WEAK __attribute__((weak))
#define WEAK

#ifdef mxDebug
extern xsMachine *gThe;
#endif

extern void fx_putc(void *refcon, char c); //@@

uint8_t jtagReady = 1;
uint8_t jtag0_position = 0, jtag0_available = 0;
uint8_t jtag1_position = 0, jtag1_available = 0;
static uint8_t jtag0[128];
static uint8_t jtag1[128];

static void debug_task(void *pvParameter)
{
usb_serial_jtag_driver_config_t cfg = { .rx_buffer_size = 512, .tx_buffer_size = 512 };
usb_serial_jtag_driver_install(&cfg);

while (true) {
if (0 == jtagReady) {
int amt = usb_serial_jtag_read_bytes(jtag1, sizeof(jtag1), 1);
if (0 == amt)
continue;
jtag1_position = 0;
jtag1_available = (uint8_t)amt;
}
else {
int amt = usb_serial_jtag_read_bytes(jtag0, sizeof(jtag0), 1);
if (0 == amt)
continue;
jtag0_position = 0;
jtag0_available = (uint8_t)amt;
}

#ifdef mxDebug
fxReceiveLoop();
#endif
}
}

/*
Required functions provided by application
to enable serial port for diagnostic information and debugging
*/

WEAK void modLog_transmit(const char *msg)
{
#ifdef mxDebug
if (gThe) {
uint8_t c;
while (0 != (c = *msg++))
fx_putc(gThe, c);
fx_putc(gThe, 0);
}
else
#endif
{
const uint8_t crlf[] = {13, 10};
ESP_put((uint8_t *)msg, strlen(msg));
ESP_put((uint8_t *)crlf, 2);
}
}

WEAK void ESP_put(uint8_t *c, int count) {
while (count > 0) {
int sent = usb_serial_jtag_write_bytes(c, count, 10);
if (sent <= 0)
break;
c += sent;
count -= sent;
}
}

WEAK void ESP_putc(int c) {
char cx = c;
usb_serial_jtag_write_bytes(&cx, 1, 1);
}

WEAK int ESP_getc(void) {
if (0 == jtagReady) {
if (jtag0_available) {
jtag0_available--;
return jtag0[jtag0_position++];
}
else if (jtag1_available) {
jtagReady = 1;
jtag1_available--;
return jtag1[jtag1_position++];
}
}
else {
if (jtag1_available) {
jtag1_available--;
return jtag1[jtag1_position++];
}
else if (jtag0_available) {
jtagReady = 0;
jtag0_available--;
return jtag0[jtag0_position++];
}
}

return -1;
}

WEAK uint8_t ESP_isReadable() {
return jtag0_available || jtag1_available;
}

WEAK uint8_t ESP_setBaud(int baud) {
return 1;
}

void setupDebugger(void) {
xTaskCreate(debug_task, "debug", (768 + XT_STACK_EXTRA) / sizeof(StackType_t), 0, 8, NULL);
}
34 changes: 34 additions & 0 deletions build/devices/esp32/lib/debugger/debugger_none.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2016-2025 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK Runtime.
*
* The Moddable SDK Runtime is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The Moddable SDK Runtime is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the Moddable SDK Runtime. If not, see <http://www.gnu.org/licenses/>.
*
*/

#define __XS6PLATFORMMINIMAL__

#include "xs.h"
#include "xsHost.h"
#include "xsHosts.h"

void setupDebugger(void) { }
void modLog_transmit(const char *msg) { (void)msg; }
void ESP_put(uint8_t *c, int count) { (void)c, (void)count; }
void ESP_putc(int c) { (void)c; }
int ESP_getc(void) { return -1; }
uint8_t ESP_isReadable() { return 0; }
uint8_t ESP_setBaud(int baud) { return -1; }

Loading