Glenn Ruben Bakke
fd52691f02
nrf5/drivers/bluetooth: Renaming attr_write and attr_notify to attr_s_write and attr_s_notify to prepare for introduction of attribute write for gatt client.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
5d9c191a19
nrf5/modules/ubluepy: Fixing type in ubluepy_peripheral.c.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
cf0d2bb457
nrf5/modules/ubluepy: Setting peripheral role upon advertise() or connect().
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
f8c0ff6413
nrf5/drivers/bluetooth: Adding role member to peripheral object to indicate whether Peripheral object is Peripheral or Central role.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
78c0821216
nrf5/modules/ubluepy: Continue characteristic discovery until nothing more is found during connect proceedure.
2017-05-14 18:06:42 +02:00
Glenn Ruben Bakke
653f4a86d5
nrf5/drivers/bluetooth: Refactoring code to group statics for s130 and s132 into the same ifdef. Also adding two empty lines in discovery functions to make it more easy to read.
2017-05-14 18:06:42 +02:00
Glenn Ruben Bakke
e8cd010f59
nrf5/drivers/bluetooth: Updating characteristic discovery to signal whether anything was found or not.
2017-05-14 18:06:42 +02:00
Tom Collins
f06d0839bd
py/modsys: update conditionals for code referencing sys.stdout
...
Working on a build with PY_IO enabled (for PY_UJSON support) but PY_SYS_STDFILES disabled (no filesystem). There are multiple references to mp_sys_stdout_obj that should only be enabled if both PY_IO and PY_SYS_STDFILES are enabled.
2017-05-14 18:24:50 +03:00
Paul Sokolovsky
55491031be
tools/mpy_cross_all.py: Helper tool to run mpy-cross on the entire project.
2017-05-14 17:51:12 +03:00
Glenn Ruben Bakke
370c20ff6c
nrf5/modules/ubluepy: Continue primary service discovery until nothing more is found in connect proceedure.
2017-05-13 18:12:15 +02:00
Glenn Ruben Bakke
b4f96a1dc3
nrf5/drivers/bluetooth: Updating primary service discovery api to take in start handle from where to start the service discovery. Also adjusting return parameter to signal whether anything was found or not.
2017-05-13 18:12:15 +02:00
Glenn Ruben Bakke
3420843774
nrf5/modules/ubluepy: Remove duplication GAP event handler registration in peripheral.connect().
2017-05-13 16:17:03 +02:00
glennrub
4584ef4ace
Support address types ( #18 )
...
* nrf5/modules/ubluepy: Adding new enumeration of address types.
* nrf5/modules/ubluepy: Adding constants that can be used from micropython for public and random static address types.
* nrf5/modules/ubluepy: Adding support for optionally setting address type in Peripheral.connect(). Public address is used as default. Address types can be retrieved from 'constants'. Either constants.ADDR_TYPE_PUBLIC or constants.ADDR_TYPE_RANDOM_STATIC.
* nrf5/modules/ubluepy: Register central GAP event handler before issuing connect to a peripheral. Has to be done before connect() function as a connected event will be propergated upon successfull connection. The handler will set the connection handle which gets connect function out of the busy loop waiting for connection to succeed.
* nrf5/modules/ubluepy: Removing duplicate setting of GAP event handler in connect().
2017-05-13 16:12:14 +02:00
Paul Sokolovsky
0c57979ce2
zephyr/modusocket: Implement getaddrinfo().
2017-05-13 16:42:35 +03:00
Paul Sokolovsky
86c4544ef9
zephyr/modusocket: If there're no packets in recv_q, cancel waiter.
...
This solves a case when socker_read() has blocked on fifo, and then peer
closed event arrives.
2017-05-13 16:22:14 +03:00
Glenn Ruben Bakke
0865fbd92d
nrf5/modules/ubluepy: Register central GAP event handler before issuing connect to a peripheral. Has to be done before connect() function as a connected event will be propergated upon successfull connection. The handler will set the connection handle which gets connect function out of the busy loop waiting for connection to succeed.
2017-05-13 15:06:58 +02:00
Paul Sokolovsky
69f0b4ad5b
zephyr/modusocket: Switch to net_pkt_append() returning length.
...
Requires patch in review.
2017-05-13 16:05:10 +03:00
Paul Sokolovsky
39d3335606
zephyr/modusocket: Update for net_pkt refactor.
2017-05-13 15:47:47 +03:00
Paul Sokolovsky
c022c9a2f0
zephyr/modusocket: Wrap pkt_get_info() call.
...
The most important info it returns are numbers of free buffers
in different pools (rx/tx packet headers, data fragments).
2017-05-13 15:23:31 +03:00
Paul Sokolovsky
054a381d7c
tests/extmod/vfs_fat_more: Make skippable is uos is not available.
...
Fixes Zephyr tests.
2017-05-13 14:13:53 +03:00
Damien George
cda09727b4
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
2017-05-13 19:10:15 +10:00
Damien George
f95e4e7782
extmod/vfs_fat_misc: Remove dot-dirs filter since FatFS already does it.
2017-05-13 18:58:46 +10:00
Robert HH
71df60cf42
esp8266/ets_alt_task.c: Prevent spurious large increment of ticks_ms()
...
This happened when the overflow counter for ticks_ms() was interrupted
by an external hard interrupt (issue #3076 ).
2017-05-13 17:56:16 +10:00
Damien George
ec534609f6
tools/mpy-tool.py: Use MP_ROM_xxx macros to support nanbox builds.
2017-05-13 10:08:13 +10:00
Paul Sokolovsky
5383a50072
zephyr/README: Update to require Zephyr 1.8.
...
There're a lot of changes and fixes in 1.8 regarding IP stack,
incompatible with previous Zephyr versions, so supporting them
doesn't make sense.
This is the last commit which should build with Zephyr 1.7.
2017-05-12 22:05:07 +03:00
Paul Sokolovsky
d57c6564dc
zephyr/prj_qemu_x86.conf: Bump RAM size to 320K.
2017-05-12 21:58:51 +03:00
Paul Sokolovsky
50d7ed325a
zephyr/modusocket: Add SOL_SOCKET and SO_REUSEADDR constants.
2017-05-12 21:55:42 +03:00
Paul Sokolovsky
1659c0645d
zephyr/modusocket: Add dummy setsockopt() implementation.
2017-05-12 21:54:32 +03:00
Glenn Ruben Bakke
18e73d4214
nrf5/modules/ubluepy: Fixing compilation bug of wrong variable name when registering gattc event handler in ublupy peripheral connect function (central mode).
2017-05-12 20:11:30 +02:00
Paul Sokolovsky
a4e38db30d
unix: Move upip to frozen bytecode dir.
...
For x86_64 build, this saves only 128 bytes on the final executable
size, but still an improvement.
2017-05-12 18:32:25 +03:00
Paul Sokolovsky
5c312861a6
unix/Makefile: Enable frozen bytecode modules dir.
2017-05-12 18:31:22 +03:00
Paul Sokolovsky
ddf0b7dbc3
esp8266/scripts: Move initsetup & port_diag tools to modules/.
2017-05-12 17:58:50 +03:00
Paul Sokolovsky
e9308c189a
esp8266/scripts: Move drivers/modules to modules/ (frozen bytecode).
2017-05-12 17:57:23 +03:00
Paul Sokolovsky
5f7ce2a1ca
esp8266/modules/flashbdev: Reserve one sector for native code storage.
2017-05-12 16:08:54 +03:00
Paul Sokolovsky
3e05df7fd1
esp8266/modesp: flash_user_start: Use value from linker script.
...
Make esp8266_common.ld export size reserved to all code segments, and use
that in esp.flash_user_start() implementation.
2017-05-12 16:00:05 +03:00
Paul Sokolovsky
0987ad5e30
esp8266/esp8266.ld, esp8266_ota.ld: Grow main firmware size by 32KB.
...
To accommodate both system and user frozen modules.
2017-05-12 16:00:05 +03:00
Tom Collins
760aa0996f
tests/basics/lexer: Add line continuation tests for lexer.
...
Tests for an issue with line continuation failing in paste mode due to the
lexer only checking for \n in the "following" character position, before
next_char() has had a chance to convert \r and \r\n to \n.
2017-05-12 15:14:25 +10:00
Tom Collins
6f56412ec3
py/lexer: Process CR earlier to allow newlines checks on chr1.
...
Resolves an issue where lexer failed to accept CR after line continuation
character. It also simplifies the code.
2017-05-12 15:14:24 +10:00
Paul Sokolovsky
5feeba8897
examples/hwapi/hwconfig*: Use inline Signal() args where possible.
2017-05-12 01:19:13 +03:00
Glenn Ruben Bakke
96b203b729
nrf5/bluetooth: Updating makefiles with updated paths to bluetooth le components after moving files.
2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
3d503cf7a8
nrf5/bluetooth: Moving stack download script to drivers/bluetooth folder.
2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
bdaa714f85
nrf5/bluetooth: Move bluetooth driver files to drivers/bluetooth. Move bluetooth stack download script to root folder.
2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
e69e47bc24
nrf5/bluetooth: Guarding implementation against being linked in by surrounding it with BLUETOOTH_SD flag. Flag is only set if SD=<sdname> parameter is provided during make.
2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
4676e5900b
nrf5/bluetooth: Moving makefile include folder and source files of bluetooth driver, ble uart and ble module to main Makefile.
2017-05-11 19:13:20 +02:00
Glenn Ruben Bakke
d61dcf18fb
nrf5/bluetooth: Moving help_sd.h and modble.c to modules/ble.
2017-05-11 19:13:20 +02:00
Damien George
1d8c3f4cff
mpy-cross/Makefile: Override undefine any inherited variables.
...
This is a temporary hack to allow othe Makefiles to build mpy-cross
recursively.
2017-05-11 23:40:16 +10:00
Damien George
a1f254028d
py/mkrules.mk: Add dependency of .mpy files upon mpy-cross.
...
This ensures that mpy-cross is automatically built (and is up-to-date) for
ports that use frozen bytecode. It also makes sure that .mpy files are
re-built if mpy-cross is changed.
2017-05-11 23:40:16 +10:00
Glenn Ruben Bakke
b245011259
nrf5/modules/machine: bugfix after changing to MP_ROM_PTR in machine module local dict.
2017-05-11 00:08:44 +02:00
Damien George
6d221fe284
docs/library/uos: Add description of uos.ilistdir() function.
2017-05-10 12:44:21 +10:00
Damien George
d70f688f25
extmod/vfs: Use MP_S_IFDIR, MP_S_IFREG consts instead of magic numbers.
2017-05-10 12:30:34 +10:00