Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
353 commits
Select commit Hold shift + click to select a range
7057283
stm32/mboot: Add support for using mboot with WB MCUs.
dpgeorge Jun 18, 2020
6f40e6e
stm32/boards: Add build-time option for NUCLEO_WB55 to use mboot.
dpgeorge Jun 18, 2020
13ad1a4
travis: In stm32 job, build mboot for NUCLEO_WB55.
dpgeorge Jun 18, 2020
81a7293
stm32/mboot: Set VTOR on start up to ensure it has the correct value.
dpgeorge Jun 23, 2020
b4dc4c5
stm32/mboot: Use additional CFLAGS to compile string0.c.
dpgeorge Jun 23, 2020
456a3ab
py/obj.h: Add public mp_obj_is_dict_or_ordereddict() helper macro.
dpgeorge Jun 21, 2020
7dd480a
extmod/moductypes: Use mp_obj_is_dict_or_ordereddict to simplify code.
dpgeorge Jun 21, 2020
457fdf6
py/objtype: Support passing in an OrderedDict to type() as the locals.
dpgeorge Jun 21, 2020
76faeed
tools/makemanifest.py: Support freezing a subdirectory recursively.
dpgeorge Jun 23, 2020
0c77668
extmod/vfs_lfs: Fix littlefs bindings to build in nan-box mode.
dpgeorge Jun 25, 2020
eb9850e
stm32/mpconfigport.h: Enable PY_IO_FILEIO when any VFS is enabled.
dpgeorge Jun 25, 2020
c5af321
stm32/timer: Support TIM1 on WB MCUs.
dpgeorge Jun 25, 2020
717b507
stm32/boards: Enable LFS2 on PYBD_SF3 and PYBD_SF6.
dpgeorge Jun 25, 2020
763bd44
stm32/mboot: Don't search for firmware on FS, just attempt to open it.
dpgeorge Jun 23, 2020
390f329
stm32/mboot: Decouple stream, filesystem and top-level loading code.
dpgeorge Jun 23, 2020
67fd58b
stm32/mboot: Add support for littlefs.
dpgeorge Jun 23, 2020
0a8ce0d
stm32/mboot: Update README to describe WB and littlefs support.
dpgeorge Jun 26, 2020
6475cdb
travis: Build mboot for PYBV10 with LFS2 enabled in stm32 job.
dpgeorge Jun 26, 2020
137df81
stm32/i2cslave: Pass I2C instance to callbacks to support multi I2Cs.
dpgeorge Jun 26, 2020
aa26fe6
py/asm: Add funcs/macros to emit machine code for logical-shift-right.
dpgeorge Jun 25, 2020
b3b8706
py/asm: Add condition codes for signed comparisons.
dpgeorge Jun 26, 2020
41fa8b5
py/emitnative: Implement binary operations for viper uint operands.
dpgeorge Jun 26, 2020
9f911d8
py/objcomplex: Add mp_obj_get_complex_maybe for use in complex bin-op.
dpgeorge Jun 22, 2020
e4fcd21
stm32/usbd_cdc_interface: Remove full==size-1 limitation on tx ringbuf.
pi-anl Jun 26, 2020
048a1d6
stm32/timer: Properly initialise timer deadtime/brk on WB MCUs.
dpgeorge Jun 29, 2020
4d6f60d
tools/pydfu.py: Respect longer timeouts requested by DFU device/mboot.
pi-anl Mar 5, 2020
8bbaa20
stm32/mboot: Implement DFU mass erase.
pi-anl Mar 5, 2020
4000681
stm32/flash: Update flash_get_sector_info to return -1 on invalid addr.
pi-anl Jun 30, 2020
65a7e00
stm32/mboot: Add DFU logic to respond to DFU_GETSTATE request.
dpgeorge Jun 30, 2020
cb9aafb
docs/library: Clarify that the arg to esp.deepsleep is in microseconds.
victorhook Jun 28, 2020
b572aa5
docs/esp32: Add info about PWM duty cycle range to esp32 quickref.
spacemanspiff2007 Jun 25, 2020
9d5edb3
lib/utils: Protect all of mpirq.c with MICROPY_ENABLE_SCHEDULER.
dpgeorge Jun 14, 2020
f84145b
zephyr: Implement machine.Pin.irq() for setting callbacks on pin change.
dpgeorge Jun 14, 2020
41b7734
zephyr/make-minimal: Disable FAT and LFS2 options to make it build.
dpgeorge Jun 14, 2020
d06ae1d
py/obj.h: Make existing MP_TYPE_FLAG_xxx macros sequential.
dpgeorge Jun 30, 2020
332d833
py: Rework mp_convert_member_lookup to properly handle built-ins.
dpgeorge Jun 27, 2020
95ec0de
stm32/mboot: Remove the use of timeout in DFU_GETSTATUS.
pi-anl Jul 1, 2020
494bcad
stm32/mboot: Disable polling mode by default and use IRQ mode instead.
pi-anl Jul 1, 2020
07f181a
Revert "tools/pydfu.py: Respect longer timeouts requested by DFU dev..."
pi-anl Jul 1, 2020
27abac9
unix: Make manifest selection match other ports.
jimmo Jun 9, 2020
4050281
unix: Enable uasyncio on dev variant.
jimmo Jun 9, 2020
9dfb4ae
nrf/bluetooth/ble_uart: Fix implicit declaration of function.
glennrub Jun 25, 2020
fc1f22a
nrf/bluetooth: Handle data length update request.
glennrub Jun 25, 2020
ab0c14d
nrf/bluetooth/ble_uart: Add mp_hal_stdio_poll function.
glennrub Jun 25, 2020
5996bf7
nrf/bluetooth/ble_uart: Fix random advertisement name.
glennrub Jun 25, 2020
f22f7b2
nrf/bluetooth/ble_uart: Swap end character on cooked strings.
glennrub Jun 25, 2020
c2317a3
nrf/Makefile: Disable ROM text compression when compiling for debug.
glennrub Jun 27, 2020
15574cd
nrf: Add support for time.ticks_xxx functions using RTC1.
hoihu Jul 2, 2020
59ed3bd
nrf: Enable nrf tick support on all boards by default.
hoihu Jul 2, 2020
f5dd46b
unix/variants: Enable VFS and all supported filesystems on dev variant.
dpgeorge Jul 2, 2020
8594389
stm32/fdcan: Use the right FIFO to calc element address in can_receive.
iabdalkader Jun 30, 2020
63b2eb2
stm32/fdcan: Use FDCAN_RXFxS_FxFL instead of hard-coded value.
iabdalkader Jun 30, 2020
d07073f
stm32/fdcan: Support maximum timeout of HAL_MAX_DELAY in can_receive.
iabdalkader Jun 30, 2020
c299cc9
stm32/pyb_can: Handle timeout arg for FDCAN in pyb_can_send.
iabdalkader Jun 30, 2020
b6146ca
extmod/nimble: Fix attr NULL ptr dereference in ble_gatt_attr_read_cb.
friebel Jul 5, 2020
f743bd3
nrf/boards: Add initial support for Actinius Icarus.
alextsam Jun 23, 2020
b776fe6
nrf/nrfx_config: Disable RTC2 for nRF9160 targets.
glennrub Jul 9, 2020
95d0d1c
nrf/boards: Enable RTCounter machine module for nrf9160 boards.
glennrub Jul 9, 2020
411e115
travis: Install newer toolchain for nrf job.
glennrub Jul 10, 2020
d9e8edc
travis: Add pca10090 build to nrf job.
glennrub Jul 10, 2020
486cb6d
nrf: Add board definition for nRF52840-MDK-USB-Dongle.
pi-mst May 18, 2020
342800c
travis: Change nrf pca10056 board to build with s140 SoftDevice.
glennrub Jul 16, 2020
5d0be97
unix: Make the MICROPY_xxx_ATOMIC_SECTION mutex recursive.
jimmo Jun 17, 2020
07aec46
examples/bluetooth: In ble_advertising.py, skip appearance if not set.
jimmo Jun 17, 2020
e152d0c
extmod/btstack: Schedule notify/indicate/write ops for bg completion.
jimmo Jun 16, 2020
89a95b7
examples/bluetooth: Add simple UART demo with central and peripheral.
jimmo Jun 17, 2020
b769884
docs/library: Add gatts_indicate() doc to ubluetooth.rst.
jimmo Jul 17, 2020
43ceada
extmod/modbluetooth: Ignore unused self_in in ble_gatts_indicate.
jimmo Jul 20, 2020
3c7ca20
extmod/modbluetooth: Fix so it builds in peripheral-only mode.
jimmo Jul 20, 2020
9d823a5
extmod/modbluetooth: Add event for "indicate acknowledgement".
jimmo Jul 20, 2020
c7f7c02
docs/library: For ubluetooth, add docs for _IRQ_GATTS_INDICATE_DONE.
jimmo Jul 20, 2020
9aa2140
extmod/modussl: Improve exception error messages.
tve Mar 27, 2020
98e5834
lib/libc: Add implementation of strncpy.
tve Jul 2, 2020
3e758ef
lib/mbedtls_errors: Add code to patch mbedtls for shortened error strs.
tve May 29, 2020
5264478
extmod/modussl_mbedtls: Integrate shorter error strings.
tve Jul 2, 2020
7dbef53
esp32/esp32_rmt: Properly fix looping behaviour of RMT.
jonathanhogg Jun 26, 2020
5f0e9d1
docs/library: Update documentation of esp32's RMT.
jonathanhogg Jul 3, 2020
76fefad
esp32/network_lan: Add support for IP101 PHY.
kennethryerson Apr 20, 2020
f80b1d8
lib/stm32lib: Update library for H7 v1.6.0 and WB v1.6.0.
dpgeorge Jul 19, 2020
895b1db
tests/basics: Split out memoryview slice-assign tests to separate file.
dpgeorge Jul 16, 2020
a853fff
py/obj.h: Fix mp_seq_replace_slice_no_grow to use memmove not memcpy.
dpgeorge Jul 16, 2020
27767aa
lib/libm_dbl: Add round.c source code.
v923z Feb 15, 2020
d9b7261
lib/libc: Fix string0's implementation of strncpy.
dpgeorge Jul 22, 2020
0a79e18
nrf: Split mpconfigport.h into multiple files.
glennrub Jul 19, 2020
caaaa2b
nrf: Enable more features for all targets.
glennrub Jul 19, 2020
cf9be20
docs/library: Update pyb.SPI init method to add descr about "ti" arg.
hlovatt Jul 2, 2020
4a7c273
docs/library: Update pyb.Timer to add missing args and defaults to init.
hlovatt Jul 2, 2020
47289f4
docs/library: Update pyb.UART to correct pyboard UART availability.
hlovatt Jul 3, 2020
fe7d479
docs/esp32: Fix machine.Timer quickref to specify HW timers.
nevercast Jul 19, 2020
37e1b5c
py/compile: Don't await __aiter__ special method in async-for.
jonathanhogg Jul 21, 2020
fd2ff86
stm32/usbdev: Fix calculation of SCSI LUN size with multiple LUNs.
dpgeorge Jul 22, 2020
441460d
extmod/uasyncio: Add StreamReader.readexactly(n) method.
dpgeorge Jul 25, 2020
952de5c
tools/makemanifest.py: Use errno.EEXIST instead of number 17.
dpgeorge Jul 26, 2020
0c0cef9
tests: Move .mpy import tests from import/ to micropython/ dir.
dpgeorge Jul 26, 2020
8da40ba
tests/micropython: Improve .mpy import tests to run on more targets.
dpgeorge Jul 26, 2020
9883d8e
py/persistentcode: Maintain root ptr list of imported native .mpy code.
dpgeorge Jul 27, 2020
b731bd0
tools/makemanifest.py: Print nicely formatted errors from mpy-cross.
dpgeorge Aug 8, 2020
60f5b94
extmod/vfs_reader: Fix mp_reader_new_file to open file in "rb" mode.
dpgeorge Aug 8, 2020
ac94e06
zephyr: Include storage/flash_map.h unconditionally.
MaureenHelm Aug 7, 2020
17689a7
travis: Add zephyr build to CI.
MaureenHelm Jul 27, 2020
e76c746
docs: Change `\*` to `*` in argument lists.
agniutkarsh Jul 11, 2020
8727c4e
stm32/pin_defs_stm32: Fix pin printing to show IN mode correctly.
davehylands Aug 11, 2020
60cf2c0
tools/pyboard.py: Replace eval() of received data with alternative.
mbuesch Aug 12, 2020
492cf34
tools/mpy-tool.py: Fix offset of line number info.
mmilata Aug 13, 2020
448319a
tools/makemanifest.py: Use os.makedirs to make path for generated files.
dpgeorge Aug 21, 2020
5f9b105
py/runtime: Fix builtin compile() in "single" mode so it prints exprs.
dpgeorge Aug 21, 2020
20948a3
tests/extmod: Add test for uasyncio.sleep of a negative time.
dpgeorge Aug 20, 2020
55c76ea
extmod/uasyncio: Truncate negative sleeps to 0.
dpgeorge Aug 20, 2020
9289935
unix/fatfs_port: Implement get_fattime.
dpgeorge Jul 28, 2020
badd351
lib/timeutils: Add helper functions to deal with nanosecs since 1970.
dpgeorge Aug 1, 2020
ee50a6e
py/mphal.h: Introduce mp_hal_time_ns and implement on various ports.
dpgeorge Aug 1, 2020
2acc087
extmod/vfs_lfs: Add mtime support to littlefs files.
dpgeorge Jul 28, 2020
3d9a7ed
extmod/btstack: Implement GAP scan duration_ms parameter.
jimmo Aug 14, 2020
0bc2c1c
extmod/modbluetooth: Fix race between READ_REQUEST and other IRQs.
jimmo Aug 17, 2020
a80a146
extmod/bluetooth: Support active scanning in BLE.gap_scan().
pi-anl Aug 14, 2020
5fb276d
tests/extmod: Make uasyncio_fair test more reliable by adjusting sleeps.
dpgeorge Aug 26, 2020
91c5d16
nrf/Makefile: Improve user C modules support.
rcolistete Aug 15, 2020
405893a
tests/run-tests: Use absolute paths where possible.
stinos Apr 8, 2020
0c3f9d5
tests/run-tests: Make test output directory configurable.
stinos Apr 7, 2020
cef678b
extmod/machine_i2c: Fix buffer overrun if 'addrsize' is bigger than 32.
mbuesch Aug 23, 2020
a93a378
zephyr/README: Update required Zephyr version and mention new features.
dpgeorge Aug 28, 2020
338b12d
LICENSE,docs: Update copyright year range to include 2020.
dpgeorge Aug 29, 2020
40d174a
stm32/powerctrl.h: Include stdbool.h to get definition of bool.
dpgeorge Aug 29, 2020
0c7354a
tests: Split out complex reverse-op tests to separate test file.
dpgeorge Aug 29, 2020
0665907
all: Update Python code to conform to latest black formatting.
dpgeorge Aug 29, 2020
d1995e5
extmod/modlwip: Fix error return for TCP recv when not connected.
dpgeorge Aug 30, 2020
836bca9
unix/variants: Fix fast and freedos variants so they build again.
dpgeorge Aug 30, 2020
40153b8
esp32/mphalport: Fix mp_hal_time_ns offset.
dpgeorge Aug 30, 2020
c70e599
extmod/vfs: Support larger integer range in VFS stat time fields.
dpgeorge Aug 31, 2020
0385b21
unix/modos: Support larger integer range in uos.stat fields.
dpgeorge Aug 31, 2020
2a72e90
extmod/vfs: Add option to use 1970 as Epoch.
dpgeorge Aug 31, 2020
a909c21
unix/fatfs_port: Fix month offset in timestamp calculation.
dpgeorge Aug 31, 2020
0e6ef40
tests/extmod: Add tests for verifying FAT and littlefs mtime values.
dpgeorge Aug 31, 2020
b0932fc
all: Bump version to 1.13.
dpgeorge Sep 2, 2020
40ad8f1
all: Rename "sys" module to "usys".
stinos Jun 18, 2020
38959ed
lib/libm: Reduce size of static two_over_pi array.
dpgeorge Sep 3, 2020
5e69926
stm32/mpconfigport.h: Enable MICROPY_PY_REVERSE_SPECIAL_METHODS.
dpgeorge Sep 3, 2020
3ff7079
lib/utils/mpirq: Add mp_irq_init func, and clean up unused init method.
dpgeorge Sep 4, 2020
2310998
stm32/uart: Allow static IRQ handler registration.
jimmo Aug 14, 2020
5ff265a
stm32/modbluetooth_hci: Use a static mp_irq_obj_t for BT HCI UART IRQ.
jimmo Aug 14, 2020
e46aac2
extmod/modbluetooth: Rename logging macro to be just DEBUG_printf.
jimmo Aug 14, 2020
ed14435
extmod/modbluetooth: Refactor stack/hci/driver/port bindings.
jimmo Aug 14, 2020
5b08676
extmod/nimble: Set struct alignment correctly on 64-bit arch.
jimmo Aug 17, 2020
f3f31ac
extmod/nimble: Make nimble_malloc work with allocated size.
jimmo Aug 14, 2020
aa18ab7
extmod/nimble: Implement NimBLE mutex.
jimmo Aug 14, 2020
feed69a
unix/Makefile: Always enable -f*-sections regardless of DEBUG setting.
jimmo Aug 14, 2020
1b1b229
unix: Implement BLE H4 HCI UART for btstack/nimble.
jimmo Aug 14, 2020
c4af714
extmod/modbluetooth: Implement configuration of address modes.
jimmo Aug 14, 2020
26b6680
tests/multi_bluetooth: Update to new config('mac') behaviour.
jimmo Aug 14, 2020
67d8139
docs/library/ubluetooth.rst: Document BLE address modes.
jimmo Aug 14, 2020
52a2ce4
extmod/modbluetooth: Allow using mp_hal_get_mac as a static address.
jimmo Aug 17, 2020
8b00aea
extmod/btstack: Add btstack support for _IRQ_GATTS_READ_REQUEST.
pi-anl Aug 15, 2020
6077c63
stm32/mpbthciport: Increase char timeout of BT HCI UART.
pi-anl Aug 15, 2020
99a29ec
extmod/btstack: Detect HCI UART init failure.
jimmo Aug 18, 2020
311b851
esp32: Pin MicroPython and NimBLE tasks to core 0.
jimmo Aug 19, 2020
126f972
extmod/nimble: Add timeout for HCI sync on startup.
jimmo Aug 19, 2020
b27edb8
stm32/make-stmconst.py: Add support for WB55 header files.
jimmo Aug 20, 2020
30e8162
stm32/rfcore: Update rfcore.c to match how ST examples work.
jimmo Aug 20, 2020
9c9cc7a
stm32/boards/USBDONGLE_WB55: Add USE_MBOOT support.
jimmo Sep 8, 2020
0f28020
stm32/powerctrlboot: Acquire HSEM5 on STM32WB during SystemClock_Config.
jimmo Aug 28, 2020
5eda362
tests/multi_bluetooth: Make ble_gap_connect robust against event timing.
jimmo Aug 31, 2020
01f2d77
stm32/rfcore: Fix length matching in HCI parser.
jimmo Aug 31, 2020
8b4ebd7
stm32/rfcore: Refactor some helper funcs, and remove some magic numbers.
jimmo Sep 1, 2020
e2390d5
stm32/rfcore: Enable RX IRQ on BLE IPCC channel for better performance.
jimmo Sep 1, 2020
632e3b7
stm32/boards/NUCLEO_WB55: Add Python helper code for rfcore.
jimmo Aug 28, 2020
5f50568
mimxrt/boards: Add MIMXRT1064_EVK board.
Albort12138 Apr 7, 2020
4f2fe34
tools/mpy-tool.py: Fix merge of multiple mpy files to POP_TOP correctly.
dpgeorge Sep 4, 2020
75344af
nrf/main: Make mp_builtin_open signature match that in py/builtin.h.
dpgeorge Sep 8, 2020
27e1173
nrf: Remove unnecessary includes of mpconfigport.h and its header guard.
dpgeorge Sep 8, 2020
547688c
stm32/usb: Don't nul pyb_hid_report_desc if MICROPY_HW_USB_HID disabled.
dpgeorge Sep 10, 2020
709398d
stm32/rtc.h: Include py/obj.h to make header self contained.
dpgeorge Sep 10, 2020
8d5a40c
py/objfloat: Fix handling of negative float to power of nan.
dpgeorge Sep 4, 2020
2e54d9d
py: Fix handling of NaN in certain pow implementations.
stinos Sep 8, 2020
373b400
extmod/modussl_axtls: Reduce size of code that makes exception.
dpgeorge Sep 3, 2020
4b35aa5
tools: Write msvc-compatible frozen content.
stinos Sep 10, 2020
2a9ea69
windows/msvc: Support freezing modules.
stinos Sep 10, 2020
5b94c61
windows/Makefile: Support freezing modules.
stinos Sep 10, 2020
70bec41
windows: Show test failures in the Appveyor builds.
stinos Sep 10, 2020
50efce8
esp32/mpconfigport.h: Remove duplicate uhashlib registration.
jimmo Sep 10, 2020
85f2b23
py/showbc: Pass in an mp_print_t struct to all bytecode-print functions.
dpgeorge Sep 11, 2020
acdb060
py/parse: Pass in an mp_print_t to mp_parse_node_print.
dpgeorge Sep 11, 2020
b31cb21
stm32/servo: Fix angle and speed methods to work again with -ve args.
dpgeorge Sep 12, 2020
504522b
extmod/modbluetooth: Fix handling of optional data/uuid args.
jimmo Sep 11, 2020
6a6a5f9
extmod/modbluetooth: Make BLE.irq() method positional only.
jimmo Sep 11, 2020
19faf55
docs/library/ubluetooth.rst: Clarify position/kw arguments.
jimmo Sep 11, 2020
5be3bfc
extmod/modbluetooth: Print UUIDs correctly.
jimmo Sep 15, 2020
c200759
docs/library/ubluetooth.rst: Clarify peripheral/central vs server/client
jimmo Sep 11, 2020
fe642ce
tests/multi_bluetooth: Update UUID format in .exp files.
jimmo Sep 18, 2020
f271b96
docs/library/ubluetooth.rst: Add docs for MTU API.
jimmo Sep 11, 2020
857e2c8
extmod/modbluetooth: Implement MTU.
jimmo Sep 11, 2020
06dda48
tests/run-multitests.py: Show test/truth diff.
jimmo Sep 14, 2020
3086d35
tests/multi_bluetooth/ble_mtu.py: Add multitest for BLE MTU.
jimmo Sep 14, 2020
5c503de
travis: Install setuptools for black code formatting.
dpgeorge Sep 16, 2020
52d6eeb
esp32/boards/sdkconfig.base: Set default IDF log level to ERROR.
jimmo Sep 10, 2020
ecb36d2
esp32/modnetwork: Re-enable PPP support for IDF-SDK >=v4.
Sep 16, 2020
b287580
esp8266: Remove release-specific manifest, disable osdebug by default.
dpgeorge Sep 11, 2020
bd7af61
ports: Add utime.gmtime() function.
dpgeorge Sep 13, 2020
8f20cdc
all: Rename absolute time-based functions to include "epoch".
dpgeorge Sep 14, 2020
9d1983f
py/dynruntime.h: Add mp_import_* and mp_load/store_*.
jimmo Sep 16, 2020
8af9796
stm32/led: Support PWM output without TIM3.
Tweako Sep 16, 2020
c410a86
tests/basics: Enable == and != special-method tests now that they work.
dpgeorge Sep 17, 2020
42342fa
tests/basics: Add test for MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS ops.
dpgeorge Sep 17, 2020
3e16763
stm32/rfcore: Fix FUS layout and size of ipcc_device_info_table_t.
dpgeorge Sep 22, 2020
71adf50
extmod/vfs: Fix lookup of entry in root dir so it fails correctly.
dpgeorge Sep 22, 2020
bada8c9
windows: Update build instructions in README.
stinos Sep 22, 2020
ca01784
py/objstr: Make bytes(bytes_obj) return bytes_obj.
iyassou Sep 23, 2020
50e34f9
py/objarray.h: Add mp_obj_memoryview_init() helper function.
dpgeorge Sep 23, 2020
81f2162
extmod/modbluetooth: Change module-owned bytes objects to memoryview.
dpgeorge Sep 23, 2020
c8ade2b
docs/develop: Add notes on prerequisite tools for building native .mpy.
dpgeorge Sep 23, 2020
9123b67
tests/run-tests: Use -BS flags when running CPython.
dpgeorge Sep 24, 2020
0fd0eb0
examples/bluetooth: Update to use positional-only args to irq().
jimmo Sep 24, 2020
319437d
extmod/modure: Allow \\ in re.sub replacements.
pi-anl Sep 25, 2020
ce49be4
zephyr: Replace zephyr integer types with C99 types.
MaureenHelm Sep 12, 2020
f842e32
zephyr: Const-ify struct device instance pointers.
MaureenHelm Sep 12, 2020
c2a7aac
travis: Update zephyr build to v2.4.0.
MaureenHelm Sep 12, 2020
997ec9e
zephyr: Update build instructions to v2.4.0.
MaureenHelm Sep 28, 2020
ee7568c
docs/reference/packages.rst: Fix typo, remove duplicate "port".
dlech Sep 25, 2020
c711c00
py/makeversionhdr.py: Match only git tags which look like versions.
mikewadsten Sep 22, 2020
c35deb2
extmod/machine_i2c: Rename type to SoftI2C and add custom print method.
dpgeorge Sep 16, 2020
aaed338
extmod/machine_i2c: Remove "id" arg in SoftI2C constructor.
dpgeorge Sep 16, 2020
9e0533b
extmod/machine_spi: Remove "id" arg in SoftSPI constructor.
dpgeorge Sep 16, 2020
39d50d1
ports: Add SoftI2C and SoftSPI to machine module where appropriate.
dpgeorge Sep 16, 2020
71f3ade
ports: Support legacy soft I2C/SPI construction via id=-1 arg.
dpgeorge Sep 25, 2020
98182a9
docs: Update I2C and SPI docs to add reference to SoftI2C and SoftSPI.
dpgeorge Sep 29, 2020
905a18a
unix,windows: Implement mp_hal_time_ns using gettimeofday.
dpgeorge Sep 24, 2020
d4b61b0
extmod/utime_mphal: Add generic utime.time_ns() function.
dpgeorge Sep 24, 2020
843dcd4
py/parse: Expose rule-name printing as MICROPY_DEBUG_PARSE_RULE_NAME.
dpgeorge Sep 30, 2020
817b80a
unix/variants: Enable MICROPY_DEBUG_PARSE_RULE_NAME on coverage build.
dpgeorge Sep 30, 2020
0fff2e0
stm32/Makefile: Allow boards to extend SRC_C, SRC_O and OBJ variables.
dpgeorge Oct 2, 2020
1dc6435
esp32: Use path relative to root for netutils/timeutils headers.
dpgeorge Sep 23, 2020
7497d89
stm32/sdio: Don't change any DMA2 settings on H7 MCUs.
iabdalkader Oct 2, 2020
9855b9c
stm32/sdcard: Fix H7 build when using SDMMC2.
iabdalkader Oct 2, 2020
7c76a2d
stm32/rfcore: Add Python API for basic rfcore operations.
jimmo Oct 1, 2020
222ec1a
stm32/boards/NUCLEO_WB55: Add standalone WB55 FUS/WS firmware updater.
jimmo Sep 29, 2020
fa12bfc
stm32/rfcore: Update to support WS=1.9.0.0.4.
jimmo Oct 9, 2020
880875b
py/objdict: Add mp_const_empty_dict_obj, use it for mp_const_empty_map.
jimmo Oct 9, 2020
b137d06
py/objtype: Handle __dict__ attribute when type has no locals.
jimmo Aug 4, 2020
520bb88
stm32/boards/NUCLEO_WB55/rfcore_firmware.py: Fix flash unlock.
jimmo Oct 15, 2020
dfb63b5
stm32/boards/NUCLEO_WB55/rfcore_firmware.py: Fix bad variable name.
jimmo Oct 15, 2020
893f755
stm32/boards/NUCLEO_WB55/rfcore_firmware.py: Increase GET_STATE timeout.
jimmo Oct 15, 2020
18518e2
ports: Use correct in/out endpoint size in TUD_CDC_DESCRIPTOR.
dpgeorge Oct 13, 2020
56e0932
tools/upip.py: Support explicit port number in host.
Oct 6, 2020
3bc0ecb
docs/library/btree.rst: Correct method typo: __detitem__ to __delitem__.
hlovatt Oct 9, 2020
23f9439
docs/library/machine.rst: Correct minor typo: timout to timeout.
hlovatt Oct 9, 2020
cf6845b
docs/library/machine.Signal.rst: Correct typo: usecases to use cases.
hlovatt Oct 9, 2020
4842060
docs/library/machine.Timer.rst: Add mention of constructor arguments.
hlovatt Oct 9, 2020
32c9917
unix/mpconfigport.h: Enable MICROPY_PY_DELATTR_SETATTR.
andrewleech Sep 10, 2020
97108fc
esp32/mpconfigport.h: Enable MICROPY_PY_DELATTR_SETATTR.
andrewleech Oct 20, 2020
f68ac64
Merge remote-tracking branch 'upstream/master' into upstream_update
arlucio Oct 21, 2020
396e5d4
Add mbedtls support
arlucio Oct 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: micropython
18 changes: 18 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build docs

