14 Commits

Author SHA1 Message Date
Gordon Williams
980f5f06dd ESP32: Timers are now turned off when requested - digitalPulse/soft pwm/writeAtTime more accurate 2024-10-04 09:20:54 +01:00
rgomezwap
e9cdef4a03 Adapt source files
Adapt some source files to compile for ESP32 S3
2024-08-16 16:10:50 +02:00
Gordon Williams
57222f0915 More ESP32C3 ifdefs - C3 now builds but crashes as soon as it starts 2024-05-09 13:39:40 +01:00
Gordon Williams
fbb26d1669 some preliminary ifdefs for the c3 2024-05-07 13:46:59 +01:00
Gordon Williams
01467c2a53 more adjustments for IDF 4.4.7 2024-04-26 14:57:01 +01:00
Gordon Williams
054f5664a6 use ESP_IDF_VERSION_MAJOR for ESP32 2024-04-26 14:43:27 +01:00
Gordon Williams
973d26a044 Add #ifdef'd changes for IDF5 2024-04-26 14:43:27 +01:00
Gordon Williams
82d0077263 removing tabs in ESP32 code 2023-05-03 14:16:57 +01:00
jumjum123
1b3f15a195 Move util timer from its own task into espruino task
The first idea was to move util timer task to 2nd cpu later, but it turned out taskhandling slows down a lot
Therefore it had to be moved
Move init of timer into main loop
Add a bitfield for usage of pins for soft pwm
Add handling of soft pwm pins to jshPinSetState
Add handling of soft PWM to jshPinAnalogOutput if soft:true is set in options
Set time for util timer to a min of 30 usecs
2017-08-09 16:02:11 +02:00
jumjum123
21f9b8510b Added call for hardware timer functions to jshardware.c
- 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
2017-01-13 13:40:13 +01:00
jumjum123
db993981b6 Added RTOS functions:
- 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
2017-01-10 18:43:42 +01:00
Juergen Marsch
965d7e7026 new file: targets/esp32/docs/RTOS_for_Espruino.md
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
2016-12-01 22:48:26 +01:00
Juergen Marsch
bae5e8256a Revert "Merge pull request #983 from jumjum123/ESP32"
This reverts commit 3d464618227d8d6f5040bff6c8e41a447a6d6f25, reversing
changes made to 1d8fd4aa72e99a875eb7efe70c3d4700dd0d27b1.

merge was done with "old changes"
2016-12-01 17:15:50 +01:00
Juergen Marsch
004cb6330e RTOS functions wrapper and a task for console read
- added wrapper to use functions around tasks and queues. rtosutils is
c-level, jswrap_rtos wraps utils to Espruino
- added option for rtos (RTOS=1) to makefile
- adding a task for reading uart and writing to a queue
- use RTOS-option to switch between old polling and new queue based
input
- docu for the changes
2016-11-07 15:49:44 +01:00