- 15 May, 2019 1 commit
-
-
Damien George authored
The user can now select their own package index by either passing the "-i" command line option, or setting the upip.index_urls variable (before doing an install). The https://micropython.org/pi package index hosts packages from micropython-lib and will be searched first when installing a package. If a package is not found here then it will fallback to PyPI.
-
- 14 May, 2019 4 commits
-
-
Damien George authored
-
stijn authored
This allows figuring out the number of bytes in the memoryview object as len(memview) * memview.itemsize. The feature is enabled via MICROPY_PY_BUILTINS_MEMORYVIEW_ITEMSIZE and is disabled by default.
-
Damien George authored
Follow up to commit 34942d0a
-
Damien George authored
Fixes issue #4780.
-
- 13 May, 2019 4 commits
-
-
iabdalkader authored
-
Damien George authored
-
Damien George authored
-
Henrik Vendelbo authored
-
- 10 May, 2019 2 commits
-
-
Nicko van Someren authored
-
Damien George authored
Can now handle up to about 298 days maximum for millisecond periods. Fixes issue #4664.
-
- 09 May, 2019 4 commits
-
-
Damien George authored
Macro identifiers with a leading underscore are reserved.
-
Damien George authored
-
Damien George authored
Fixes issue #4527.
-
Andrew Leech authored
-
- 08 May, 2019 2 commits
-
-
Elad Namdar authored
The original code called setsockopt(SO_RCVTIMEO/SO_SNDTIMEO) with NULL timeout structure argument, which is an illegal usage of that function. The old code also didn't validate the return value of setsockopt, missing the bug completely.
-
Damien George authored
Before this change, if the USB was reconnected it was possible that some characters in the TX buffer were retransmitted because tx_buf_ptr_out and tx_buf_ptr_out_shadow were reset while tx_buf_ptr_in wasn't. That behaviour is fixed here by retaining the TX buffer state across reconnects. Fixes issue #4761.
-
- 07 May, 2019 4 commits
-
-
Damien George authored
The new function factory_reset_make_files() populates the given filesystem with the default factory files. It is defined with weak linkage so it can be overridden by a board. This commit also brings some minor user-facing changes: - boot.py is now no longer created unconditionally if it doesn't exist, it is now only created when the filesystem is formatted and the other files are populated (so, before, if the user deleted boot.py it would be recreated at next boot; now it won't be). - pybcdc.inf and README.txt are only created if the board has USB, because they only really make sense if the filesystem is exposed via USB.
-
Damien George authored
It's more common to need non-blocking behaviour when reading from a UART, rather than having a large timeout like 1000ms (the original behaviour). With a large timeout it's 1) likely that the function will read forever if characters keep trickling it; or 2) the function will unnecessarily wait when characters come sporadically, eg at a REPL prompt.
-
Damien George authored
Prints something like: MicroPython v1.10-304-g8031b7a2 on 2019-05-02; mpy-cross emitting mpy v4
-
Mike Causer authored
-
- 06 May, 2019 3 commits
-
-
Jun Wu authored
Prior to this commit, building the unix port with `DEBUG=1` and `-finstrument-functions` the compilation would fail with an error like "control reaches end of non-void function". This change fixes this by removing the problematic "if (0)" branches. Not all branches affect compilation, but they are all removed for consistency.
-
Yonatan Goldschmidt authored
-
Yonatan Goldschmidt authored
Selectable at compile time via MICROPY_PY_UCRYPTOLIB_CTR. Disabled by default.
-
- 03 May, 2019 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Variables with type bool now act more like an int, and there is proper casting to/from Python objects.
-
- 02 May, 2019 5 commits
-
-
Nguyen Hoan Hoang authored
- IBK-BLYST-NANO: Breakout board - IDK-BLYST-NANO: DevKit board with builtin IDAP-M CMSIS-DAP Debug JTAG, RGB led - BLUEIO-TAG-EVIM: Sensor tag board (environmental sensor (T, H, P, Air quality) + 9 axis motion sensor) Also, the LED module has been updated to support individual base level configuration of each LED. If set, this will be used instead of the common configuration, MICROPY_HW_LED_PULLUP. The new configuration, MICROPY_HW_LEDX_LEVEL, where X is the LED number can be used to set the base level of the specific LED.
-
Chris Mason authored
The alternate function pin allocations are different to other NUCLEO-144 boards. This is because the STM32F413 has a very high peripheral count: 10x UART, 5x SPI, 3x I2C, 3x CAN. The pinout was chosen to expose all these devices on separate pins except CAN3 which shares a pin with UART1 and SPI1 which shares pins with DAC.
-
Chris Mason authored
Includes: - Support for CAN3. - Support for UART9 and UART10. - stm32f413xg.ld and stm32f413xh.ld linker scripts. - stm32f413_af.csv alternate function mapping. - startup_stm32f413xx.s because F413 has different interrupt vector table. - Memory configuration with: 240K filesystem, 240K heap, 16K stack.
-
Damien George authored
-
Damien George authored
This patch makes pllvalues.py generate two tables: one for when HSI is used and one for when HSE is used. The correct table is then selected at compile time via the existing MICROPY_HW_CLK_USE_HSI.
-
- 01 May, 2019 7 commits
-
-
Damien George authored
-
Damien George authored
With this change, @micropython.asm_thumb functions will work on standard ARM processors (that are in ARM state by default), in scripts and precompiled .mpy files. Addresses issue #4675.
-
stijn authored
When building with link time optimization enabled it is possible both gc_collect() and gc_collect_regs_and_stack() get inlined into gc_alloc() which can result in the regs variable being pushed on the stack earlier than some of the registers. Depending on the calling convention, those registers might however contain pointers to blocks which have just been allocated in the caller of gc_alloc(). Then those pointers end up higher on the stack than regs, aren't marked by gc_collect_root() and hence get sweeped, even though they're still in use. As reported in #4652 this happened for in 32-bit msvc release builds: mp_lexer_new() does two consecutive allocations and the latter triggered a gc_collect() which would sweep the memory of the first allocation again.
-
Damien George authored
This allows the UART to buffer at least 256 bytes (taking into account the extra byte needed by the ring buffer, and word alignment).
-
Damien George authored
-
Damien George authored
Otherwise mp_interrupt_char will have a value of zero on start up (because it's in the BSS) and a KeyboardInterrupt may be raised during start up. For example this can occur if there is a UART attached to the REPL which sends spurious null bytes when the device turns on.
-
Andrew Leech authored
So that boot.py and/or main.py can be frozen (either as STR or MPY) in the same way that other scripts are frozen. Frozen scripts have preference to scripts in the VFS.
-
- 30 Apr, 2019 1 commit
-
-
Paul Sokolovsky authored
Now that setblocking() is implemented in modussl_axtls, it calls into the underlying stream object, and io.BytesIO doesn't have setblocking().
-