WebIDE does not like restart of ESP32 because of strange behaviour compared to Espruino boards.
ESP32 sends to much lines and takes too long to be recognized as started.
Will have to find a better solution.
Removed ifdef of RTOS in jshardware.c
Errortext in watchdog functions changed
jshDelayMicroseconds now calls ets_delay_us,
former used taskDelay only works for milliseconds
calling esp_restart in jshReset
2. added README_flash.txt to folder target/esp32
3. added README_flash.txt to zip file created in $(ESP_ZIP):.... in Makefile
4. added header and source file for PWM. ESP32 does not support a general PWM driver(yet).
Therefore driver/ledc is used.
5 channel can be used for simple DAC, using default frequency of 5000Hz
3 more channel are available for different frequency
5. connect jshardwarePWM functions to standard calls in jshardware
6. implemented jshSetOutputValue in jshardware
7. moved targets/esp32/rtosutil.c from RTOS to standard part of ESP32
targets/esp32/jswrap_rtos.c is added only if var RTOS is defined
- this works without errors, but is not tested with Espruino commands
Added new task to main, to seperate Espruino function from interrupt service routine
- otherwise we get resets
Fixed some headers in esp32 relevant files
- list tasks to log
- list queues to log
- notiy a task
- timer functions
Timer is under construction and tested to the point where we don't get a restart
All of these functions are mainly for testing, they could(should?) be removed once timer is fully functional
- notify task and wait for notification
- added timer functions for both timers in timer group 1
- fixed problem with NULL in list function (tasks, queues, timer)
- made lists function available in h-file
please have in mind, ADC do not work linear.
Espressif will change this later
- added support for DAC(pin 25-26)
- changed interrupt handling for GPIO and UART to virtual interrupts
Changes to be committed:
modified: Makefile
modified: targets/esp32/jshardware.c
new file: targets/esp32/jshardwareAnalog.c
new file: targets/esp32/jshardwareAnalog.h
modified: targets/esp32/jshardwareUart.c
modified: targets/esp32/jswrap_esp32.c
modified: targets/esp32/main.c
new file: targets/esp32/jshardwareUart.c
new file: targets/esp32/jshardwareUart.h
new file: targets/esp32/jswrap_rtos.c
new file: targets/esp32/jswrap_rtos.h
new file: targets/esp32/rtosutil.c
new file: targets/esp32/rtosutil.h