micropython远程升级_MicroPython 升级至 1.8.6

MicroPython v1.8.6版本引入了SDK 2.0,增加堆内存,支持512k设备。核心改进包括:优化内置函数,增加“slice”和“delattr”内置函数,修复序列反转等问题。同时,针对不同平台如esp8266,进行了性能提升和错误修复,如fatfs文件系统错误检查、ticks_diff功能增强等。
摘要由CSDN通过智能技术生成

v1.8.6

SP8266 port uses SDK 2.0, has more heap, has support for 512k devices

A detailed list of changes follows.

py core:

- py.mk: automatically add frozen.c to source list if FROZEN_DIR is defined

- be more specific with MP_DECLARE_CONST_FUN_OBJ macros

- specialise builtin funcs to use separate type for fixed arg count

- {modbuiltins,obj}: use MP_PYTHON_PRINTER where possible

- modbuiltins: add builtin "slice", pointing to existing slice type

- add "delattr" builtin, conditional on MICROPY_CPYTHON_COMPAT

- sequence: fix reverse slicing of lists

- fix null pointer dereference in mpz.c, fix missing va_end in warning.c

- remove asserts that are always true in emitbc.c

- fix wrong assumption that m_renew will not move if shrinking

- change config default so m_malloc0 uses memset if GC not enabled

- add MICROPY_FLOAT_CONST macro for defining float constants

- move frozen bytecode Makefile rules from ports to common mk files

- strip leading dirs from frozen mpy files, so any path can be used

extmod:

- vfs_fat_file: check fatfs f_sync() and f_close() returns for errors

- vfs_fat_file: make file.close() a no-op if file already closed

- utime_mphal: ticks_diff(): switch arg order, return signed value

- utime_mphal: add MP_THREAD_GIL_EXIT/ENTER warppers for sleep functions

- utime_mphal: implement ticks_add(), add to all maintained ports

- utime_mphal: allow ticks functions period be configurable by a port

lib:

- utils/pyhelp.c: use mp_printf() instead of printf()

- utils/pyexec: add mp_hal_set_interrupt_char() prototype

- libm: move Thumb-specific sqrtf function to separate file

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值