Daniel Campora
ea5061e409
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
9 years ago
Daniel Campora
4c5bfe2d10
cc3200: Server side SSL socket requires both certfile and keyfile.
9 years ago
Dave Hylands
c6f1d47dcb
stmhal: Enable I & D caches for M7
9 years ago
stijn
3179d23cee
windows: Make unistd.h more posix compatible
- add SEEK_XXX definitions, this fixes missing definition in py/stream.c
- move R_OK from realpath.c and add W_OK/F_OK defintions
- move STDXXX_FILENO definitions from mpconfigport for consistency
9 years ago
blmorris
bdd78c31b6
py: Add stream_tell method, and use for unix and stmhal file tell.
9 years ago
Damien George
c39093d801
py: In native ARM emitter, load r7 with table earlier in func prelude.
r7 may be needed to set up code state, so it must be loaded before the
set-up function is called.
9 years ago
Damien George
94ef8879cd
py/makeversionhdr.py: Use returncode attr to be Python2.7 compat.
9 years ago
Damien George
b7d59060e2
tools: Make gen-changelog.sh print more lines from the tag annotation.
9 years ago
Damien George
032b0e9369
docs: Bump version to 1.4.5.
9 years ago
Damien George
0d5d16074f
py/makeversionhdr.py: Fallback to using docs version if no git repo.
Addresses issue #1420 .
9 years ago
Daniel Campora
7027fd5343
cc3200: Make ADC API compatible with the pyboard.
9 years ago
Daniel Campora
7da2fdc3cd
cc3200: On the first boot, always make AP ssid='wipy-wlan'.
On the first boot don't add the MAC address, this is to speed up
factory testing.
9 years ago
Daniel Campora
2673374d18
cc3200: Refactor PRCM special user bits implementation.
9 years ago
Daniel Campora
651c870d77
cc3200: Speed up file system checking during start-up.
9 years ago
Daniel Campora
aa3569cd57
cc3200: Add factory smoke test as part of the tools.
9 years ago
Daniel Campora
8cd9fedf58
cc3200: Add script to program the WiPy via UniFlash (windows only...).
9 years ago
Daniel Campora
e23ae63970
cc3200: Fix bug in ffconf regarding '/flash' string length.
This bug was introduced when renaming '/sflash' to '/flash'.
9 years ago
Daniel Campora
31f6a6fa70
cc3200: Enable bootloader safe boot on latest firmware.
The first safe boot level executes the latest firmware but skips
'main.py' and 'boot.py'.
9 years ago
Daniel Campora
e54a4f1f48
cc3200: Improve support for WEP security.
Key is always entered as a string, but if security is WEP, the key
is converted automatically to hex before connecting or configuring
the device as an AP.
9 years ago
Daniel Campora
d43019163d
docs: Add i2c keywork arguments only indication.
9 years ago
Daniel Campora
00c4d6562e
cc3200: Add nic.iwconfig() to set/get WLAN configuration.
Changes are based on this post:
https://github.com/micropython/micropython/issues/876#issuecomment-115255551
The constructor can optionally take the same params of iwconfig in
order to configure WiFi when creating the object. Params are
keyworkd only. The WiPy accepts:
- mode (int -> WLAN.AP or WLAN.STA)
- ssdi (string)
- security (int -> WLAN.OPEN, WLAN.WEP, WLAN.WPA, WLAN.WPA2)
- key (string)
- channel (int (1-11))
- antenna (int -> WLAN.INTERNAL, WLAN.EXTERNAL)
9 years ago
Damien George
e86b47175f
tools: Make pyboard.py Python2 compatible.
9 years ago
Tom Soulanille
20f40c3229
tests: Remove over-specification of startup banner
9 years ago
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
9 years ago
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
9 years ago
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.
9 years ago
Dave Hylands
8f59bacb92
stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7
9 years ago
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
9 years ago
Damien George
4836bcc957
stmhal/cmsis: Replace non-ascii apostrophe with ascii apostrophe.
9 years ago
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.
9 years ago
Damien George
526dd54252
tests: Add test for pyboard SPI in slave mode, recv with no master.
See PR #1414 .
9 years ago
Dave Hylands
8a1a5c236d
stmhal: Fix hardfault when configured as a SPI slave
9 years ago
Dave Hylands
5e11d2b349
stmhal: Enable SPI support for F7 MCUs.
9 years ago
Dave Hylands
34fe5a30c6
stmhal: Enable I2C support for F7 MCUs.
9 years ago
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
9 years ago
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.
9 years ago
Dave Hylands
7a55c1a884
stmhal: Port of f4 hal commit 1d7fb82
to f7 hal
9 years ago
Dave Hylands
28e51c9eb1
stmhal: Port of f4 hal commit 09de030
to f7 hal
9 years ago
Dave Hylands
af9d885f8c
stmhal: Port of f4 hal commit c568a2b
to f7 hal
9 years ago
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.
9 years ago
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.
9 years ago
Damien George
751485fe6b
stmhal: Add support for USART1 and conditional pins in make-pins.py.
Thanks to Dave Hylands for the patch.
9 years ago
Damien George
a632037866
stmhal: Add better support for UART having Tx and Rx on different ports.
Thanks to Dave Hylands for the patch.
9 years ago
Damien George
c0e39864c6
stmhal: Fix make-pins.py to allow Port K.
Thanks to Dave Hylands for the patch.
9 years ago
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.
9 years ago
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.
9 years ago
Damien George
6f1c00869c
stmhal: Factor out USRSW boot-up code and support boards with 1 LED.
Thanks to Dave Hylands for the patch.
9 years ago
Damien George
1934dca6de
bare-arm: Disable enumerate and reversed builtins to make port more bare.
9 years ago
Damien George
7a26e4f484
minimal: Use 1 byte for qstr hash, to make port more minimal.
9 years ago
Damien George
9a2913ed1c
py/objlist: Make list += accept all arguments and add test.
9 years ago