- 08 9月, 2020 31 次提交
-
-
由 Damien George 提交于
The mpconfigport.h file is an internal header and should only ever be included once by mpconfig.h. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
MP_BC_CALL_FUNCTION will leave the result on the Python stack, so that result must be discarded by MP_BC_POP_TOP. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Albort Xue 提交于
-
由 Jim Mussared 提交于
This allows prototyping rfcore.c improvements from Python. This was mostly written by @dpgeorge with small modifications to work after rfcore_init() by @jimmo.
-
由 Jim Mussared 提交于
Before this change there was up to a 128ms delay on incoming payloads from CPU2 as it was polled by SysTick. Now the RX IRQ immediately schedules the PendSV.
-
由 Jim Mussared 提交于
Also explain what the payload fixup code is doing.
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
This is required to allow using WS firmware newer than 1.1.1 concurrently with USB (e.g. USB VCP). It prevents CPU2 from modifying the CLK48 config on boot. Tested on WS=1.8 FUS=1.1. See AN5289 and https://github.com/micropython/micropython/issues/6316
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
- Split tables and buffers into SRAM2A/2B. - Use structs rather than word offsets to access tables. - Use FLASH_IPCCDBA register value rather than option bytes directly.
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
This allows `ble.active(1)` to fail correctly if the HCI controller is unavailable. It also avoids an infine loop in the NimBLE event handler where NimBLE doesn't correctly detect that the HCI controller is unavailable and keeps trying to reset. Furthermore, it fixes an issue where GATT service registrations were left allocated, which led to a bad realloc if the stack was activated multiple times.
-
由 Jim Mussared 提交于
MicroPython and NimBLE must be on the same core, for synchronisation of the BLE ringbuf and the MicroPython scheduler. However, in the current IDF versions (3.3 and 4.0) there are issues (see e.g. #5489) with running NimBLE on core 1. This change - pinning both tasks to core 0 - makes it possible to reliably run the BLE multitests on esp32 boards.
-
由 Jim Mussared 提交于
-
由 Andrew Leech 提交于
The 2ms used previously was not long enough and it could lose HCI sync. Also print error on tx failure to make this more obvious in the future.
-
由 Andrew Leech 提交于
-
由 Jim Mussared 提交于
Generally a controller should either have its own public address hardcoded, or loaded by the driver (e.g. cywbt43). However, for a controller that has no public address where you still want a long-term stable address, this allows you to use a static address generated by the port. Typically on STM32 this will be an LAA, but a board might override this.
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
Changes `BLE.config('mac')` to return a tuple (addr_mode, addr). Adds `BLE.config(addr_mode=...)` to set the addressing mode.
-
由 Jim Mussared 提交于
This commit adds support for using Bluetooth on the unix port via a H4 serial interface (distinct from a USB dongle), with both BTstack and NimBLE Bluetooth stacks. Note that MICROPY_PY_BLUETOOTH is now disabled for the coverage variant. Prior to this commit Bluetooth was anyway not being built on Travis because libusb was not detected. But now that bluetooth works in H4 mode it will be built, and will lead to a large decrease in coverage because Bluetooth tests cannot be run on Travis.
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
-
由 Jim Mussared 提交于
Previously the interaction between the different layers of the Bluetooth stack was different on each port and each stack. This commit defines common interfaces between them and implements them for cyw43, btstack, nimble, stm32, unix.
-
由 Jim Mussared 提交于
And prefix the debug message with "btstack:" or "nimble:", depending on the context. Also use correct format specifier for %zu.
-
由 Jim Mussared 提交于
So that the IRQ handler does not need to be traced by the GC.
-
由 Jim Mussared 提交于
This will allow the HCI UART to use a non-heap mp_irq_obj_t, which avoids needing to make a root pointer for it.
-
- 04 9月, 2020 2 次提交
-
-
由 Damien George 提交于
mp_irq_init() is useful when the IRQ object is allocated by the caller. The mp_irq_methods_t.init method is not used anywhere so has been removed. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
It's a useful core feature. Signed-off-by: NDamien George <damien@micropython.org>
-
- 03 9月, 2020 2 次提交
-
-
由 Damien George 提交于
Thanks to Jeff Epler for the idea. Signed-off-by: NDamien George <damien@micropython.org>
-
由 stijn 提交于
This is consistent with the other 'micro' modules and allows implementing additional features in Python via e.g. micropython-lib's sys. Note this is a breaking change (not backwards compatible) for ports which do not enable weak links, as "import sys" must now be replaced with "import usys".
-
- 02 9月, 2020 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 01 9月, 2020 4 次提交
-
-
由 Damien George 提交于
Verifies mtime timestamps on files match the value returned by time.time(). Also update vfs_fat_ramdisk.py so it doesn't check FAT timestamp of the root, because that may change across runs/ports. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
By setting MICROPY_EPOCH_IS_1970 a port can opt to use 1970/1/1 as the Epoch for timestamps returned by stat(). And this setting is enabled on the unix and windows ports because that's what they use. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
On 32-bit builds these stat fields will overflow a small-int, so use mp_obj_new_int_from_uint to construct the int object. Signed-off-by: NDamien George <damien@micropython.org>
-