83 Commits

Author SHA1 Message Date
Rhys.Williams
cebf09b917 Correct 0x8000 partition, make menuconfig in docs 2017-02-11 17:46:17 +13:00
jumjum123
94c4e1a2cf Commented esp_restart in jshReset,
WebIDE does not like restart of ESP32 because of strange behaviour compared to Espruino boards.
ESP32 sends to much lines and takes too long to be recognized as started.
Will have to find a better solution.
2017-02-08 08:56:23 +01:00
jumjum123
290828ad97 changed load address in Install.md
There was a change in esp-idf from 0x4000 to 0x8000
2017-02-07 12:46:42 +01:00
jumjum123
b390d34d85 Added include for rom/ets_sys.h
Removed ifdef of RTOS in jshardware.c
Errortext in watchdog functions changed
jshDelayMicroseconds now calls ets_delay_us,
  former used taskDelay only works for milliseconds
calling esp_restart in jshReset
2017-02-02 19:50:31 +01:00
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
cfc9770136 update SPI to match changed headers 2017-01-28 17:06:02 +13:00
jumjum123
eca56f1f4e Removed GPIOs, that are already used for Flash chip and rtc(xtal)
Added docu for PWM and Pulse
2017-01-22 22:43:48 +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
83265e45b5 Removed ESP_LOG commands and replaced helpful ESP_LOG by jsError
Done to be more compatible to standard Espruino messages
2017-01-20 16:29:15 +01: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
Rhys.Williams
a8520c61a8 allow I2C2 device, and test - yes working with HD44780. Read not tested 2017-01-16 18:34:03 +13:00
jumjum123
6c5e37d6d2 Corrected use of Arduino libs, they are not necessary anymore, since we now have spi and i2c in standard drivers
Added some categories to tasksInterruptsetc
New docu to give some information about hardware timer
Added description of notification between tasks
2017-01-13 13:46:14 +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
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
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
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
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