- 18 Mar, 2020 1 commit
-
-
Damien George authored
-
- 17 Mar, 2020 2 commits
-
-
Damien George authored
Fixes UDP non-blocking recv so it returns EAGAIN instead of ETIMEDOUT. Timeout waiting for incoming data is also improved by replacing 100ms delay with poll_sockets(), as is done in other parts of this module. Fixes issue #5759.
-
Damien George authored
STATE_NEW will return HUP when polled so put active UDP sockets into a new state which is different to STATE_NEW. Fixes issue #5758.
-
- 12 Mar, 2020 1 commit
-
-
Damien George authored
Fixes issue #5753.
-
- 11 Mar, 2020 22 commits
-
-
Thomas Friebel authored
Follow up to dd0bc26e which changed the parameter list of the IRQ_SCAN_RESULT event. Adapt ble_temperature_central.py accordingly.
-
Maureen Helm authored
Adds support in the zephyr port to execute main.py if the file system is enabled and the file exists. Existing support for executing a main.py frozen module is preserved, since pyexec_file_if_exists() works just like pyexec_frozen_module() if there's no vfs.
-
Maureen Helm authored
Enables the zephyr usb device stack and mass storage class on the mimxrt1050_evk board. The mass storage class is backed by the sdhc disk access driver, so it's now possible to browse and modify the contents of the SD card from a USB host (your PC). This is in preparation to support writing a main.py script to the SD card, and then executing it after the next reset.
-
Maureen Helm authored
Adds support in the zephyr port to mount a file system if a block device (sdhc disk access or flash area) is available. The mount point is either "/sd" or "/flash" depending on the type of block device. Tested with an sdhc disk access block device and fatfs on the mimxrt1050_evk board. Tested with a flash area block device and littlefs on the reel_board.
-
Damien George authored
-
Damien George authored
So that they are skipped when running on a target that doesn't support the native emitter, eg a nanbox build.
-
Damien George authored
-
Andrew Leech authored
This commit adds micropython.heap_locked() which returns the current lock-depth of the heap, and can be used by Python code to check if the heap is locked or not. This new function is configured via MICROPY_PY_MICROPYTHON_HEAP_LOCKED and is disabled by default. This commit also changes the return value of micropython.heap_unlock() so it returns the current lock-depth as well.
-
Jim Mussared authored
-
Jim Mussared authored
This is an extremely minimal port to the NXP i.MX RT, in the style of the SAMD port It's largely based on the TinyUSB mimxrt implementation, using the NXP SDK. It currently supports the Teensy 4.0 board with a REPL over the USB-VCP interface. This commit also adds the NXP SDK submodule (also from TinyUSB) to lib/nxp_driver. Note: if you already have the tinyusb submodule initialized recursively you will need to run the following as the tinyusb sub-submodules have been rearranged (upstream): git submodule deinit lib/tinyusb rm -rf .git/modules/lib/tinyusb git submodule update --init lib/tinyusb
-
Jim Mussared authored
-
Jim Mussared authored
-
Andrew Leech authored
To match file objects. Fixes issue #5581.
-
David Lechner authored
This eliminates the need for the sizeof regex fixup by rearranging things a bit. All other bitfields already use the parentheses around expressions with sizeof, so one case is fixed by following this convention. VM_MAX_STATE_ON_STACK is the only remaining problem and it can be worked around by changing the order of the operands.
-
Tom Collins authored
The double-% was added in 11de8399 (Jun 2014) when such errors were formatted with printf. But then 55830dd9 (Dec 2018) changed mp_obj_new_exception_msg() to not format the message, as discussed in #3004. So such error strings are no longer formatted and a % is just that.
-
Damien George authored
-
Damien George authored
-
Damien George authored
This is needed for BLE.config('mac') to work on esp32.
-
Damien George authored
This commit changes the BLE _IRQ_SCAN_RESULT data from: addr_type, addr, connectable, rssi, adv_data to: addr_type, addr, adv_type, rssi, adv_data This allows _IRQ_SCAN_RESULT to handle all scan result types (not just connectable and non-connectable passive scans), and to distinguish between them using adv_type which is an integer taking values 0x00-0x04 per the BT specification. This is a breaking change to the API, albeit a very minor one: the existing connectable value was a boolean and True now becomes 0x00, False becomes 0x02. Documentation is updated and a test added. Fixes #5738.
-
Thomas Friebel authored
This fixes a crash, caused by NimBLE continuing to call the Python BLE interrupt handler after soft reboot.
-
Thomas Friebel authored
Most error handling is done via `bluetooth_handle_errno()` already. Replace the remaining few manual checks with calls to that function.
-
Jim Mussared authored
This commit ensures that the BLE stack is active before allowing operations that may otherwise crash if it's not active. It also clarifies the state better (adding the "stopping" state) and renames mp_bluetooth_is_enabled to the more self-explanatory mp_bluetooth_is_active.
-
- 10 Mar, 2020 1 commit
-
-
Damien George authored
Otherwise ets_loop_iter may be reentered. Related to issue #5714.
-
- 09 Mar, 2020 13 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
This commit adds a test runner and initial test scripts which run multiple Python/MicroPython instances (eg executables, target boards) in parallel. This is useful for testing, eg, network and Bluetooth functionality. Each test file has a set of functions called instanceX(), where X ranges from 0 up to the maximum number of instances that are needed, N-1. Then run-multitests.py will execute this script on N separate instances (eg micropython executables, or attached boards via pyboard.py) at the same time, synchronising their start in the right order, possibly passing IP address (or other address like bluetooth MAC) from the "server" instance to the "client" instances so they can connect to each other. It then runs them to completion, collects the output, and then tests against what CPython gives (or what's in a provided .py.exp file). The tests will be run using the standard unix executable for all instances by default, eg: $ ./run-multitests.py multi_net/*.py Or they can be run with a board and unix executable via: $ ./run-multitests.py --instance pyb:/dev/ttyACM0 --instance exec:micropython multi_net/*.py
-
Damien George authored
-
Damien George authored
Now all HCI specific code (eg UART vs WB55 internal messaging) is confined to modbluetooth_hci.c.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-
Damien George authored
Work done in collaboration with Jim Mussared aka @jimmo.
-