202 Commits

Author SHA1 Message Date
Gordon Williams
ad34e66d88 Revert "Fix build issues, remove duplication"
This reverts commit 3007686199ec02d3e727ce918a551c0e9e8a3b75.
2020-10-09 15:45:58 +01:00
Gordon Williams
3007686199 Fix build issues, remove duplication 2020-10-07 17:08:06 +01:00
MaBecker
89426ec7da fix #1930 2020-09-24 11:47:09 +02:00
Gordon Williams
aa8d92cecb
Merge pull request #1905 from MaBecker/esp32_improvements
Update partitions_espruino.csv
2020-08-17 08:13:56 +01:00
MaBecker
a264994e2c Update partitions_espruino.csv
sync with EspruinoBuildTools/esp32/build/app/partitions_espruino.csv
2020-08-10 21:38:24 +02:00
Gordon Williams
829f73adce
Merge pull request #1621 from ExCyb/esp32_neopixel_debug
Esp32 neopixel debug
2020-07-28 08:06:58 +01:00
Gordon Williams
67374948db
Merge pull request #1886 from atc1441/patch-1
add jshSPISendMany
2020-07-17 11:15:09 +01:00
atc1441
59ac47e3a1
Added software callback function 2020-07-16 22:28:57 +02:00
atc1441
2cd535a71c
Added RX and up to 4096 TX 2020-07-16 15:45:47 +02:00
atc1441
371257f61a
add jshSPISendMany
only tx supported for now and no callback, Max 256 byte per request
2020-07-16 07:44:02 +02:00
atc1441
2503f50d61
add jshSPISendMany
only TX support for now, size max 256 bytes at once
2020-07-16 07:42:31 +02:00
Gary Ott
161982b53e Added code to jsuGetFreeStack() for ESP32 and introduced ESP_STACK_SIZE constant. 2020-07-14 11:09:05 +01:00
MaBecker
a38b8054bf esp32_improvement
* keep jsWarn() for not implemented functions
* add Exceptions for issues
2020-07-14 08:57:43 +02:00
MaBecker
bbc372620c esp32_improvements
- add FLASH_BAUD
- fix erase_flash
- switch jsWarn()  to jsDevInfo()
- keep jsWarn()/ jsError() for not implemented functions
- switch jsError() to jsExceptionHere() if helpfull
2020-07-13 17:52:38 +02:00
MaBecker
be30513914 add section storage as flash area 2020-03-18 10:47:55 +01:00
MaBecker
fb5005a3f3 fix addFlashArea() 2020-03-18 10:16:54 +01:00
Gordon Williams
624d6f2c70 Fix ESPxx build issues 2020-01-17 15:15:23 +00:00
Mike Fikes
6e634c596d
Fix I2C driver message
Fix typo: sdl->scl
2019-11-29 16:58:56 -05:00
Gordon Williams
9237f6d0ee fix ESP8266/32 build regressions 2019-11-12 16:34:40 +00:00
Gordon Williams
e230148625 improve docs making 2019-11-07 16:12:27 +00:00
Gordon Williams
8274d48c33 nRF52: Add NRF.getSecurityStatus to allow devices to detect the current state of the connection 2019-04-23 12:24:40 +01:00
Décio Luiz Gazzoni Filho
3f5aa8fc37 Fix ESP32 Serial2 and Serial3 stuck at 9600 bps. 2019-04-21 22:15:50 -03:00
Gordon Williams
b6a256fe77 nRF52: Now create exception if advertising calls fail (but ignore when in IRQ)
nRF52: Add setAdvertising({},{scannable:false}) for disabling scan response
            nRF52: Add note about connectable:false requiring >=100ms intervals
2019-04-04 19:24:37 +01:00
spyptev
bfa85429fb Change ESP32 neopixel to use all available RMT buffers
Also simplify neopixel_bits init, some debug in interrupt usage and in call with zero size buffer.
2019-02-20 02:04:06 +03:00
spyptev
c8872c98f7 Change name of neopixel_half variable to neopixel_bufpart to make next commit more well-understandable 2019-02-20 00:37:49 +03:00
Gordon Williams
e56d91b044 Added active option to NRF.setScan/findDevices/requestDevices to allow scan response packets to be requested 2019-02-11 09:35:54 +00:00
Gordon Williams
eeb9ec8dd5 nRF52: Add docs for properties that weren't documented before
nRF52: Add ability to connect to device with passkey authentication
2019-01-31 14:23:26 +00:00
wilberforce
9b3cca7f55 restore wifi settings from Storage .wificfg 2018-12-15 12:40:09 +13:00
jumjum123
d58f2f6e03 Changed assignment of data pin.
No information from Espressif about the difference.
Anyway it works with my 8*8 led matrix

 Changes to be committed:
	modified:   targets/esp32/esp32_neopixel.c
2018-12-12 13:03:35 +01:00
Gordon Williams
96a87dd77a
Merge pull request #1582 from espruino/ESP32-V3.1
esp32: fix conect issues
2018-12-10 10:24:37 +00:00
wilberforce
d0077bf498 add debug to wifi events 2018-12-08 13:44:15 +13:00
Gordon Williams
9ece84c680
Merge pull request #1579 from espruino/ESP32-V3.1
ESP32: Make wifi connect more robust
2018-12-03 08:23:22 +00:00
wilberforce
589ef6fe79 Make wifi connect more robust 2018-12-03 18:52:06 +13:00
Gordon Williams
1df02202a1
Merge pull request #1533 from espruino/ESP32-V3.1
Esp32 v3.1
2018-11-12 10:35:02 +00:00
jbgagnon
9de4b65bb6 * update micro-seconds also when update time 2018-10-25 16:07:01 +02:00
wilberforce
abc22a33aa skdconfig changes 2018-10-23 21:31:32 +13:00
jumjum123
c4006351cd Changed include to shorter path (esp_partition.c)
Changes to be committed:
	modified:   targets/esp32/main.c
