summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* docs/reference: Add note about multiple exceptions when heap is locked.Andrew Leech2020-06-02
|
* minimal: Make build more flexible and work as 64-bit build.Damien George2020-06-02
| | | | | | | | | | | | Changes are: - string0 is no longer built when building for host as the target, because it'll be provided by the system libc and may in some cases clash with the system one (eg on OSX). - mp_int_t/mp_uint_t are defined in terms of intptr_t/uintptr_t to support both 32-bit and 64-bit builds. - Configuration values which are the default in py/mpconfig.h are removed from mpconfigport.h to make the configuration a bit more minimal, eg as a better starting point for new ports.
* lib/utils/pyexec: Add missing MP_ERROR_TEXT when compiler disabled.Damien George2020-06-02
|
* py/modbuiltins: Fix getattr to work with class raising AttributeError.Damien George2020-06-02
| | | | Fixes issue #6089.
* stm32/Makefile: Quote libgcc path so spaces are not an issue.stinos2020-06-02
| | | | Fixes #3116.
* qemu-arm/README: Update link to toolchain.David Spickett2020-06-02
| | | | New releases have moved from launchpad to developer.arm.com.
* stm32/boards/xxx_WB55: Enable pyb.ADC and hardware SPI on WB55 boards.Damien George2020-06-02
| | | | | These features are now supported (although machine.ADC is recommended over pyb.ADC).
* stm32/dma: Add support for DMA on STM32WB, with SPI settings provided.Damien George2020-06-02
|
* stm32/machine_adc: Make setting of ADC1_COMMON->CCR clearer on STM32WB.Damien George2020-06-02
|
* stm32/adc: Add support to pyb.ADC for STM32WB MCUs.Damien George2020-06-02
|
* stm32/modmachine: Allow changing AHB and APB bus frequencies on STM32WB.Damien George2020-06-02
| | | | For now SYSCLK cannot be changed and must remain at 64MHz.
* stm32/machine_uart: Allow re-init'ing a static UART object.Damien George2020-06-01
| | | | | Just disallow changing the rxbuf which will be some static RAM (can't free it and soft-reset would lose any dynamically allocated buffer).
* stm32/machine_uart: Retain attached-to-repl setting when init'ing UART.Damien George2020-06-01
|
* extmod/vfs: Retain previous working directory if chdir fails.Damien George2020-05-29
| | | | Fixes issue #6069.
* tools/codeformat.py: Add verbose option to pass to uncrustify and black.David Lechner2020-05-29
| | | | | | | | | | This adds a new command line option `-v` to `tools/codeformat.py` to enable verbose printing of all files that are scanned. Normally `uncrustify` and `black` are called with the `-q` option so setting verbose suppresses the `-q` option and on `black` also enables the `-v` option which makes it print out all file names matching the filter similar to how `uncrustify` does by default.
* travis: For powerpc job, build both UART variants.Joel Stanley2020-05-29
| | | | | | | | The powerpc port can be built with two different UART drivers, so build both in CI. The default compiler is now powerpc64le-linux-gnu- so it does not need to be specified on the command line.
* powerpc/uart: Choose which UART to use at build time, not runtime.Joel Stanley2020-05-29
| | | | | | | | | | | | Microwatt may have firmware that places data in r3, which was used to detect microwatt vs powernv. This breaks the existing probing of the UART type in this powerpc port. Instead build only the appropriate UART into the firmware, selected by passing the option UART=potato or UART=lpc_serial to the Makefile. A future enhancement would be to parse the device tree and configure MicroPython based on the settings.
* esp32/modmachine: Fix machine.reset_cause to use IDF's esp_reset_reason.Thorsten von Eicken2020-05-29
| | | | | | | | The code previously called rtc_get_reset_reason which is a "raw" reset cause. The ESP-IDF massages that for the proper reset cause available from esp_reset_reason. Fixes issue #5134.
* esp32/machine_sdcard: Add "freq" keyword arg to SDCard constructor.cccc2020-05-28
| | | | To allow high speed access.
* tools/codeformat.py: Use -q option on uncrustify to make output quiet.David Lechner2020-05-28
| | | | | | This suppresses the Parsing: <file> as language C lines. This makes parsing run a bit faster and on CI it makes for less scrolling through logs (and black already uses the -q option).
* py/modsys: Use consistent naming pattern for module-level const objects.David Lechner2020-05-28
| | | | | This renames a few identifiers to follow the usual naming convention of mp_<module>_<name>. This makes them easier to find, e.g. when grep'ing.
* windows: Make appveyor.yml self-contained.stijn2020-05-28
| | | | | | | | Add configuration which otherwise has to be set via the UI so the file is more self-contained, and remove configuration which is not needed because it's the same as the default. The major change here is that for a while now Appveyor has been using Visual Studio 2015 by default while we still want to support 2013.
* py/ringbuf: Fix compilation with msvc.stijn2020-05-28
| | | | | Older versions do not have "inline" so fetch the definition from mpconfigport.h.
* py/modmath: Work around msvc float bugs in atan2, fmod and modf.stijn2020-05-28
| | | | | | Older implementations deal with infinity/negative zero incorrectly. This commit adds generic fixes that can be enabled by any port that needs them, along with new tests cases.
* py/py.mk: Use additional CFLAGS to compile string0.c.Damien George2020-05-27
| | | | | | | | Otherwise functions like memset might get optimised to call themselves (eg with gcc 10). And provide CFLAGS_BUILTIN so these options can be changed by a port if needed. Fixes issue #6053.
* lib/utils: Lock the scheduler when executing hard callback functions.Damien George2020-05-27
| | | | | Otherwise scheduled functions may execute during the hard callback and then fail if they try to allocate heap memory.
* travis: Set build name so it appears in the web interfaces.Joel Stanley2020-05-27
| | | | | | | The env NAME="foo" syntax doesn't appear to set the name in the Travis web interface. Instead use the syntax from the docs: https://docs.travis-ci.com/user/build-stages/#naming-your-jobs-within-build-stages
* travis: Run apt commands once, to slightly speed up the CI.Joel Stanley2020-05-27
|
* powerpc: Set better default compiler.Joel Stanley2020-05-27
| | | | Most developers use a compiler which is called powerpc64le-linux-gnu-gcc.
* powerpc: Fix Makefile rule when linking.Joel Stanley2020-05-27
| | | | | | | | | | | The linker script was included in the "$^" inputs, causing the build to fail: LINK build/firmware.elf powerpc64le-linux-gnu-ld: error: linker script file 'powerpc.lds' appears multiple times As a fix the linker script is left as a dependency of the elf, but only the object files are linked.
* mimxrt/boards: Add MIMXRT1060_EVK board.Albort Xue2020-05-27
|
* esp8266/esppwm: Fix PWM glitch when setting duty on different channel.Olivier Ortigues2020-05-27
| | | | | | | | | The PWM driver uses a double buffer for the PWM timing array, one in current use and the other one to update when changing duty parameters. The issue was that once the duty parameters were changed the updated buffer was applied immediately without synchronising to the start of the PWM period. By moving the buffer toggling/swapping to the interrupt when the cycle is done there are no more glitches.
* docs/develop: Fix module/source name in Makefile of native example.Damien George2020-05-16
|
* unix/main: Enter REPL when inspect active, even with stdin redirected.Yu-Ming Chang2020-05-16
| | | | This is how CPython behaves.
* nrf: Add openocd as a supported flasher.Jim Mussared2020-05-15
| | | | Tested with the Particle Debugger on a Xenon.
* travis: Build more boards as part of nrf job.Jim Mussared2020-05-15
| | | | | | | Specifically: - pca10040: It was already the default. - microbit: It uses nRF51, has a Cortex-M0, and has additional libraries. - pca10056: It has USB CDC.
* nrf: Update to work with nrfx v2.0.0, to match TinyUSB.Jim Mussared2020-05-15
| | | | | | Commit 6cea369b89b2223cf07ff8768e50dc39bbb770fe updated the TinyUSB submodule to a version based on nrfx v2.0.0. This commit updates the nrf port to work with the latest TinyUSB and nrfx v2.0.0.
* lib/nrfx: Upgrade to nrfx v2.0.0.Damien George2020-05-15
|
* nrf/mphalport: Remove need for "syntax unified" in mp_hal_delay_us.Damien George2020-05-15
| | | | | | | | Because it can confuse older versions of gcc. Instead use the correct instruction for Thumb vs Thumb-2 (sub vs subs) so the assembler emits the 2-byte instruction. Related to commit 1aa9ff914194824a78a8b010572ad7083c1bb4ec.
* nrf/Makefile: Don't use -fno-builtin for Cortex-M0 builds.Damien George2020-05-15
| | | | | So that error string compression is optimised correctly (it needs strcmp to be optimised away by the compiler).
* extmod/vfs_lfsx: Fix import_stat so it takes into account current dir.Damien George2020-05-15
| | | | | | | CPython semantics require searching the current directory if the import is not absolute (when "" is in sys.path). Fixes issue #6037.
* stm32/boards: Add board config for Nucleo-F412ZG development board.Thomas Roberts2020-05-15
|
* stm32: Add support for F412 MCUs.Thomas Roberts2020-05-15
|
* esp8266/boards: Allow configuring btree/FAT/LFS2 support when building.Rafael Römhild2020-05-14
| | | | | | | Prior to e0905e85a7ad2961aa9192f6130565860e531ad3 it was possible to disable btree support on build. This patch allows to configure btree support on make again and also the two new introduced options for FAT and LFS2 filesystems.
* py/nativeglue.h: Rename "setjmp" entry to "setjmp_" to avoid any clash.Damien George2020-05-14
| | | | | | Because some compilers may define setjmp to something. Fixes issue #6032.
* extmod/nimble: Make error code mapping default to MP_EIO.Thomas Friebel2020-05-11
| | | | | | | | | | Before this change, any NimBLE error that does not appear in the ble_hs_err_to_errno_table maps to return code 0, meaning success. If we miss adding an error code to the table we end up returning success in case of failure. Instead, handle the zero case explicitly and default to MP_EIO. This allows removing the now-redundant MP_EIO entries from the mapping.
* README: Change --help option to -h to match micropython executable.Hannah Suarez/hcs02020-05-11
| | | | The behaviour was changed in 83439e38fc025bda79eec0096b8cc60379757206
* extmod/modbluetooth: Add support for changing the GAP device name.Damien George2020-05-11
| | | | | | | | | | | | | | This commit allows the user to set/get the GAP device name used by service 0x1800, characteristic 0x2a00. The usage is: BLE.config(gap_name="myname") print(BLE.config("gap_name")) As part of this change the compile-time setting MICROPY_PY_BLUETOOTH_DEFAULT_NAME is renamed to MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME to emphasise its link to GAP and this new "gap_name" config value. And the default value of this for the NimBLE bindings is changed from "PYBD" to "MPY NIMBLE" to be more generic.
* stm32/README: Reorg DFU flashing instructions with addition for PYBD.Thorsten von Eicken2020-05-11
|
* esp32/modsocket: Fix getaddrinfo to raise on error.Thorsten von Eicken2020-05-09
| | | | | | | | | | This commit fixes the behaviour of socket.getaddrinfo on the ESP32 so it raises an OSError when the name resolution fails instead of returning a [] or a resolution for 0.0.0.0. Tests are added (generic and ESP32-specific) to verify behaviour consistent with CPython, modulo the different types of exceptions per MicroPython documentation.