Tom Soulanille
20f40c3229
tests: Remove over-specification of startup banner
2015-08-08 12:37:36 +01:00
stijn
dbfba6a20e
tests: Fix exceptions when running cmdline tests on windows
...
- subprocess.check_output can only handle strings on windows, not bytes,
so convert the arguments as such
- the pty module is for posix systems only so skip the tests needing it
in case it is not available
2015-08-08 12:35:27 +01:00
stijn
7ede3ec4b1
tests: Always use forward slashes for paths
...
This is more consistent and fixes run_micropython on windows as it uses
forward slahses to compare paths
2015-08-08 12:35:27 +01:00
Dave Hylands
872f9af6ae
stmhal: Use CMSIS_MCU definition from mpconfigboard.mk
...
This needs to land afte #1407 lands, since #1407 is where
the CMSIS_MCU was defined.
2015-08-07 08:54:14 +01:00
Dave Hylands
8f59bacb92
stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7
2015-08-07 08:52:42 +01:00
Dave Hylands
be66a9ecf6
stmhal: Generate modstm constants per build
...
This causes unnecessary constants to no longer be generated.
Some constants (like UART_BRR) are different between the F4 and F7
2015-08-07 08:46:43 +01:00
Damien George
4836bcc957
stmhal/cmsis: Replace non-ascii apostrophe with ascii apostrophe.
2015-08-07 08:46:43 +01:00
Tom Soulanille
89852d38ef
run-tests: Test REPL emacs keys, but only if present.
...
Uses cmdline/repl_emacs_check.py to check for presence of emacs keys in
repl before doing full feature test.
2015-08-06 00:03:44 +01:00
Damien George
526dd54252
tests: Add test for pyboard SPI in slave mode, recv with no master.
...
See PR #1414 .
2015-08-05 23:47:57 +01:00
Dave Hylands
8a1a5c236d
stmhal: Fix hardfault when configured as a SPI slave
2015-08-05 23:42:05 +01:00
Dave Hylands
5e11d2b349
stmhal: Enable SPI support for F7 MCUs.
2015-08-05 23:38:49 +01:00
Dave Hylands
34fe5a30c6
stmhal: Enable I2C support for F7 MCUs.
2015-08-05 23:38:24 +01:00
blmorris
26664dd180
unix/mpconfigport.h: set MICROPY_PY_SYS_PLATFORM to "darwin" if compiled on OSX
...
This change allows micropython to return the same value as CPython for sys.platform
2015-08-05 21:18:33 +03:00
Damien George
4434e43fa1
stmhal: Add HALCOMMITS file with list of commits that touch the hal.
...
This file should be kept up to date with list of hal commits.
2015-08-03 00:55:36 +01:00
Dave Hylands
7a55c1a884
stmhal: Port of f4 hal commit 1d7fb82 to f7 hal
2015-08-03 00:49:36 +01:00
Dave Hylands
28e51c9eb1
stmhal: Port of f4 hal commit 09de030 to f7 hal
2015-08-03 00:49:36 +01:00
Dave Hylands
af9d885f8c
stmhal: Port of f4 hal commit c568a2b to f7 hal
2015-08-03 00:49:35 +01:00
Dave Hylands
9e8eba797e
stmhal: M7 Reset clocksources changed by DFU bootloader
...
The DFU bootloader on the ST32F7 chip changes the clocksource
for various possible boot sources (UART1, UART3, I2C1-3).
This commit resets those clock sources back to their cold
reset values.
2015-08-03 00:46:31 +01:00
Dave Hylands
8f1eced69d
stmhal: Add STM32F7 support for USB serial and storage.
...
USB serial is now working for F7.
Internal file storage is now working for F7. The flash is laid out a bit
differently to the F4 - 4 x 32K, 1 x 128K with the rest 256K, so the
internal storage is 96K.
Added more pind definitions for STM32F7DISC board. Made USART1 be the
default HWUART repl. The STLINK usb connector also looks like a USB
serial port which is attached to USART1 on the STM32F7DISC.
2015-08-03 00:39:27 +01:00
Damien George
751485fe6b
stmhal: Add support for USART1 and conditional pins in make-pins.py.
...
Thanks to Dave Hylands for the patch.
2015-08-03 00:23:47 +01:00
Damien George
a632037866
stmhal: Add better support for UART having Tx and Rx on different ports.
...
Thanks to Dave Hylands for the patch.
2015-08-03 00:22:16 +01:00
Damien George
c0e39864c6
stmhal: Fix make-pins.py to allow Port K.
...
Thanks to Dave Hylands for the patch.
2015-08-03 00:18:40 +01:00
Damien George
6e552e15fa
stmhal: Add debug capability to print out info about a hard fault.
...
Capability is #if'd off by default.
Thanks to Dave Hylands for the patch.
2015-08-03 00:14:51 +01:00
Damien George
0851751615
stmhal: Factor GPIO clock enable logic into mp_hal_gpio_clock_enable.
...
Extracted GPIO clock enable logic into mp_hal_gpio_clock_enable
and called from anyplace which might need to use GPIO functions
on ports other than A-D.
Thanks to Dave Hylands for the patch.
2015-08-03 00:14:48 +01:00
Damien George
6f1c00869c
stmhal: Factor out USRSW boot-up code and support boards with 1 LED.
...
Thanks to Dave Hylands for the patch.
2015-08-03 00:14:44 +01:00