110 Commits

Author SHA1 Message Date
wilberforce
a167bd3eeb add build type FLASHFS 2017-03-23 01:05:20 +13:00
jumjum123
1973a776a9 Added reset function to jshreset for
- SPI
- ADC
- UART
- PULSE
2017-03-03 11:59:35 +01:00
jumjum123
1c4a4ec192 Merged wit latest changes(2nd of march 2017) from master
Added support for neopixel to esp32 branch
 Changes to be committed:
	modified:   Makefile
	modified:   libs/neopixel/jswrap_neopixel.c
	new file:   targets/esp32/esp32_neopixel.c
	new file:   targets/esp32/esp32_neopixel.h
2017-03-03 09:20:17 +01:00
jumjum123
8245df7b1b Merge remote-tracking branch 'origin/master' into ESP32 2017-03-02 17:51:01 +01:00
Gordon Williams
e3fe7dcf1c ensure ESP32-specfic task handling stays out of common docs for now 2017-03-02 14:54:11 +00:00
Gordon Williams
7928db756e sigh. refactor E.neopixelWrite to require('neopixel').write 2017-02-28 09:56:03 +00:00
jumjum123
e03d345cde Renamed targets/esp32/spi.* to jshardwareSpi.*
renamed targets/esp32/i2c.* to jshardwareI2c.*

Renamed includes for spi.h/i2c.h in jshardware.c, main.c, jshardwareSpi.c. jshardwareI2c.c
2017-02-25 15:46:42 +01:00
Gordon Williams
002938f4ad Add E.neopixelWrite for all platforms (fix #1023) 2017-02-24 18:22:14 +00:00
Rhys.Williams
26b085ce78 Merge branch 'ESP32' of https://github.com/espruino/Espruino into ESP32 2017-02-23 19:21:18 +13:00
Rhys.Williams
70c96f9fc8 Get Onewire working, support pin.toggle() 2017-02-23 18:58:15 +13:00
Rhys.Williams
6bcdb05e4b Get Onewire working, support pin.toggle() 2017-02-23 18:55:45 +13:00
jumjum123
720dbfd61a Merge pull request #1080 from wilberforce/ESP32
Set valid pins to 'input' on start up, Add telnet debugging, update tabs with spaces
2017-02-21 19:59:44 +01:00
Rhys.Williams
663010e25e update tabs to spaces 2017-02-22 00:38:58 +13:00
Rhys.Williams
6e52c6b30b Set valid pins to 'input' on start up, Add telnet debugging - yay telnet working! 2017-02-22 00:32:12 +13:00
MaBecker
59c1006eac fix detect(I2C1) 2017-02-18 00:00:40 +01:00
Rhys.Williams
dde21f544c major update to bring ESP32 branch upto current master 1v91.381 2017-02-16 19:48:31 +13:00
Rhys.Williams
82ef682b79 allow I2C2 device, and test - yes working with HD44780. Read not tested 2017-02-16 17:43:36 +13:00
Rhys.Williams
7b05f8fba3 first pass at i2c and spi functions - untested 2017-02-16 17:43:35 +13:00
Rhys.Williams
ca64061831 remove arduino libs dependancy (spi commented out) 2017-02-16 17:43:27 +13:00
Rhys.Williams
c40a05e06f remove arduino libs dependancy (spi commented out) 2017-02-16 17:43:16 +13:00
Rhys.Williams
a8c025c9e4 remove arduino libs dependancy (spi commented out) 2017-02-16 17:42:48 +13:00
Rhys.Williams
eb93bc3fd6 implement some of the missing GPIO pin functions 2017-02-16 17:41:35 +13:00
Rhys.Williams
7099b84468 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)
2017-02-16 17:40:42 +13:00
kolban
e41040993c Initial files for the ESP32 environment. 2017-02-16 17:40:08 +13:00
Rhys.Williams
0cd311bf48 restore wifi initalisation 2017-02-15 20:29:28 +13:00
jumjum123
99222ee989 Tested version for SPI (with ILI9341)
Extended to support both SPI channel (HSPI and VSPI)
Todo:
More testing with other SPI based hardware
Testing with two or more devices on same SPI channel (using seperate CE pins)
Input from SPI device
Find a faster solution. Each byte has a lot of overhead in Espruino.
2017-02-13 22:52:51 +01:00
Rhys.Williams
d7d36fd794 jshreset, re-organise hardware start up 2017-02-12 20:21:37 +13:00
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