Benjamin Weps
3e82bedf46
stmhal/sdcard: Allow a board to customise the SDIO pins.
2017-06-27 12:42:46 +10:00
Damien George
118173013f
stmhal/boards/stm32f405.ld: Increase FLASH_TEXT to end of 1MiB flash.
...
And and FLASH_FS, and use "K" values instead of hex numbers for lengths.
The increase of FLASH_TEXT is to allow more frozen bytecode for a
particular user's project. It's not used for anything else.
2017-06-26 17:00:06 +10:00
Damien George
6e80f0ee90
stmhal/modules: Provide sym-link to onewire.py driver.
2017-06-22 16:36:04 +10:00
Damien George
b19138e82e
stmhal: Make available the _onewire module, for low-level bus control.
2017-06-22 16:20:22 +10:00
Damien George
8ed7155828
stmhal: Add "quiet timing" enter/exit functions.
...
They disable all interrupts except for SysTick and are useful for doing
certain low-level timing operations.
2017-06-22 16:18:42 +10:00
Damien George
4f9858e86d
stmhal: Move pybstdio.c to lib/utils/sys_stdio_mphal.c for common use.
...
It provides sys.stdin, sys.stdout, sys.stderr for bare-metal targets based
on mp_hal functions.
2017-06-15 18:55:34 +10:00
Damien George
fd860dc552
stmhal: Add .value() method to Switch object, to mirror Pin and Signal.
2017-06-15 17:34:51 +10:00
Damien George
4abe3731e3
stmhal: Add initial implementation of Pin.irq() method.
...
This method follows the new HW API and allows to set a hard or soft IRQ
callback when a Pin has a level change. It still remains to make this
method return a IRQ object.
2017-06-15 17:17:36 +10:00
Damien George
2bf5a947b2
stmhal: Make error messages more consistent across peripherals.
2017-06-15 12:02:14 +10:00
Damien George
48d867b4a6
all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.
2017-06-15 11:54:41 +10:00
Damien George
c064f0a36a
stmhal/mpconfigport.h: Remove config of PY_THREAD_GIL to use default.
...
The default for the GIL is to enable it if threading is enabled, and this
is the recommended way to use threading with the stmhal port.
2017-06-14 14:47:53 +10:00
Damien George
22cedef95f
stmhal/usbdev: For MSC implement SCSI SYNCHRONIZE_CACHE command.
...
Currently just a dummy command that returns "success", but it's needed for
some O/S's to correctly talk with the SCSI layer.
2017-06-08 12:29:10 +10:00
Damien George
f86c57fedf
stmhal/usb: Make state for USB device private to top-level USB driver.
2017-06-07 16:03:45 +10:00
Sylvain Pelissier
3bb69f645a
stmhal/usb: Use local USB handler variable in Start-of-Frame handler.
2017-06-07 16:03:19 +10:00
Sylvain Pelissier
6adcf7bb82
stmhal: Pass USB handler as parameter to allow more than one USB handler
2017-06-07 15:50:26 +10:00
Dave Hylands
551a731755
stmhal: Add support for NUCLEO_F446RE board.
2017-06-07 13:14:40 +10:00
Damien George
6ff0ecfffc
ports: Convert from using stmhal's input() to core provided version.
2017-06-01 16:02:49 +10:00
Damien George
821dc27eec
stmhal/boards: Enable DAC for NUCLEO_F767ZI board.
2017-05-30 18:31:55 +10:00
Paul Sokolovsky
bcf31a3908
esp8266, stmhal, zephyr: Rename machine.Pin high/low methods to on/off.
...
For consistent Pin/Signal class hierarchy. With it, Signal is a proper
(while still ducktyped) subclass of a Pin, and any (direct) usage of Pin
can be replace with Signal.
As stmhal's class is reused both as machine.Pin and legacy pyb.Pin,
high/low methods actually retained there.
2017-05-21 17:44:58 +03:00
Damien George
a004554dc1
stmhal/modmachine: Remove TODO comment that is now implemented.
2017-05-16 17:44:14 +10:00
Damien George
37bd3b4f4c
stmhal/modmachine: Add machine.UART class, linking to pyb.UART.
...
pyb.UART has a superset of machine.UART functionality so can be used to
provide compatibility with other ports that also implement machine.UART.
2017-05-16 17:40:22 +10:00
Damien George
f1609bc843
ports: Add ilistdir in uos module.
2017-05-10 12:13:53 +10:00
Damien George
0986675451
stmhal: Convert all module and method tables to use MP_ROM macros.
2017-05-06 17:03:40 +10:00
Damien George
49de9b68d2
qemu-arm, stmhal: Remove dummy memory.h since it's no longer needed.
...
extmod/crypto-algorithms/sha256.c was recently fixed so that it didn't
include this header.
2017-04-28 22:07:14 +10:00
Damien George
03053f82db
mpy-cross, unix, windows, stmhal: Enable return-if-else optimisation.
...
Prior to making this a config option it was previously available on these
(and all other) ports, and it makes sense to keep it enabled for mpy-cross
as well as ports that have a decent amount of space for the code.
2017-04-22 15:12:48 +10:00