195 Commits

Author SHA1 Message Date
Gordon Williams
088049e5ec reduce op queue size. 0 resets when you disconnect BLE, but 1 seems fine 2016-03-04 16:11:37 +00:00
Gordon Williams
e74608989b Merge branch 'dev_dfu_ota' of https://github.com/mjdietzx/Espruino into mjdietzx-dev_dfu_ota
Conflicts:
	libs/bluetooth/jswrap_bluetooth.c
	targets/nrf5x/jshardware.c
2016-03-04 13:35:56 +00:00
Gordon Williams
5dd5d901d1 replace NewWithFlags with jsvNewXXX - saves a few bytes by killing repetition 2016-03-04 12:54:18 +00:00
Gordon Williams
b57e842e2a nRF52 ADC - but can't test at the moment because of issues flashing nRF52 2016-03-04 10:15:51 +00:00
mjdietzx
420d22ae6e Although I get warned these RAM settings are incorrect, Espruino doesn't run when I use the 'idea' settings 2016-02-12 00:55:03 -08:00
mjdietzx
963db711da Correct linker ram, dont use lfclk ext crystal, increase adv interval back 2016-02-12 00:23:03 -08:00
mjdietzx
9a4aaaa33b dont use app_context for now because I dont understand how allocating flash for this works right now. can still bond but will lose bond when restating the device 2016-02-10 07:03:39 -08:00
mjdietzx
042646929f Comment out ADC stuff so nRF52 compiles. DFU working for nRF52 2016-02-10 03:04:16 -08:00
mjdietzx
f7de33d219 Update linkers for newest sdk release/softdevices 2016-02-09 04:28:30 -08:00
mjdietzx
3a9dda7b0b Workign on DFU service. 2016-02-08 06:52:10 -08:00
mjdietzx
903919feaf DFU service is implemented and will restart device in bootloader mode when written. 2016-02-08 06:24:14 -08:00
mjdietzx
c2508ada8d Add safe shutdown functionality for when DFU service resets the device in bootloader mode 2016-02-08 06:17:25 -08:00
mjdietzx
b222fcf6cc Enable bonding in BLE connection. tested and working. 2016-02-08 06:02:34 -08:00
Gordon Williams (u36)
f47370b5be tidying up warnings, and add ability to scan for nearby devices 2016-02-04 14:18:45 +00:00
Gordon Williams (u36)
a0725a0f5a check RAM start address, tweak it, increase available memory on nRF boards 2016-01-28 11:02:02 +00:00
François Beaufort
1ee4fe24ce Reduce Advertising Interval to 750ms 2016-01-26 10:42:40 +01:00
Michael Dietz
ac63a0409e remove stub returns for adc stuff. 2016-01-15 12:50:20 +01:00
Michael Dietz
41bd399970 Fix coding syle for jswrap functions in jswrap_bluetooth.c 2016-01-14 16:08:15 +01:00
Michael Dietz
c3d2ce3833 merged changes from upstream espruino 2016-01-14 13:36:10 +01:00
Michael Dietz
ac88073f63 prevent merge conflict 2016-01-14 13:28:56 +01:00
Gordon Williams
f78194fe6b restart advertising after disconnection 2016-01-14 11:56:52 +00:00
Michael Dietz
38f756cdb9 touched up ble lib for nRF51 and nrf52. seems to be working for both 2016-01-14 10:16:16 +01:00
Michael Dietz
9229a86e7d Compiling and printing the welcome espruino message but espruino ide not receiving typed characters 2016-01-14 08:38:09 +01:00
Gordon Williams
cea26e5a0a minor tweak to stop crash on BT disconnect 2016-01-12 14:34:16 +00:00
Gordon Williams
6382e881b7 Changes to improve BLE console on micro:bit 2016-01-12 14:20:02 +00:00
Gordon Williams
1cfedbcbf7 start of moving some build options out of the Makefile - this now ensures that the correct modules get put into the JSON anyway 2015-12-22 12:51:25 +00:00
Gordon Williams
5cfe8fab30 fix advertising, add docs 2015-12-01 17:59:19 +00:00
Gordon Williams
3cf83ca3d1 more tidying. Added analog input, always keep us in advertising mode 2015-12-01 17:52:53 +00:00
Gordon Williams
81738d59d7 added ability to change advertising data from JS 2015-11-30 17:56:47 +00:00
Gordon Williams
53ca92f1db BLE tidyup - remove advertising code, we'll do it with Espruino if we care 2015-11-30 17:21:36 +00:00
Gordon Williams
46e9ac0830 use espruino-specific error handler 2015-11-30 16:49:39 +00:00
Gordon Williams
0f37ba6426 fix microbit hang after 180 sec 2015-11-30 16:03:13 +00:00
Gordon Williams
707a14b7a5 Fix RTC on nRF with bluetooth enabled 2015-11-20 14:44:02 +00:00
Gordon Williams
23e71b2411 small tweaks to tidy up 2015-11-19 15:19:37 +00:00
Gordon Williams
b5aa747596 don't auto-add newline to rx data 2015-11-02 13:15:18 +00:00
Gordon Williams (u36)
d2b51ab411 target 16 and 32k devices
swap Bluetoth functions to NRF
Add Bluetooth as a proper serial device
Add auto-swap to bluetooth when connected
2015-10-29 17:15:01 +00:00
Gordon Williams (u36)
9362edb33c hacks for TinyBLE board. No USART, but BLE 2015-10-26 17:32:28 +00:00
Gordon Williams (u36)
30c0941d19 add bluetooth console, try and remove dependence on board 2015-10-26 14:23:13 +00:00
Gordon Williams
38266b4889 allowed Serial pins and baud to be specified, fixed BLE send 2015-10-21 16:36:02 +01:00
Gordon Williams
71fb3f0843 tweaks needed so docs for the website can be compiled again 2015-10-08 16:31:35 +01:00
Michael Dietz
fd6495fe65 microbit working. commands cna be sent over ble now 2015-09-23 17:35:02 +02:00
Michael Dietz
d99807f97c ble interface now workig. use the Bluetooth class and call enable_com to
start programming espruino in hjavascript from ble
2015-09-23 16:23:19 +02:00
Michael Dietz
6b8f97dff5 Added support for nRF51, got bluetooth stuff working on nrf52
needed to add s110 header files (need to find out if nrf51 can only use
s110 and not s132) made the correct linker file for nrf51 and now flash
gets over flowed (softdevice is around 80kb). need to figure this out.,

everything else sehould work but cnat test nrf51 yet
2015-09-20 14:50:44 +02:00
Michael Dietz
43e37d6938 bluetooth class working! 2015-09-19 17:42:06 +02:00
mjdietzx
8dd9665de2 adding bluetooth lbirary 2015-09-19 17:23:25 +02:00