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

chore: Update to upstream 3.8.7 #9

Merged
merged 175 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
9050b36
note path of setup modules #1021
phoddie Feb 2, 2023
5e5e6dc
fix typos (h/t @nickthiru #997)
andycarle Feb 2, 2023
a9bce09
fix typo (h/t @nickthiru #997)
andycarle Feb 4, 2023
7fc8054
m5atom matrix pulse width
Feb 5, 2023
c3a556f
m5stack core2 debugger speed
Feb 5, 2023
a773c32
ex/io/tcp/mqttclient: fix keepalive
tve Feb 4, 2023
45464ef
ex/io/tcp/mqtt: fix options
tve Feb 4, 2023
82d0d4c
mcrun: no native code in mods
Feb 6, 2023
23da0b1
XS: undefined behavior?
Feb 9, 2023
b2e4443
XS: TypedArray byte length check
Feb 9, 2023
99e893b
XS: can grow key array - REBUILD ALL
Feb 9, 2023
2523e3a
XS: organic vs forced garbage collection
Feb 9, 2023
e205a9d
bump version
phoddie Feb 9, 2023
4edfa3f
update docs for growable key array
phoddie Feb 9, 2023
0c907e2
XS: fuzzilli 107
Feb 10, 2023
cc39b65
oops (thanks @mhofman)
phoddie Feb 10, 2023
eb376d2
FlashMode=DIO
Feb 11, 2023
918c6d2
Supported ATOMS3 Lite #1028
kitazaki Feb 11, 2023
be4b85a
simplify message queue on esp8266
phoddie Feb 13, 2023
8c4a5e1
i2c node fixes
phoddie Feb 13, 2023
5309078
fix-up default esp8266 upload port for macOS Ventura
phoddie Feb 14, 2023
0002e70
XS: clusterfuzz 19
phoddie Feb 14, 2023
a800601
XS: allow slot heap to grow up
Feb 14, 2023
c96bc95
XS: use snapshot to reset machine
Feb 14, 2023
9c3a87d
eliminate unnecessary aliasing on mxSave/RestoreState
phoddie Feb 14, 2023
61a889d
remove redundant call to tcp_abort on ESP8266
phoddie Feb 14, 2023
9b49772
Add typing for Console module
chigix Feb 14, 2023
d472c24
fix: type def on receive and write
chigix Feb 15, 2023
3c3f72f
creation changes
mkellner Feb 15, 2023
7b05a55
default display list is fine; a few more pixels helps
phoddie Feb 15, 2023
1a7973d
use http manifest
phoddie Feb 15, 2023
f30b5e6
URL on esp8266
phoddie Feb 16, 2023
f059d34
tls memory adjustment
phoddie Feb 16, 2023
704a6af
remove unused address
phoddie Feb 16, 2023
981d81c
remove unused address
phoddie Feb 16, 2023
0cccb55
Pulse-with is now available for major models of M5Stack products.
NW-Lab Feb 16, 2023
532b4d1
apds9960: tidy output
andycarle Feb 16, 2023
f1b9c3d
fx_assert_throws doesn't try to call missing argument
phoddie Feb 17, 2023
0050d8e
oops
phoddie Feb 18, 2023
8f00dd6
report error if using ui_* nodes without ui_base
phoddie Feb 18, 2023
6f35401
report error for missing mqtt broker
phoddie Feb 18, 2023
7f47264
async double buffering fixes
phoddie Feb 18, 2023
8e5aaae
Fails if there is a space in the PATH environment variable
NW-Lab Feb 18, 2023
f064d4a
re-correction
NW-Lab Feb 19, 2023
a81d673
translation for tile context
phoddie Feb 22, 2023
f6ffd00
add esp_lcd
phoddie Feb 23, 2023
957e541
first time
phoddie Feb 23, 2023
de4f75d
release i2c semaphore on reuse
phoddie Feb 24, 2023
94ac49e
include path
mkellner Feb 24, 2023
e7b07d3
warn on attempt to use fontbm if not installed
phoddie Feb 25, 2023
c4143ef
trace path of git clone
phoddie Feb 25, 2023
9ac454c
add cert
phoddie Feb 25, 2023
e87bcc2
revert last change
phoddie Feb 26, 2023
4e9d28a
unswap args
phoddie Feb 26, 2023
44ba137
if Wi-Fi mode not set, configure on first use #1047
phoddie Feb 27, 2023
7660001
scanner displays discovered devices without name in advertising packet
phoddie Feb 27, 2023
ca26d73
Add typing for securesocket
chigix Feb 27, 2023
2b4170c
ECMA-419 conformance: SPI active defaults to 0 #1051
phoddie Feb 28, 2023
9f9b649
socket -> attach to match updated draft spec
phoddie Feb 28, 2023
ff934a8
XS: fuzzilli 113
phoddie Feb 28, 2023
c314856
lighter native stack
phoddie Mar 3, 2023
d6568a3
fxCheckCStack for ESP8266
phoddie Mar 3, 2023
949e9c4
512 more bytes to ESP8266 native stack
phoddie Mar 3, 2023
87f5b09
fxCheckCStack for ESP32
phoddie Mar 3, 2023
14b1e84
smaller request so it can succeed on ESP8266
phoddie Mar 3, 2023
b5bcd61
rename targets for consistency #1000 (@ralphwetzel, @kitazaki)
phoddie Mar 3, 2023
54a952d
bind -> =>
phoddie Mar 3, 2023
746d137
clean-up, bind -> =>
phoddie Mar 3, 2023
4d5750e
XS: xsMarshall exceptions
Mar 6, 2023
b8f26f9
sync with async changes
phoddie Mar 7, 2023
21312d8
eliminate glitch after reset
phoddie Mar 7, 2023
1b7242a
merge credentials
phoddie Mar 10, 2023
88af344
mcu io node optimizations
phoddie Mar 10, 2023
fd9c686
remove stray trailing \
phoddie Mar 10, 2023
6ca493b
warn when using xsbug-log without installing
phoddie Mar 10, 2023
fb44688
issue callbacks on empty stack
phoddie Mar 10, 2023
c55ab56
assert expected screen dimensions
phoddie Mar 11, 2023
af5d052
pixelsToBytes should use input count, not screen width
phoddie Mar 11, 2023
370e7ea
example test shows checking expected screen dimensions
phoddie Mar 11, 2023
0642fa4
XS: fuzzilli 114
phoddie Mar 12, 2023
8e3e129
thank you eslint
phoddie Mar 13, 2023
5161d5d
more complete initialization of ESP8266 GPIO
phoddie Mar 13, 2023
ed12dfc
get XSBUG_PORT to xsbug-log on mac/linux #1062
phoddie Mar 13, 2023
c6e5947
Extend wavstreamer request
meganetaaan Mar 11, 2023
0614d9b
Add descriptions for `request` option
meganetaaan Mar 13, 2023
7bd1c28
fix mcrun on Windows (#1047)
andycarle Mar 13, 2023
c8f4901
XS: fuzzilli 115
phoddie Mar 13, 2023
33dcf73
kill KILL_XSBUG #1038
phoddie Mar 14, 2023
0025289
bufferDuration for WAV & SBC streaming #1061
phoddie Mar 14, 2023
55ad839
bigger default VM partitions on ESP32 & Pico
phoddie Mar 15, 2023
e8441c9
...and bigger ESP32 stack too
phoddie Mar 15, 2023
dccc1bb
workers - throw on more post failures, configure queue length & timeo…
phoddie Mar 16, 2023
7d1a6eb
disable esp8266 modem sleep - resolves analog noise and should give s…
phoddie Mar 16, 2023
9107526
update JavaScript ECMA-419 touch driver to sync with #1065. Also, cle…
phoddie Mar 16, 2023
f113f47
first commit
Mar 16, 2023
320c8ce
NimBLE: trigger onCharacteristicNotifyEnabled on indication subscript…
andycarle Mar 17, 2023
8667813
BLE: add example that changes the device's name and indicates on the …
andycarle Mar 17, 2023
35ec58b
fix bug in use of Queue Set (thanks @mkellner)
phoddie Mar 17, 2023
ec49c61
use begin/end metering as guard against fxAbort in xsEndHost
phoddie Mar 20, 2023
26a86d2
always port 5002; probe for other debugger instances at launch, disab…
phoddie Mar 20, 2023
069e0bc
remove unnecessary XSBUG_PORT/HOST setting
phoddie Mar 20, 2023
7bacd51
don't need to set XSBUG_PORT for xsbug-log
phoddie Mar 20, 2023
a62f913
document -x option to mcconfig/run
phoddie Mar 20, 2023
4cb5e40
first try - xsbug-log support for esp
phoddie Mar 20, 2023
b27cd74
ESP8266: fix Windows serial2xsbug command
andycarle Mar 21, 2023
2a4641e
xst: disable lsan when xs exit imminent #1067
raphdev Mar 21, 2023
fbde951
onewire gpio fixes esp8266phoddie/node-red-mcu#93
phoddie Mar 21, 2023
b9e935c
don't need to set mux on mode changes
phoddie Mar 21, 2023
4aabace
XS: fuzzillit 109, 112
Mar 22, 2023
a598843
XS: fuzzillit 116
Mar 22, 2023
2a72fd8
XS: fuzzillit 114
Mar 22, 2023
731da6b
xst: fabort once
Mar 22, 2023
8e571eb
Windows modTimer: handle timer callbacks in the correct thread / with…
andycarle Mar 22, 2023
9f587ef
Windows modTimer: a different approach to fixing #1058 (largely rever…
andycarle Mar 24, 2023
49b8e2f
remove moddable_manifest from generated code
phoddie Mar 24, 2023
06db76e
merge node-red manifest fragments
phoddie Mar 24, 2023
1af75c0
fix path #1071
phoddie Mar 25, 2023
a06dd7f
restore export of XSBUG_PORT #1072
phoddie Mar 26, 2023
d16a4ef
XS: fuzzillit 108, 110
Mar 27, 2023
9e2fa24
XS: fuzzillit 111
Mar 27, 2023
5f4242e
XS: fuzzillit 115
Mar 27, 2023
4188333
Windows socket: better error handling
andycarle Mar 27, 2023
37203e5
update ssid & password length tests to match implemenation
phoddie Mar 28, 2023
f73424f
fontbm: fix typo and no-longer experimental
phoddie Mar 28, 2023
069b8b9
pico 1.5
mkellner Mar 28, 2023
297e30b
uploading sensor driver and example project
dabdoue Mar 27, 2023
ca09507
addressing changes from PR
dabdoue Mar 28, 2023
e6033da
uploading aws example projects and tutorial readme
dabdoue Mar 27, 2023
01d4443
addressing issues from PR
dabdoue Mar 28, 2023
501fc50
add button definitions
mkellner Mar 29, 2023
ea46cca
specify pico sdk 1.5.0. Add pico/qt_trinkey and pico/xiao_ili9341 pla…
mkellner Mar 29, 2023
d472a4a
add pico
mkellner Mar 29, 2023
c902af3
pico: report WiFi disconnect
mkellner Mar 29, 2023
1a98f18
license clean-up
phoddie Mar 29, 2023
e8dea2e
resolve #1031
mkellner Mar 29, 2023
9ac801c
Merge branch 'master' of https://git.moddable.tech:3000/git/moddable
mkellner Mar 29, 2023
96cbe8f
pico clean-up (mostly warnings)
phoddie Mar 29, 2023
6949c3c
switch handles missing flow/global phoddie/node-red-mcu#109
phoddie Mar 29, 2023
adae9b5
copyright dates
mkellner Mar 29, 2023
c43982f
consistent behavior termination of serial2xsbug phoddie/node-red-mcu#107
phoddie Mar 29, 2023
b7a0e9b
move esp32 audio in to i2s port 1 & default interrupt
phoddie Mar 29, 2023
4e4b520
audioin -> audioIn
phoddie Mar 29, 2023
75a1769
fix sdk branchname for pico examples on linux
mkellner Apr 1, 2023
51c35c4
pico: qt_trinkey and xiao_ili9341 targets
mkellner Apr 1, 2023
c88bf3b
esp32 ota manifest
phoddie Apr 2, 2023
9ca9b65
graphics checksum to includes bounds (as intended)
phoddie Apr 2, 2023
5c6ef18
update checksums
phoddie Apr 2, 2023
77dcbad
_builtin_ warnings
phoddie Apr 3, 2023
69beb3c
remove obsolete NET_CONFIG_FLAGS
phoddie Apr 3, 2023
baa372c
rework GPIO validation using IDF constants to be device-independent
phoddie Apr 4, 2023
8d0fdfd
initialize available GPIO on ESP32s using IDF constants to be device-…
phoddie Apr 4, 2023
c486bd8
fix warnings
phoddie Apr 4, 2023
151c9c7
C_FLAGS_SUBPLATFORM for ESP32 #1069
phoddie Apr 4, 2023
8738fa1
fix Windows build (#1078)
andycarle Apr 5, 2023
6b179fd
correct module specifier to embedded:sensor/Oxygen/SEN0322
phoddie Apr 5, 2023
b72fdb5
fix test (error uncovered by corrected checksum)
phoddie Apr 6, 2023
6a9b3e1
missing semi-colon
mkellner Apr 6, 2023
dc1b2f4
fix handling of content-length 0 response #1080
phoddie Apr 6, 2023
1fb06af
Wi-Fi / Ethernet co-existence for ESP32 #1079
phoddie Apr 7, 2023
21bd67d
automatic partitioning for esp32
phoddie Apr 9, 2023
3f0c13f
fix last change for mcrun
phoddie Apr 9, 2023
40d533f
XS: ossfuzz 22
phoddie Apr 10, 2023
e1c90a0
Windows: fix incremental builds
andycarle Apr 10, 2023
d77e86b
adding driver support for x9c pots and ttp223 switch
dabdoue Apr 12, 2023
53ad417
0 length payload case triggered on any payload with low-byte of 0 ph…
phoddie Apr 13, 2023
0f49deb
don't need larger allocation (ESP32 & Pico do this by default now)
phoddie Apr 14, 2023
5ccf003
resolve relative paths in BUILD
phoddie Apr 16, 2023
ae3765b
ftstroke: empty paths have no points
Apr 17, 2023
19cb24e
manifest for debug module
phoddie Apr 18, 2023
2e27c75
better streaming buffer re-use to reduce peak memory use
phoddie Apr 18, 2023
a35e02f
m5stack_core2: 16 MB flash and better quality audio playback using 32…
phoddie Apr 18, 2023
427dd5c
esp32 uses i2s_write_expand for 32 bit output
phoddie Apr 18, 2023
01b8a8a
more options to tune esp32 audio memory use
phoddie Apr 19, 2023
bdc39c5
consistent naming
phoddie Apr 19, 2023
e7895a9
Merge tag '3.8.7' into mhofman/update-xs-3-8-7
mhofman Apr 24, 2023
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
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions build/devices/esp32/modules/ota/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"modules": {
"ota": "./ota"
},
"preload": [
"ota"
],
"platforms": {
"esp32": {
"defines": {
"ota": {
"autosplit": 1
}
}
},
"...": {
"error": "ESP32 OTA is not supported on this platform"
}
}
}
3 changes: 2 additions & 1 deletion build/devices/esp32/targets/m5atom_matrix/host/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import PWM from "embedded:io/pwm";
import Serial from "embedded:io/serial";
import SMBus from "embedded:io/smbus";
import SPI from "embedded:io/spi";
import PulseWidth from "embedded:io/pulsewidth";

const device = {
I2C: {
Expand Down Expand Up @@ -55,7 +56,7 @@ const device = {
pin: 33
}
},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PWM, Serial, SMBus, SPI},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PulseWidth, PWM, Serial, SMBus, SPI},
pin: {
button: 39
}
Expand Down
36 changes: 36 additions & 0 deletions build/devices/esp32/targets/m5atom_s3/sdkconfig/sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
CONFIG_TINYUSB=y
CONFIG_TINYUSB_CDC_ENABLED=y

#
# Descriptor configuration
#
CONFIG_TINYUSB_DESC_USE_ESPRESSIF_VID=n
CONFIG_TINYUSB_DESC_USE_DEFAULT_PID=n
CONFIG_TINYUSB_DESC_CUSTOM_VID=0xbeef
CONFIG_TINYUSB_DESC_CUSTOM_PID=0x1cee
CONFIG_TINYUSB_DESC_BCD_DEVICE=0x0100
CONFIG_TINYUSB_DESC_MANUFACTURER_STRING="Moddable"
CONFIG_TINYUSB_DESC_PRODUCT_STRING="Moddable"
CONFIG_TINYUSB_DESC_SERIAL_STRING="123456"
CONFIG_TINYUSB_DESC_CDC_STRING="xsbug"
# end of Descriptor configuration

CONFIG_CONSOLE_UART_DEFAULT=y
CONFIG_CONSOLE_UART=y
CONFIG_CONSOLE_UART_NUM=0
CONFIG_CONSOLE_UART_BAUDRATE=115200

# CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
# CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="8MB"

#CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHMODE_DIO=y

CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=n
CONFIG_ESP_COREDUMP_ENABLE_TO_UART=n
CONFIG_ESP_COREDUMP_ENABLE=n

#CONFIG_FLASHMODE_QIO=y
CONFIG_FLASHMODE_DIO=y
66 changes: 66 additions & 0 deletions build/devices/esp32/targets/m5atom_s3_lite/host/provider.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright (c) 2023 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/>.
*
*/

import Analog from "embedded:io/analog";
import Digital from "embedded:io/digital";
import DigitalBank from "embedded:io/digitalbank";
import I2C from "embedded:io/i2c";
import PulseCount from "embedded:io/pulsecount";
import PulseWidth from "embedded:io/pulsewidth";
import PWM from "embedded:io/pwm";
import Serial from "embedded:io/serial";
import SMBus from "embedded:io/smbus";
import SPI from "embedded:io/spi";

const device = {
I2C: {
default: {
io: I2C,
data: 2,
clock: 1
},
internal: {
io: I2C,
data: 38,
clock: 39
}
},
SPI: {
default: {
io: SPI,
port: 3,
clock: 17,
out: 21
}
},
Analog: {
default: {
io: Analog,
pin: 8
}
},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PulseWidth, PWM, Serial, SMBus, SPI},
pin: {
button: 41,
}
};

export default device;

39 changes: 39 additions & 0 deletions build/devices/esp32/targets/m5atom_s3_lite/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"build":{
"ESP32_SUBCLASS": "esp32s3",
"USE_USB": "1",
"SDKCONFIGPATH": "$(MODDABLE)/build/devices/esp32/targets/atoms3_lite/sdkconfig"
},
"include": [
"$(MODULES)/pins/smbus/manifest.json",
"$(MODULES)/pins/digital/manifest.json",
"$(MODULES)/pins/digital/monitor/manifest.json",
"$(MODULES)/drivers/button/manifest.json"
],
"modules": {
"*": [
"$(MODULES)/drivers/neopixel/*",
"$(MODULES)/drivers/neopixel/esp32/*",
"../m5stack_fire/m5button"
],
"setup/target": "./setup-target"
},
"preload": [
"setup/target",
"neopixel",
"m5button"
],
"defines": {
"i2c": {
"sda_pin": 38,
"scl_pin": 39
},
"neopixel": {
"length": 1,
"pin": 35,
"order": "#GRB",
"rmt_channel": "RMT_CHANNEL_0"
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=n
CONFIG_ESP_COREDUMP_ENABLE_TO_UART=n
CONFIG_ESP_COREDUMP_ENABLE=n

36 changes: 36 additions & 0 deletions build/devices/esp32/targets/m5atom_s3_lite/setup-target.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import Digital from "pins/digital";
//import Monitor from "monitor";
import M5Button from "m5button";
import config from "mc/config";
import Timer from "timer";
import Button from "button";
import I2C from "pins/i2c";
import NeoPixel from "neopixel";

class Flash {
constructor(options) {
return new Button({
...options,
pin: 0,
invert: true
});
}
}

globalThis.Host = Object.freeze({
Button: {
Default: Flash,
Flash
}
}, true);

export default function (done) {
globalThis.button = {
a: new M5Button(41)
};

globalThis.lights = new NeoPixel({});

done();
}

3 changes: 2 additions & 1 deletion build/devices/esp32/targets/m5stack/host/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import PWM from "embedded:io/pwm";
import Serial from "embedded:io/serial";
import SMBus from "embedded:io/smbus";
import SPI from "embedded:io/spi";
import PulseWidth from "embedded:io/pulsewidth";

const device = {
I2C: {
Expand Down Expand Up @@ -59,7 +60,7 @@ const device = {
pin: 35
}
},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PWM, Serial, SMBus, SPI},
io: {Analog, Digital, DigitalBank, I2C, PulseCount,PulseWidth, PWM, Serial, SMBus, SPI},
pin: {
button: 38,
led: 2,
Expand Down
3 changes: 2 additions & 1 deletion build/devices/esp32/targets/m5stack_core2/host/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import PWM from "embedded:io/pwm";
import Serial from "embedded:io/serial";
import SMBus from "embedded:io/smbus";
import SPI from "embedded:io/spi";
import PulseWidth from "embedded:io/pulsewidth";

const device = {
I2C: {
Expand Down Expand Up @@ -64,7 +65,7 @@ const device = {
pin: 35
}
},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PWM, Serial, SMBus, SPI},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PulseWidth, PWM, Serial, SMBus, SPI},
pin: {
displayDC: 15,
displaySelect: 5
Expand Down
7 changes: 4 additions & 3 deletions build/devices/esp32/targets/m5stack_core2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"build": {
"UPLOAD_SPEED": "1500000",
"DEBUGGER_SPEED": "921600"
"DEBUGGER_SPEED": "1500000",
"SDKCONFIGPATH": "./sdkconfig",
"PARTITIONS_FILE": "./sdkconfig/partitions.csv"
},
"include": [
"$(MODDABLE)/modules/drivers/ili9341/manifest.json",
Expand Down Expand Up @@ -67,8 +69,7 @@
"sampleRate": 11025,
"volume_divider": 1,
"i2s": {
"DAC_CHANNEL": 1,
"bitsPerSample": 16,
"bitsPerSample": 32,
"bck_pin": 12,
"lr_pin": 0,
"dataout_pin": 2
Expand Down
24 changes: 24 additions & 0 deletions build/devices/esp32/targets/m5stack_core2/sdkconfig/partitions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright (c) 2016-2023 Moddable Tech, Inc.
#
# This file is part of the Moddable SDK Tools.
#
# The Moddable SDK Tools is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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 Tools 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
#

# Name, Type, SubType, Offset, Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild,,,,
nvs, data, nvs, 0x9000, 0x006000,
phy_init, data, phy, 0xf000, 0x001000,
factory, app, factory, 0x10000, 0xFF0000,
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_ESP_INT_WDT=y

CONFIG_ESPTOOLPY_FLASHSIZE_1MB=n
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=n
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=n
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=n
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
3 changes: 2 additions & 1 deletion build/devices/esp32/targets/m5stick_cplus/host/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import PWM from "embedded:io/pwm";
import Serial from "embedded:io/serial";
import SMBus from "embedded:io/smbus";
import SPI from "embedded:io/spi";
import PulseWidth from "embedded:io/pulsewidth";

const device = {
I2C: {
Expand Down Expand Up @@ -68,7 +69,7 @@ const device = {
pin: 36
}
},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PWM, Serial, SMBus, SPI},
io: {Analog, Digital, DigitalBank, I2C, PulseCount, PulseWidth, PWM, Serial, SMBus, SPI},
pin: {
button: 37,
led: 10,
Expand Down
7 changes: 2 additions & 5 deletions build/devices/esp32/xsProj-esp32/partitions.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2016-2017 Moddable Tech, Inc.
# Copyright (c) 2016-2023 Moddable Tech, Inc.
#
# This file is part of the Moddable SDK Tools.
#
Expand All @@ -21,7 +21,4 @@
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild,,,,
nvs, data, nvs, 0x9000, 0x006000,
phy_init, data, phy, 0xf000, 0x001000,
factory, app, factory, 0x10000, 0x390000,
xs, 0x40, 1, 0x3A0000, 0x040000,
settings, data, 1, 0x3E0000, 0x010000,
storage, data, spiffs, 0x3F0000, 0x010000,
factory, app, factory, 0x10000, 0x3F0000,
2 changes: 1 addition & 1 deletion build/devices/esp32/xsProj-esp32/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1
CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048
CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0
CONFIG_FREERTOS_USE_TRACE_FACILITY=n
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=n
CONFIG_FREERTOS_DEBUG_INTERNALS=n

Expand Down
7 changes: 2 additions & 5 deletions build/devices/esp32/xsProj-esp32c3/partitions.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2016-2017 Moddable Tech, Inc.
# Copyright (c) 2016-2023 Moddable Tech, Inc.
#
# This file is part of the Moddable SDK Tools.
#
Expand All @@ -21,7 +21,4 @@
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild,,,,
nvs, data, nvs, 0x9000, 0x006000,
phy_init, data, phy, 0xf000, 0x001000,
factory, app, factory, 0x10000, 0x390000,
xs, 0x40, 1, 0x3A0000, 0x040000,
settings, data, 1, 0x3E0000, 0x010000,
storage, data, spiffs, 0x3F0000, 0x010000,
factory, app, factory, 0x10000, 0x3F0000,
2 changes: 1 addition & 1 deletion build/devices/esp32/xsProj-esp32c3/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1
CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048
CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0
# CONFIG_FREERTOS_USE_TRACE_FACILITY is not set
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
# CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS is not set
CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=y
CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y
Expand Down
2 changes: 1 addition & 1 deletion build/devices/esp32/xsProj-esp32s2/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ if (INSTRUMENT EQUAL "1")
endif()

add_prebuilt_library(xsesp32 ${CMAKE_BINARY_DIR}/xs_${ESP32_SUBCLASS}.a
PRIV_REQUIRES driver nvs_flash esp_adc_cal vfs spiffs fatfs)
PRIV_REQUIRES driver nvs_flash esp_adc_cal vfs spiffs fatfs esp_lcd)

target_link_libraries(${COMPONENT_LIB} PRIVATE xsesp32)
Loading