83 Commits

Author SHA1 Message Date
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
Juergen Marsch
f420e6c8f8 Partition to 0x8000, allow non tested RTOS functions
According to ESP-IDF, file partitions_single_app should start from
0x8000 instead of 0x4000.
Some Rtos-Functions (taskhandling for example)are not fully tested, and
force a reset when called. This behaviour can be switched off.
2016-11-29 11:37:34 +01:00
Rhys.Williams
f13c48f302 Add undocumented gpio_pad_select_gpio(gpioNum); to force pins to be output on digitalWrite() 2016-11-29 20:45:45 +13:00
Rhys.Williams
114743c748 implement some of the missing GPIO pin functions 2016-11-28 17:44:35 +13: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
kolban
add9e89fb1 Accomodate latest ESP-IDF changes 2016-11-09 20:14:59 -06: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
Juergen Marsch
d6ef31da3a Merge branch 'ESP32' of https://github.com/espruino/Espruino into ESP32 2016-11-07 14:55:35 +01:00
kolban
094d7ee644 Addition of wifi.stopAP() 2016-10-30 13:00:12 -05:00
kolban
2dfaf676b4 Addition of wifi.startAP 2016-10-30 10:50:27 -05:00
kolban
196139560c Addition of network scanning. 2016-10-30 00:34:33 -05:00
kolban
4d81c1eba1 Additional changes needed for sdkconfig - documented 2016-10-28 15:06:33 -05:00
Juergen Marsch
9c191368f5 Merge branch 'ESP32' of https://github.com/espruino/Espruino into ESP32 2016-10-28 10:17:39 +02:00
Juergen Marsch
e31c501310 removed double definition of jshGetWatchedPinState 2016-10-28 10:17:18 +02:00
kolban
2ee20fbcac Changes requires for clean build on 2016-10-27 release of ESP-IDF. 2016-10-27 23:42:29 -05:00
kolban
d5dba169dc Addition of first pass at SPI functions. 2016-10-26 22:46:22 -05:00
kolban
32c4d6e2b3 Replacement of HTML file with equivalent markdown file. 2016-10-24 18:49:30 -05:00
Juergen Marsch
278c67b871 Adding Documents
Added documents for
- GPIO handling
- tasks, interrupts, etc used for Espruino
2016-10-21 13:48:08 +02:00
Juergen Marsch
62efa8654d pin definitions and setWatch implementation
Changes in ESP32.py to have only available pins, for example without pin
20, and to define ADC and UART pins.
Added interrupt handling for GPIO pins to support setWatch. Based on
description in driver/gpio.h
2016-10-20 20:47:12 +02:00
kolban
fe1f067e6b Addition of on(associated) logic. 2016-10-19 17:40:29 -05: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
Juergen Marsch
5706baeb93 Flash and save()
Added functions for handling Flash to jshardware.c
Added -$I for esp_spi_flash to makefile
Changed settings for save() in ESP32.py
2016-10-14 13:20:37 +02:00
kolban
8a37a74483 Progress on more network additions. 2016-10-12 00:16:36 -05:00
kolban
55a7664f37 Impl of wifi.getIp() and wifi.getStatus() 2016-10-11 19:01:25 -05:00
kolban
07eff2d5d9 Addition of callback handlers for connect and disconnect events. 2016-10-11 00:15:31 -05:00
kolban
9247b2f763 First steps in ESP32 WiFi. 2016-10-10 22:58:13 -05:00
kolban
9173a472cb Fix for #941 - Console characters not echoing properly 2016-10-10 19:44:57 -05:00
kolban
250d347ad8 Fixup of docs. 2016-10-09 23:15:02 -05:00
kolban
99aa351c8e Initial build instructions. 2016-10-09 23:12:08 -05:00
kolban
565285410b Initial files for the ESP32 environment. 2016-10-09 22:53:20 -05:00