3426 Commits

Author SHA1 Message Date
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
4f1495d6f5 Merge pull request #1020 from wilberforce/ESP32
Wifi updates - Remove ESP_LOG statements - change to jsWarn and jsError
2017-01-12 08:58:56 +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
bb3d7e7317 wifi save - work as per ESP8266 2017-01-12 17:34:55 +13:00
Rhys.Williams
a8208d17ac Remove ESP_LOG statements - change to jsWarn and jsError 2017-01-12 16:51:34 +13:00
jumjum123
4c222a46a8 Added timer files for jshardware
- jshardwareTimer.h
- jshardwareTimer.c
- added jshardwareTimer to make if variable RTOS is defined
2017-01-11 10:39:04 +01:00
jumjum123
37b5b589b1 Merge pull request #1019 from wilberforce/ESP32
first pass at i2c and spi functions - untested
2017-01-11 09:00:56 +01:00
Rhys.Williams
c2b17a5979 first pass at i2c and spi functions - untested 2017-01-11 17:55:15 +13:00
jumjum123
881d415bb1 Added JS-Commands
- 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
2017-01-10 19:19:26 +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
jumjum123
65f74e4d52 Fill gaps in GPIO list
Add definition for DAC pins (GPIO25/26)
2017-01-10 17:54:32 +01:00
jumjum123
a63eb29663 Merge pull request #1018 from wilberforce/ESP32
Remove arduino lib dependancies
2017-01-10 17:27:36 +01:00
Rhys.Williams
8ce1af5a2f remove arduino libs dependancy (spi commented out) 2017-01-10 21:53:06 +13:00
Rhys.Williams
471e86ffcb remove arduino libs dependancy (spi commented out) 2017-01-10 21:33:05 +13:00
Rhys.Williams
7480144bb6 remove arduino libs dependancy (spi commented out) 2017-01-10 21:26:16 +13:00
Rhys.Williams
8f9062eb7b remove arduino libs dependancy (spi commented out) 2017-01-10 21:17:34 +13:00
Rhys.Williams
947f552529 remove arduino libs dependancy (spi commented out) 2017-01-10 21:14:29 +13:00
jumjum123
83934495a2 Merge pull request #1013 from wilberforce/ESP32
Fix Makefile, use esp-idf api for i2c - untested
2017-01-09 12:19:07 +01: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
jumjum123
20080c8587 Merge pull request #1012 from wilberforce/ESP32
Split i2c and spi from jshardware.c - to allow easier port to esp-idf implementation
2017-01-05 21:27:56 +01: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
jumjum123
75d1ddba01 Merge pull request #1006 from wilberforce/ESP32
Fix regression where HTTPS without cert/ca or key failed
2016-12-22 19:22:33 +01:00
Rhys.Williams
be157d9da4 add GPIO pin sanity checks 2016-12-21 21:17:10 +13:00
Rhys.Williams
fade63d7a1 Fix regression where HTTPS without cert/ca or key failed 2016-12-21 18:33:21 +13:00
jumjum123
555ba2bae7 Merge pull request #1002 from wilberforce/ESP32
more work on spi code, add E.getTemperature();
2016-12-19 11:53:44 +01: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
jumjum123
6994cfbc57 Merge pull request #988 from wilberforce/ESP32
GPIO updates / onewire / first pass I2C
2016-12-06 09:59:58 +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
Juergen Marsch
e83ca586f5 Adds build/ethernet to searchdirs for linker 2016-12-05 11:58:25 +01:00
jumjum123
756623821d Merge pull request #987 from wilberforce/ESP32
Updates for ESP-idf SDK 1.0
2016-12-05 10:38:11 +01: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