Rhys.Williams
947f552529
remove arduino libs dependancy (spi commented out)
2017-01-10 21:14:29 +13:00
Rhys Williams
d4adfe58a9
EV_I2C1 and EV_I2C2 in i2c setup
2017-01-06 21:04:22 +13:00
Rhys Williams
6b50c2eeab
Add i2c error checking
2017-01-06 13:42:47 +13:00
Rhys Williams
e7cef3ea4a
Fix Makefile, use esp-idf api for i2c - untested
2017-01-06 12:35:52 +13:00
Rhys Williams
7a09290f66
Separate spi from jshardware.c - still arduino lib
2017-01-05 19:27:12 +13:00
Rhys Williams
e0d6802bf5
Separate i2c from jshardware.c - still arduino lib
2017-01-05 19:09:59 +13:00
Rhys.Williams
be157d9da4
add GPIO pin sanity checks
2016-12-21 21:17:10 +13:00
Rhys.Williams
a22d45886e
set flash free area to just after programme save area
2016-12-19 23:09:50 +13:00
Rhys.Williams
3eaf629452
add one wire test
2016-12-19 21:46:06 +13:00
Rhys.Williams
64f3667c91
Add jshFlashGetFree - assume 4Mb memory
2016-12-19 21:45:11 +13:00
Rhys.Williams
ec55df522c
Add jshFlashGetFree - assume 4Mb memory
2016-12-19 21:26:15 +13:00
Rhys.Williams
40bf3371bb
example of https to add to Gordons google sheet
2016-12-19 21:12:35 +13:00
Rhys.Williams
3b9d8212e4
fix up spi tests - spi still not working
2016-12-19 08:38:14 +13:00
Rhys.Williams
5edb93201d
forward declare jswrap_ESP32_setAtten(), add tests
2016-12-19 08:29:54 +13:00
Rhys.Williams
08dddc3eb6
more work on spi code, add E.getTemperature();
2016-12-18 17:22:02 +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
Rhys.Williams
3e1c3197ab
i2c working on ESP32 - needs bitrate to be set
2016-12-06 20:28:34 +13:00
Rhys.Williams
e10c8dfe48
First pass at i2c support
2016-12-06 18:37:38 +13:00
Rhys.Williams
df66ac9815
remove offset on jshGetTimeFromMilliseconds
2016-12-06 16:39:39 +13:00
Rhys.Williams
2d7e0553d7
set and get time functions, start i2c (not really)
2016-12-06 16:27:28 +13:00
Rhys.Williams
98877b9ad9
try taskDISABLE_INTERRUPTS();
2016-12-06 14:29:45 +13:00
Rhys.Williams
ef1c9796c7
comment out jshInterruptOn() tests, as causing wdt reset
2016-12-06 13:30:18 +13:00
Rhys.Williams
e7bc7ea326
remove logging from GPIO functions, add gpio and onewire test harness
2016-12-06 13:25:58 +13:00
Rhys.Williams
0bf87b97f4
revert gpio ping changes that where remove
2016-12-06 12:45:52 +13:00
Rhys.Williams
fea4f6c3b5
add SDK version as a string
2016-12-05 17:28:09 +13:00
Rhys.Williams
c17b486042
Updates for ESP-idf SDK 1.0
2016-12-05 16:44:04 +13: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
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