on:
pull_request:
paths:
- docs/**

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- name: Install Python packages
run: pip install Sphinx
- name: Build docs
run: make -C docs/ html
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ build-*/

# Test failure outputs
######################
tests/*.exp
tests/*.out
tests/results/*

# Python cache files
######################
Expand Down
109 changes: 69 additions & 40 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,52 @@ jobs:
- stage: test
os: linux
dist: bionic
env: NAME="code formatting"
name: "code formatting"
before_install:
- sudo apt-add-repository --yes --update ppa:pybricks/ppa
install:
- sudo apt-get install uncrustify python3-pip
- uncrustify --version
- pip3 install --user setuptools
- pip3 install --user black
- black --version
script:
- tools/codeformat.py
- git diff --exit-code

# zephyr port
- stage: test
name: "zephyr port build"
services:
- docker
before_install:
- docker pull zephyrprojectrtos/ci:v0.11.8
- >
docker run --name zephyr-ci -d -it
-v "$(pwd)":/micropython
-e ZEPHYR_SDK_INSTALL_DIR=/opt/sdk/zephyr-sdk-0.11.3
-e ZEPHYR_TOOLCHAIN_VARIANT=zephyr
-w /micropython/ports/zephyr
zephyrprojectrtos/ci:v0.11.8
- docker ps -a
install:
- docker exec zephyr-ci west init --mr v2.4.0 /zephyrproject
- docker exec -w /zephyrproject zephyr-ci west update
- docker exec -w /zephyrproject zephyr-ci west zephyr-export
script:
- docker exec zephyr-ci bash -c "make clean; ./make-minimal ${MAKEOPTS}"
- docker exec zephyr-ci bash -c "make clean; ./make-minimal ${MAKEOPTS} BOARD=frdm_k64f"
- docker exec zephyr-ci bash -c "make clean; make ${MAKEOPTS}"
- docker exec zephyr-ci bash -c "make clean; make ${MAKEOPTS} BOARD=frdm_k64f"
- docker exec zephyr-ci bash -c "make clean; make ${MAKEOPTS} BOARD=mimxrt1050_evk"
- docker exec zephyr-ci bash -c "make clean; make ${MAKEOPTS} BOARD=reel_board"

# unix port on OSX (first in list because the build VM takes a long time to start)
- stage: test
os: osx
osx_image: xcode11.3
name: "unix port build with clang on OSX"
env:
- NAME="unix port build with clang on OSX"
- PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
script:
- make ${MAKEOPTS} -C mpy-cross
Expand All @@ -59,13 +87,12 @@ jobs:

# stm32 port
- stage: test
env: NAME="stm32 port build"
name: "stm32 port build"
install:
# need newer gcc version for Cortex-M7 support
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
- sudo apt-get update -qq || true
- sudo apt-get install gcc-arm-embedded
- sudo apt-get install libnewlib-arm-none-eabi
- sudo apt-get install gcc-arm-embedded libnewlib-arm-none-eabi
- arm-none-eabi-gcc --version
script:
- make ${MAKEOPTS} -C mpy-cross
Expand All @@ -79,27 +106,29 @@ jobs:
- make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_L073RZ
- make ${MAKEOPTS} -C ports/stm32 BOARD=STM32L476DISC
- make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_WB55
- make ${MAKEOPTS} -C ports/stm32/mboot BOARD=PYBV10 CFLAGS_EXTRA='-DMBOOT_FSLOAD=1 -DMBOOT_VFS_LFS2=1'
- make ${MAKEOPTS} -C ports/stm32/mboot BOARD=PYBD_SF6
- make ${MAKEOPTS} -C ports/stm32/mboot BOARD=NUCLEO_WB55

# qemu-arm port
- stage: test
dist: bionic # needed for more recent version of qemu-system-arm with mps2-an385 target
env: NAME="qemu-arm port build and tests"
name: "qemu-arm port build and tests"
install:
- sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install libnewlib-arm-none-eabi
- sudo apt-get install qemu-system
- sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi qemu-system
- arm-none-eabi-gcc --version
- qemu-system-arm --version
script:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/qemu-arm CFLAGS_EXTRA=-DMP_ENDIANNESS_BIG=1
- make ${MAKEOPTS} -C ports/qemu-arm clean
- make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test test
after_failure:
- grep --text "FAIL" ports/qemu-arm/build/console.out

# unix coverage
- stage: test
env: NAME="unix coverage build and tests"
name: "unix coverage build and tests"
install:
- sudo apt-get install python3-pip
- sudo pip install cpp-coveralls
Expand Down Expand Up @@ -134,7 +163,7 @@ jobs:

# unix coverage 32-bit
- stage: test
env: NAME="unix coverage 32-bit build and tests"
name: "unix coverage 32-bit build and tests"
install:
- sudo apt-get install gcc-multilib libffi-dev:i386
- sudo apt-get install python3-pip
Expand Down Expand Up @@ -166,7 +195,7 @@ jobs:

# standard unix port
- stage: test
env: NAME="unix port build and tests"
name: "unix port build and tests"
script:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix submodules
Expand All @@ -179,7 +208,7 @@ jobs:

# unix nanbox/float (and using Python 2 to check it can run the build scripts)
- stage: test
env: NAME="unix nanbox/float port build and tests"
name: "unix nanbox/float port build and tests"
install:
- sudo apt-get install gcc-multilib libffi-dev:i386
script:
Expand All @@ -196,7 +225,7 @@ jobs:

# unix stackless/float with clang
- stage: test
env: NAME="unix stackless/float port build and tests with clang"
name: "unix stackless/float port build and tests with clang"
install:
- sudo apt-get install clang
script:
Expand All @@ -212,7 +241,7 @@ jobs:

# unix with sys.settrace
- stage: test
env: NAME="unix port with sys.settrace build and tests"
name: "unix port with sys.settrace build and tests"
script:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix MICROPY_PY_BTREE=0 MICROPY_PY_FFI=0 MICROPY_PY_USSL=0 CFLAGS_EXTRA="-DMICROPY_PY_SYS_SETTRACE=1" test || travis_terminate 1
Expand All @@ -223,7 +252,7 @@ jobs:

# minimal unix port with tests
- stage: test
env: NAME="minimal unix port build and tests"
name: "minimal unix port build and tests"
script:
- make ${MAKEOPTS} -C ports/unix VARIANT=minimal
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython-minimal ./run-tests -e exception_chain -e self_type_check -e subclass_native_init -d basics)
Expand All @@ -232,7 +261,7 @@ jobs:

# windows port via mingw
- stage: test
env: NAME="windows port build via mingw"
name: "windows port build via mingw"
install:
- sudo apt-get install gcc-mingw-w64
script:
Expand All @@ -241,7 +270,7 @@ jobs:

# esp32 w/ESP-IDFv3 port
- stage: test
env: NAME="esp32 ESP-IDFv3 port build"
name: "esp32 ESP-IDFv3 port build"
install:
- sudo apt-get install python3-pip
- sudo pip3 install 'pyparsing<2.4'
Expand All @@ -258,7 +287,7 @@ jobs:

# esp32 w/ESP-IDFv4 port
- stage: test
env: NAME="esp32 ESP-IDFv4 port build"
name: "esp32 ESP-IDFv4 port build"
install:
- sudo apt-get install python3-pip
- sudo pip3 install 'pyparsing<2.4'
Expand All @@ -275,7 +304,7 @@ jobs:

# esp8266 port
- stage: test
env: NAME="esp8266 port build"
name: "esp8266 port build"
install:
- wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz
- zcat xtensa-lx106-elf-standalone.tar.gz | tar x
Expand All @@ -289,24 +318,27 @@ jobs:

# nrf port
- stage: test
env: NAME="nrf port build"
name: "nrf port build"
install:
- sudo apt-get install gcc-arm-none-eabi
# need newer gcc version for Cortex-M33 support
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
- sudo apt-get update -qq || true
- sudo apt-get install gcc-arm-embedded
- sudo apt-get install libnewlib-arm-none-eabi
- arm-none-eabi-gcc --version
script:
- ports/nrf/drivers/bluetooth/download_ble_stack.sh s140_nrf52_6_1_1
- make ${MAKEOPTS} -C ports/nrf submodules
- make ${MAKEOPTS} -C ports/nrf BOARD=pca10040
- make ${MAKEOPTS} -C ports/nrf BOARD=microbit
- make ${MAKEOPTS} -C ports/nrf BOARD=pca10056
- make ${MAKEOPTS} -C ports/nrf BOARD=pca10056 SD=s140
- make ${MAKEOPTS} -C ports/nrf BOARD=pca10090

# bare-arm and minimal ports, with size-diff check
- stage: test
env: NAME="bare-arm and minimal ports build and size-diff check"
name: "bare-arm and minimal ports build and size-diff check"
install:
- sudo apt-get install gcc-multilib libffi-dev:i386
- sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install libnewlib-arm-none-eabi
- sudo apt-get install gcc-multilib libffi-dev:i386 gcc-arm-none-eabi libnewlib-arm-none-eabi
- gcc --version
- arm-none-eabi-gcc --version
script:
Expand All @@ -330,38 +362,35 @@ jobs:

# cc3200 port
- stage: test
env: NAME="cc3200 port build"
name: "cc3200 port build"
install:
- sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install libnewlib-arm-none-eabi
- sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi
script:
- make ${MAKEOPTS} -C ports/cc3200 BTARGET=application BTYPE=release
- make ${MAKEOPTS} -C ports/cc3200 BTARGET=bootloader BTYPE=release

# samd port
- stage: test
env: NAME="samd port build"
name: "samd port build"
install:
- sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install libnewlib-arm-none-eabi
- sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi
script:
- make ${MAKEOPTS} -C ports/samd submodules
- make ${MAKEOPTS} -C ports/samd

# teensy port
- stage: test
env: NAME="teensy port build"
name: "teensy port build"
install:
- sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install libnewlib-arm-none-eabi
- sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi
script:
- make ${MAKEOPTS} -C ports/teensy

# powerpc port
- stage: test
env: NAME="powerpc port build"
name: "powerpc port build"
install:
- sudo apt-get install gcc-powerpc64le-linux-gnu
- sudo apt-get install libc6-dev-ppc64el-cross
- sudo apt-get install gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross
script:
- make ${MAKEOPTS} -C ports/powerpc CROSS_COMPILE=powerpc64le-linux-gnu-
- make ${MAKEOPTS} -C ports/powerpc UART=potato
- make ${MAKEOPTS} -C ports/powerpc UART=lpc_serial
16 changes: 11 additions & 5 deletions CODECONVENTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ change beyond 5 lines would likely require such detailed description.
To get good practical examples of good commits and their messages, browse
the `git log` of the project.

MicroPython doesn't require explicit sign-off for patches ("Signed-off-by"
lines and similar). Instead, the commit message, and your name and email
address on it construes your sign-off of the following:
When committing you are encouraged to sign-off your commit by adding
"Signed-off-by" lines and similar, eg using "git commit -s". If you don't
explicitly sign-off in this way then the commit message, which includes your
name and email address in the "Author" line, implies your sign-off. In either
case, of explicit or implicit sign-off, you are certifying and signing off
against the following:

* That you wrote the change yourself, or took it from a project with
a compatible license (in the latter case the commit message, and possibly
Expand All @@ -43,8 +46,11 @@ address on it construes your sign-off of the following:
copyright for your changes (for smaller changes, the commit message
conveys your copyright; if you make significant changes to a particular
source module, you're welcome to add your name to the file header).
* Your signature for all of the above, which is the 'Author' line in
the commit message, and which should include your full real name and
* Your contribution including commit message will be publicly and
indefinitely available for anyone to access, including redistribution
under the terms of the project's license.
* Your signature for all of the above, which is the "Signed-off-by" line
or the "Author" line in the commit message, includes your full real name and
a valid and active email address by which you can be contacted in the
foreseeable future.

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ make sure that you are acquainted with Contributor Guidelines:

https://github.com/micropython/micropython/wiki/ContributorGuidelines

and Code Conventions:
as well as the Code Conventions, which includes details of how to commit:

https://github.com/micropython/micropython/blob/master/CODECONVENTIONS.md
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2019 Damien P. George
Copyright (c) 2013-2020 Damien P. George

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line.
PYTHON = python3
SPHINXOPTS =
SPHINXOPTS = -W --keep-going
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build/$(MICROPY_PORT)
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@

# General information about the project.
project = 'MicroPython'
copyright = '2014-2019, Damien P. George, Paul Sokolovsky, and contributors'
copyright = '2014-2020, Damien P. George, Paul Sokolovsky, and contributors'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags"
# breakdown, so use the same version identifier for both to avoid confusion.
version = release = '1.12'
version = release = '1.13'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Loading