Dave Hylands
fedab995ee
stmhal: Set STM32F7DISC CPU Frequency to 216 MHz
...
This set the CPU frequency to 216 MHz (the max) and
leaves the USB Frequency at 48 MHz.
These settings were copied from one of the HAL examples.
2016-09-04 18:14:41 +10:00
Damien George
2d8740a4d1
tests/extmod: Add a test for framebuf module, tested by coverage build.
2016-09-04 16:40:40 +10:00
Damien George
47899a1ab8
extmod/modframebuf: Include font from stmhal directory explicitly.
...
So that users of framebuf don't need to have stmhal directory in their
path. (Eventually the font can be moved elsewhere.)
2016-09-04 16:39:28 +10:00
Chris Packham
8c6856d2e7
py/emitglue.c: provide mp_raw_code_load_file for any unix architecture
...
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz >
2016-09-04 16:17:46 +10:00
Paul Sokolovsky
015774a04f
esp8266/modmachinewdt: Add .deinit() method.
2016-09-03 20:45:11 +03:00
Paul Sokolovsky
4a33677c97
esp8266/esp8266.ld: Move modmachinewdt to FlashROM.
2016-09-03 20:44:24 +03:00
Damien George
76c366df56
stmhal: Add machine.WDT class.
...
Usage:
import machine
wdt = machine.WDT(0, 5000) # 5 second timeout
wdt.feed()
Thanks to Moritz for the initial implementation.
2016-09-04 00:12:48 +10:00
Paul Sokolovsky
f7c4611523
extmod/moduzlib: Use mperrno.h for error constants.
2016-09-03 00:34:57 +03:00
Paul Sokolovsky
fafd587514
tests/extmod: Add test for uzlib.DecompIO.
2016-09-03 00:20:30 +03:00
Paul Sokolovsky
a6864a13c7
extmod/moduzlib: Implement zlib stream decompressor class, DecompIO.
2016-09-03 00:19:35 +03:00
Damien George
c51c883cc8
tools/mpy-tool.py: Support freezing of complex numbers.
2016-09-03 00:19:02 +10:00
Radomir Dopieralski
41ec22632d
extmod/modframebuf: Fix fill and scroll when height not divisible by 8.
...
There was a bug in `framebuf1_fill` function, that makes it leave a few
lines unfilled at the bottom if the height is not divisible by 8.
A similar bug is fixed in the scroll method.
2016-09-02 23:58:34 +10:00
Damien George
b6bdf18deb
tools/mpy-tool.py: Compute the hash value for str/bytes objects.
...
This makes it more efficient at runtime to hash str/bytes objects.
2016-09-02 15:10:45 +10:00
Damien George
b4790afdaf
tools/mpy-tool.py: Store qstr config values in global config object.
...
Makes it easier to access them without passing around another dict of the
config values.
2016-09-02 15:09:21 +10:00
Damien George
58f3861358
tests/unix/extra_coverage: Add test for str/bytes with invalid hash.
2016-09-02 15:07:42 +10:00
Damien George
5f3bda422a
py: If str/bytes hash is 0 then explicitly compute it.
2016-09-02 14:49:50 +10:00
Damien George
f127bef3e4
py/makeqstrdata.py: Compute the qstr hash from bytes, not characters.
2016-09-02 14:32:47 +10:00
Delio Brignoli
f98bb2ddcb
py/mpprint: Fail an assertion with unsupported format specifiers.
...
Arguments of an unknown type cannot be skipped and continuing to parse a
format string after encountering an unknown format specifier leads to
undefined behaviour. This patch helps to find use of unsupported formats.
2016-09-01 18:09:44 +10:00
Radomir Dopieralski
ce1c786297
drivers/sdcard: Port the SDCard driver to new machine API.
...
With backwards compatibility for pyboard.
2016-09-01 17:44:07 +10:00
Damien George
49406b0ac6
stmhal/spi: Support new machine SPI methods in legacy SPI object.
2016-09-01 16:40:35 +10:00
Damien George
9b64d1966b
stmhal/spi: Factor out SPI transfer code to a single function.
2016-09-01 16:40:32 +10:00
Damien George
3be8b688c0
esp8266/modpybhspi: Simplify HSPI driver by using 1 function for xfers.
2016-09-01 16:40:12 +10:00
Damien George
5863e15a23
esp8266/modpybspi: Use generic SPI helper methods to implement SPI.
2016-09-01 16:39:42 +10:00
Damien George
0823c1baf8
extmod: Add machine_spi with generic SPI C-protocol and helper methods.
...
The idea is that all ports can use these helper methods and only need to
provide initialisation of the SPI bus, as well as a single transfer
function. The coding pattern follows the stream protocol and helper
methods.
2016-09-01 15:07:20 +10:00
Damien George
9c04ef2a67
unix,stmhal,esp8266: When find'ing frozen files don't use extra slash.
...
This extra forward slash for the starting-point directory is unnecessary
and leads to additional slashes on Max OS X which mean that the frozen
files cannot be imported.
Fixes #2374 .
2016-08-31 15:12:57 +10:00