16 Commits

Author SHA1 Message Date
Christoph Willing
7f6f9303f6 Add function deepSleepExt1 for EXP32
Signed-off-by: Christoph Willing <chris.willing@linux.com>
2023-05-12 11:19:56 +10:00
Christoph Willing
0d64aa258b
Add function getWakeupCause for ESP32
Signed-off-by: Christoph Willing <chris.willing@linux.com>
2023-05-10 19:31:23 +10:00
Christoph Willing
2458fffa39
Add function deepSleepExt0
Signed-off-by: Christoph Willing <chris.willing@linux.com>
2023-05-09 13:05:19 +10:00
Gordon Williams
e994a281db ESP32: partition table updated in EspruinoBuildTools to ensure bootloader doesn't mistake js_code/storage for an otadata partition
ESP32: Add ESP32.setOTAValid(false) to allow the current partition to be marked as invalid (causing 'factory' to be booted into)
2023-01-20 15:13:40 +00:00
jumjum123
0054b39c00 ESP32.py
- added variables_mode in config.
build_platform_config.py
- added define for variables_mode
jsvar.h
- added jsVarsSize;  //size of jsVars for option malloc
- added support of malloc jsVars in jsvInit
jsvar.c
- added definition jsVars for variables_mode_malloc
jshardwareESP32.h
- new file with functions to set/get enable status of BLE and Wifi
jshardwareESP32.c
- new file with functions to set/get enable status of BLE and Wifi
ESP32.make
- added jshardware.c to SOURCES
main.c
- added handling for Wifi enabled
- added calculation for jsVars
- initialise jsVars based on calculation
jshardware.c
- used new API call to get Serial Number, even if Wifi is not enabled
- initialises BLE, if BLE is enabled (in NVS storage)
bluetooth.c
- check if BLE is enabled before initialising
jswrap_esp32.h
- defines functions to enable BLE and/or Wifi
jswrap_esp32.c
- wrapper for functions to enable BLE/Wifi, remove code from Flash, to avoid overflow in jsVars
- added status for BLE/Wifi to ESP32.getStatus
esp32_gap_func.c
- get mac adress even if Wifi is not enabled

 Changes to be committed:
	modified:   boards/ESP32.py
	modified:   make/family/ESP32.make
	modified:   scripts/build_platform_config.py
	modified:   src/jsvar.c
	modified:   src/jsvar.h
	modified:   targets/esp32/BLE/esp32_gap_func.c
	modified:   targets/esp32/bluetooth.c
	modified:   targets/esp32/jshardware.c
	new file:   targets/esp32/jshardwareESP32.c
	new file:   targets/esp32/jshardwareESP32.h
	modified:   targets/esp32/jswrap_esp32.c
	modified:   targets/esp32/jswrap_esp32.h
	modified:   targets/esp32/main.c
2018-06-01 12:23:00 +02:00
wilberforce
883000cf81 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 13:54:02 +12:00
Janos Waldhauser
6a81927613 Renamed from ESP32.deepsleep to ESP32.deepSleep.
Changed the ESP32.deepSleep parameter from milliseconds to microseconds.
2018-02-13 12:49:59 +01:00
Janos Waldhauser
66333f68b8 Deepsleep for ESP32
Only timer based wakeup is working.

ESP32.deepsleep(time_in_milliseconds)
2018-02-12 14:04:25 +01:00
wilberforce
821afc6210 remove ESP_LOG calls 2017-04-04 18:39:24 +12:00
Gordon Williams
002938f4ad Add E.neopixelWrite for all platforms (fix #1023) 2017-02-24 18:22:14 +00:00
Rhys.Williams
dde21f544c major update to bring ESP32 branch upto current master 1v91.381 2017-02-16 19:48:31 +13:00
kolban
e41040993c Initial files for the ESP32 environment. 2017-02-16 17:40:08 +13:00
Rhys.Williams
08dddc3eb6 more work on spi code, add E.getTemperature(); 2016-12-18 17:22:02 +13:00
kolban
2e770d2928 Addition of ESP32.reboot(); Addition of more docs. 2016-10-15 19:12:06 -05:00
kolban
ea902eed4c Addition of ESP32.setLogLevel 2016-10-14 10:52:47 -05:00
kolban
565285410b Initial files for the ESP32 environment. 2016-10-09 22:53:20 -05:00