micropython中文社区 socket通讯_MicroPython 2020年7月更新

该更新涵盖了MicroPython在2020年7月的改进,包括Zephyr项目的修改,实现machine.Pin.irq()以设置引脚变化回调,改进ESP32的PWM范围说明,以及对nRF52840-MDK-USB-Dongle等板的支持。此外,还修复了ble_uart模块的多个问题,增强了socket通讯能力,并在文档中增加了关于GATTS_INDICATE_DONE事件的说明。
摘要由CSDN通过智能技术生成

zephyr/make-minimal: Disable FAT and LFS2 options to make it build.

zephyr: Implement machine.Pin.irq() for setting callbacks on pin change.

lib/utils: Protect all of mpirq.c with MICROPY_ENABLE_SCHEDULER.

docs/esp32: Add info about PWM duty cycle range to esp32 quickref.

docs/library: Clarify that the arg to esp.deepsleep is in microseconds.

stm32/mboot: Add DFU logic to respond to DFU_GETSTATE request.

stm32/flash: Update flash_get_sector_info to return -1 on invalid addr.

stm32/mboot: Implement DFU mass erase.

tools/pydfu.py: Respect longer timeouts requested by DFU device/mboot.

stm32/timer: Properly initialise timer deadtime/brk on WB MCUs.

stm32/usbd_cdc_interface: Remove full==size-1 limitation on tx ringbuf.

nrf/Makefile: Disable ROM text compression when compiling for debug.

nrf/bluetooth/ble_uart: Swap end character on cooked strings.

nrf/bluetooth/ble_uart: Fix random advertisement name.

nrf/bluetooth/ble_uart: Add mp_hal_stdio_poll function.

nrf/bluetooth: Handle data length update request.

nrf/bluetooth/ble_uart: Fix implicit declaration of function.

unix: Enable uasyncio on dev variant.

unix: Make manifest selection match other ports.

Revert "tools/pydfu.py: Respect longer timeouts requested by DFU dev..."

stm32/mboot: Disable polling mode by default and use IRQ mode instead.

stm32/mboot: Remove the use of timeout in DFU_GETSTATUS.

py: Rework mp_convert_member_lookup to properly handle built-ins.

py/obj.h: Make existing MP_TYPE_FLAG_xxx macros sequential.

nrf/boards: Add initial support for Actinius Icarus.

extmod/nimble: Fix attr NULL ptr dereference in ble_gatt_attr_read_cb.

stm32/pyb_can: Handle timeout arg for FDCAN in pyb_can_send.

stm32/fdcan: Support maximum timeout of HAL_MAX_DELAY in can_receive.

stm32/fdcan: Use FDCAN_RXFxS_FxFL instead of hard-coded value.

stm32/fdcan: Use the right FIFO to calc element address in can_receive.

unix/variants: Enable VFS and all supported filesystems on dev variant.

nrf: Enable nrf tick support on all boards by default.

nrf: Add support for time.ticks_xxx functions using RTC1.

ravis: Change nrf pca10056 board to build with s140 SoftDevice.

nrf: Add board definition for nRF52840-MDK-USB-Dongle.

travis: Add pca10090 build to nrf job.

travis: Install newer toolchain for nrf job.

nrf/boards: Enable RTCounter machine module for nrf9160 boards.

nrf/nrfx_config: Disable RTC2 for nRF9160 targets.

docs/library: Add gatts_indicate() doc to ubluetooth.rst.

examples/bluetooth: Add simple UART demo with central and peripheral.

extmod/btstack: Schedule notify/indicate/write ops for bg completion.

examples/bluetooth: In ble_advertising.py, skip appearance if not set.

unix: Make the MICROPY_xxx_ATOMIC_SECTION mutex recursive.

lib/libm_dbl: Add round.c source code.

py/obj.h: Fix mp_seq_replace_slice_no_grow to use memmove not memcpy.

tests/basics: Split out memoryview slice-assign tests to separate file.

lib/stm32lib: Update library for H7 v1.6.0 and WB v1.6.0.

esp32/network_lan: Add support for IP101 PHY.

docs/library: Update documentation of esp32's RMT.

esp32/esp32_rmt: Properly fix looping behaviour of RMT.

extmod/modussl_mbedtls: Integrate shorter error strings.

lib/mbedtls_errors: Add code to patch mbedtls for shortened error strs.

lib/libc: Add implementation of strncpy.

extmod/modussl: Improve exception error messages.

docs/library: For ubluetooth, add docs for _IRQ_GATTS_INDICATE_DONE.

extmod/modbluetooth: Add event for "indicate acknowledgement".

extmod/modbluetooth: Fix so it builds in peripheral-only mode.

extmod/modbluetooth: Ignore unused self_in in ble_gatts_indicate.

extmod/uasyncio: Add StreamReader.readexactly(n) method.

stm32/usbdev: Fix calculation of SCSI LUN size with multiple LUNs.

py/compile: Don't await __aiter__ special method in async-for.

docs/esp32: Fix machine.Timer quickref to specify HW timers.

docs/library: Update pyb.UART to correct pyboard UART availability.

docs/library: Update pyb.Timer to add missing args and defaults to init.

docs/library: Update pyb.SPI init method to add descr about "ti" arg.

nrf: Enable more features for all targets.

nrf: Split mpconfigport.h into multiple files.

lib/libc: Fix string0's implementation of strncpy.

tests/micropython: Improve .mpy import tests to run on more targets.

tests: Move .mpy import tests from import/ to micropython/ dir.

tools/makemanifest.py: Use errno.EEXIST instead of number 17.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值