569 Commits

Author SHA1 Message Date
Gordon Williams
dd2007392a 1v88 release
Had to remove 'dump()' on devices with very little flash memory (Olimexino/Micro:bit)
2017-02-16 17:27:00 +13:00
Gordon Williams
71ed99981f Use nrfjproj for programming if it exists 2017-02-16 17:26:53 +13:00
Gordon Williams
97d64190ee More reliability tweaks for nRF52 2017-02-16 17:26:47 +13:00
Gordon Williams
a9d055bc04 Tweaking puck auto-test to cope with brand new batteries 2017-02-16 17:26:44 +13:00
Gordon Williams
23954e6318 Adding automatic NFC start after save, and let Puck.js advertise on NFC 'out of the box' 2017-02-16 17:26:42 +13:00
Gordon Williams
285555121a (untested) hardware SPI on nRF52. Needs batch mode to make built-in DMA even remotely useful though 2017-02-16 17:26:38 +13:00
Gordon Williams
492add2b91 comments 2017-02-16 17:25:11 +13:00
Gordon Williams
9039d0a04b attempt at nRF5x secure bootloader 2017-02-16 17:25:01 +13:00
Gordon Williams
94feb82dc5 nRF52: BLE HID support and switchable Nordic UART 2017-02-16 17:23:46 +13:00
Gordon Williams
69c0684fae Big BLE refactor - the single file was getting way out of hand, so split out most nordic-specific into bluetooth.c in the nrf5x directory 2017-02-16 17:23:40 +13:00
Rhys.Williams
cebf09b917 Correct 0x8000 partition, make menuconfig in docs 2017-02-11 17:46:17 +13: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
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
b80329a044 Add tar target contain .bin for flashing 2017-01-15 16:16:32 +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
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
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
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
Juergen Marsch
e83ca586f5 Adds build/ethernet to searchdirs for linker 2016-12-05 11:58:25 +01:00
Rhys.Williams
c17b486042 Updates for ESP-idf SDK 1.0 2016-12-05 16:44:04 +13: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
0e6807fbdf Add telnet - compiles - however can't connect yet 2016-11-29 20:47:09 +13:00
Rhys.Williams
65211d14ff revert Makefile to previous, adding crypto and graphics 2016-11-25 09:46:04 +13:00
Rhys.Williams
9c99e9ff3a take out telnet as not yet working, port opens but no chars sent or recieved 2016-11-24 15:03:20 +13:00
Rhys.Williams
168b8927af Add Crypto,Graphics,FS,telnet 2016-11-24 14:23:47 +13:00
Rhys.Williams
b709899bbe Update Makefile to current master - to facilitate an easier merge later 2016-11-24 14:14:13 +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
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
2e770d2928 Addition of ESP32.reboot(); Addition of more docs. 2016-10-15 19:12:06 -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
03e7e2c760 First pass at underlying network setup. 2016-10-11 20:03:19 -05:00
kolban
565285410b Initial files for the ESP32 environment. 2016-10-09 22:53:20 -05:00
Gordon Williams
059eb0a3e6 added SD hex files (blocked by gitignore) 2016-10-07 14:27:39 +01:00
Gordon Williams
ef14a51ee7 fix SDK12 build when no bootloader 2016-10-05 16:43:54 +01:00
Gordon Williams
a7ddf0b7b0 Now compiling nRF bootloader. Remove precompiled bootloaders as they'd struggle now anyway 2016-10-05 11:46:06 +01:00
Gordon Williams
a54fdf6bf8 Merge branch 'master' into SDK12 2016-10-04 14:15:58 +01:00
Gordon Williams
8da8ff585c Remove mbed support - hasn't worked for a while and just confuses things 2016-09-29 11:38:50 +01:00
Gordon Williams
d59214e40f finally move EFM32 down 2016-09-23 17:22:13 +01:00