Daniel O'Connor
d4e182039f
docs/cmodules: Note the various ways MODULE_EXAMPLE_ENABLED can be set.
2019-04-18 11:59:43 +10:00
Léa Saviot
a6e5846ba7
extmod/modurandom: Add init method to seed the Yasmarang generator.
...
In CPython the random module is seeded differently on each import, and so
this new macro option MICROPY_PY_URANDOM_SEED_INIT_FUNC allows to implement
such a behaviour.
2019-04-16 14:54:36 +10:00
Daniel O'Connor
fd58136d6b
docs/cmodules: Fix example to globally define MODULE_EXAMPLE_ENABLED.
...
MODULE_EXAMPLE_ENABLED must be globally defined for the module to be seen
and referenced by all parts of the code.
2019-04-15 11:56:22 +10:00
Damien George
194d6b6788
stm32/timer: Correctly initialise extended break settings on F7/H7/L4.
...
Fixes issue #4693 .
2019-04-15 11:41:03 +10:00
Damien George
9ce25d7022
py/runtime: Fix mp_unpack_ex so seq can't be reclaimed by GC during use.
...
The issue described in the comment added here can be seen by forcing a
gc_collect() at the start of each call to gc_alloc().
2019-04-15 11:30:19 +10:00
Damien George
3fa06cf61e
py/objset: Remove unused forward declaration and clean up whitespace.
2019-04-15 11:14:22 +10:00
Damien George
1754c71f45
py/runtime: Optimise to not create temp float for int to power negative.
2019-04-15 11:04:59 +10:00
Damien George
673e154dfe
py/makedefs: Use io.open with utf-8 encoding when processing source.
...
In case (user) source code contains utf-8 encoded data and the default
locale is not utf-8.
See #4592 .
2019-04-12 11:34:52 +10:00
Damien George
fd112239d6
stm32/rtc: Remove non-ASCII mu-character from source code comment.
...
And fix a typo in the comment on this line.
2019-04-12 11:32:24 +10:00
Damiano Mazzella
3c9f78b048
zephyr/CMakeLists.txt: Set AR to point to the Zephyr toolchain exe.
2019-04-11 12:24:05 +10:00
Damien George
fc9f2ff0cd
stm32/rtc: Remove unused LSE detection code.
2019-04-11 12:14:21 +10:00
Damien George
46e5d6b889
stm32/rtc: Add auto-LSE-bypass detection with fallback to LSE then LSI.
...
If MICROPY_HW_RTC_USE_BYPASS is enabled the RTC startup goes as follows:
- RTC is started with LSE in bypass mode to begin with
- if that fails to start (after a given timeout) then LSE is reconfigured
in non-bypass
- if that fails to start then RTC is switched to LSI
2019-04-11 12:09:21 +10:00
Damien George
d5f0c87bb9
extmod/modlwip: Abort TCP conns that didn't close cleanly in a while.
2019-04-11 11:18:10 +10:00
Damien George
358364b45e
stm32/boards/NUCLEO_L432KC: Disable complex nos and default frozen mods.
...
To save space, since this board only hase 256k of flash.
2019-04-09 11:23:08 +10:00
Damien George
74ed06828f
tools/mpy-tool.py: Fix init of QStrWindow, and remove unused variable.
...
The qstr window size is not log-2 encoded, it's just the actual number (but
in mpy-tool.py this didn't lead to an error because the size is just used
to truncate the window so it doesn't grow arbitrarily large in memory).
Addresses issue #4635 .
2019-04-08 15:24:24 +10:00
Damien George
4831e38c7e
stm32/boards/NUCLEO_H743ZI: Add config options to support mboot.
2019-04-08 14:34:37 +10:00
Damien George
fd13ce5e60
stm32/mboot: Add support for H7 MCUs, with H743 flash layout.
2019-04-08 14:33:57 +10:00
Damien George
ae1e18a346
stm32/usbd_conf: Add support for USB HS peripheral on H7 MCUs.
2019-04-08 14:30:16 +10:00
Damien George
2c3fa4ad82
stm32/i2cslave: Add support for H7 MCUs.
2019-04-08 14:28:45 +10:00
Damien George
643d2a0e86
tools/mpy-tool.py: Adjust use of super() to make it work with Python 2.
...
Fixes the regression introduced in ea3c80a514
2019-04-08 11:21:18 +10:00
Damien George
fd523c53c3
stm32/network_wiznet5k: Automatically set MAC if device doesn't have one
2019-04-05 22:37:06 +11:00
Damien George
4f936afc44
stm32/network_wiznet5k: Add ability to set the MAC address.
2019-04-05 22:35:04 +11:00
Damien George
4410efc1e3
stm32/network_wiznet5k: Add ability to trace Ethernet TX and RX frames.
...
Via: nic.config(trace=2|4)
2019-04-05 22:33:49 +11:00
Damien George
69cb24a21d
esp32/boards/sdkconfig: Disable WDT check of idle task on CPU1.
...
With dual-core enabled it's possible that the uPy task has full utilisation
of CPU1. Fixes issue #4673 .
2019-04-05 12:25:21 +11:00
stijn
d89ce2ed1d
tests/run-tests: Ignore exception in process kill when ending repl test.
...
When running Linux on WSL, Popen.kill() can raise a ProcessLookupError if
the process does not exist anymore, which can happen here since the
previous statement already tries to close the process by sending Ctrl-D to
the running repl. This doesn't seem to be a problem on other OSes, so just
swallow the exception silently since it indicates the process has been
closed already, which after all is what we want.
2019-04-04 15:24:29 +11:00