2018-10-15 11:46:17 +02:00
jumjum123
dd55b3dd74 changes SET_PERI_REG_MASK to DPORT_SET_PERI_REG_MASK
and CLEAR_PERI_REG_MASK to DPORT_CLEAR_PERI_REG_MASK
older syntax has been replaced in V3.1

Changes to be committed:
	modified:   targets/esp32/esp32_neopixel.c
2018-10-15 11:40:10 +02:00
jumjum123
32358355b1 Added subdirectory in targets/esp32 with files and information around upgrade to esp-idf V3.1
Changes to be committed:
	new file:   targets/esp32/Changes_V3.1/partitions_espruino.csv
	new file:   targets/esp32/Changes_V3.1/sdkconfig
2018-10-15 11:28:00 +02:00
Gordon Williams
5d76771c11 Massive bluetooth name refactoring, potentially to help with #1445 2018-09-03 17:07:23 +01:00
Gordon Williams
66d3905968 minor refactor to make connection types more obvious 2018-07-12 17:34:21 +01:00
Gordon Williams
3583ef52cd Add options argument to NRF.connect and BluetoothDevice.gatt.connect, allowing a connection interval to be specified 2018-07-12 10:51:29 +01:00
jumjum123
c5684284ea Fixed problems around Advertising. There are still some, ....
Added patch from Rob Blanckaert
Added set Encrypton to gatts connect handler

esp32_gatts_func.h
- added a bool for connected from a client in gatts_service_inst
esp32_gatts_func.c
- added include for esp_gap_ble_api.h
- added function to check if a client is connected
- added patches from Rob Blanckaert ( https://github.com/basicer/Espruino/tree/ESP32-v3.0 ) to gatts_write_value_handler
- added esp_ble_set_encryption to gatts_connect_handler
- added handling of connected flag, see esp32_gatts_func.h
- fixed startAdvertising, started only if no client is connected
- added permissions to UART decriptor, patch from Rob Blanckaert
- set connected to false in initialisation
2018-06-15 11:22:09 +02:00
jumjum123
5dda6ae105 Added set console initialized
To get Serial1.setConsole(true) running
2018-06-10 18:32:00 +02:00
jumjum123
46eceda19c Added minHeap to ESP32.getState
This value should help to see low level of free heap
2018-06-08 15:01:30 +02:00
jumjum123
6b99663402 added buffer handling for Bluetooth serial print
esp32_gatts_func.c
- send notification with buffer, replaced gatts_sendNotification to copy character to buffer first
  send on buffer full or latest on 10msec later
bluetooth.h
- added definition GATT_MTU_SIZE_DEFAULT
- added definition BLE_NUS_MAX_DATA_LEN
2018-06-08 13:25:31 +02:00
jumjum123
9d6b6ea7b6 Added init security and implementation for jsble_xxxxx_connection
esp32_gap_func.c
- support event ESP_GAP_BLE_SEC_REQ_EVT
- restructured addAdvertisingDeviceName restructured
- added function addAdvertisingUart
- added handling of UART in bluetooth_gap_getAdvertisingData
- added function gap_init_security
esp32_gap_func.h
- added definition for gap_init_security();
bluetooth.c
- added call of gap_initSecurity in jsble_init
- added implementation for jsble_has_connection()
- added implementation for jsble_has_central_connection()
- added implementation jsble_has_simple_connection()
2018-06-08 12:40:51 +02:00
Gordon Williams
fb2c99c97d Merge branch 'master' into ESP32-v3.0 2018-06-01 14:36:10 +01:00
Gordon Williams
6ddb231172 minor refactoring to allow differing JsVar sizes to be used at boot 2018-06-01 14:35:32 +01:00
jumjum123
0054b39c00 ESP32.py
- added variables_mode in config.
build_platform_config.py
- added define for variables_mode
jsvar.h
- added jsVarsSize;  //size of jsVars for option malloc
- added support of malloc jsVars in jsvInit
jsvar.c
- added definition jsVars for variables_mode_malloc
jshardwareESP32.h
- new file with functions to set/get enable status of BLE and Wifi
jshardwareESP32.c
- new file with functions to set/get enable status of BLE and Wifi
ESP32.make
- added jshardware.c to SOURCES
main.c
- added handling for Wifi enabled
- added calculation for jsVars
- initialise jsVars based on calculation
jshardware.c
- used new API call to get Serial Number, even if Wifi is not enabled
- initialises BLE, if BLE is enabled (in NVS storage)
bluetooth.c
- check if BLE is enabled before initialising
jswrap_esp32.h
- defines functions to enable BLE and/or Wifi
jswrap_esp32.c
- wrapper for functions to enable BLE/Wifi, remove code from Flash, to avoid overflow in jsVars
- added status for BLE/Wifi to ESP32.getStatus
esp32_gap_func.c
- get mac adress even if Wifi is not enabled

 Changes to be committed:
	modified:   boards/ESP32.py
	modified:   make/family/ESP32.make
	modified:   scripts/build_platform_config.py
	modified:   src/jsvar.c
	modified:   src/jsvar.h
	modified:   targets/esp32/BLE/esp32_gap_func.c
	modified:   targets/esp32/bluetooth.c
	modified:   targets/esp32/jshardware.c
	new file:   targets/esp32/jshardwareESP32.c
	new file:   targets/esp32/jshardwareESP32.h
	modified:   targets/esp32/jswrap_esp32.c
	modified:   targets/esp32/jswrap_esp32.h
	modified:   targets/esp32/main.c
2018-06-01 12:23:00 +02:00