16 Commits

Author SHA1 Message Date
jumjum123
52c6136c3c Added support for Serial2 and Serial3
Setup is supported for Serial2 and Serial3 only
Flowcontrol is UART_HW_FLOWCTRL_DISABLE only
2017-01-31 11:33:11 +01:00
Rhys.Williams
8d1b5265b6 repair Makefile so bin and build tar get built, fix typo for xTaskCreatePinnedToCore, bin parition 0x8000 2017-01-22 11:08:48 +13:00
jumjum123
59f2155135 Added functions to support digitalPulse.
Not tested yet, waiting for an oscilloscope......
2017-01-20 16:12:46 +01:00
jumjum123
6a18cbc5dd 1. Makefile, moved $(ESP_ZIP):.... to be after proj:....
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
2017-01-19 15:39:01 +01: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
Rhys.Williams
1db1205aaa get wifi startup working - default on fresh flash is AP mode 2017-01-12 18:35:35 +13:00
Rhys.Williams
471e86ffcb remove arduino libs dependancy (spi commented out) 2017-01-10 21:33:05 +13:00
Rhys.Williams
947f552529 remove arduino libs dependancy (spi commented out) 2017-01-10 21:14:29 +13:00
Juergen Marsch
8e38a5aae2 - Added suport for ADC(pin32-39)
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
2016-12-13 18:58:57 +01:00
Juergen Marsch
0f2d2b7f7c Makefile added files
- RTOS_for_Espruino.md docu for RTOS-Commands
- jshardwareUart functions for interrupt driven console
- rtosutil rtos functions for tasks and queues
- jswrap_rtos wrapper for rtos functions
- Makefile added RTOS definition to support RTOS functions(or not)
- main.c switched to interrupt driven console using 2nd task
- jshardware.c switched to interrupt driven console
2016-12-01 22:32:30 +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
7aea6753a7 Merge branch 'ESP32' of https://github.com/jumjum123/Espruino into ESP32 2016-11-29 11:38:08 +01:00
Rhys.Williams
58eee3d07d Allow single byte read from flash so that save() works
Implement `wifi.save()` and `wifi.restore()` using inbuilt API (rather than save to flash like ESP8266)
2016-11-24 12:09:34 +13: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
kolban
07eff2d5d9 Addition of callback handlers for connect and disconnect events. 2016-10-11 00:15:31 -05:00
kolban
565285410b Initial files for the ESP32 environment. 2016-10-09 22:53:20 -05:00