Damien George
07e83573c8
extmod/machine_i2c: Add 'nack' argument to i2c.readinto.
8 years ago
Damien George
ced240e72a
extmod/machine_i2c: Make C-level functions return -errno on I2C error.
8 years ago
Damien George
946f8dd46f
extmod/machine_i2c: Remove unneeded i2c_write_mem/i2c_read_mem funcs.
8 years ago
Damien George
96c3911a0a
extmod/machine_i2c: Rewrite mem xfer funcs in terms of C-level protocol.
8 years ago
Damien George
c81247f1ab
extmod/machine_i2c: Rewrite i2c.scan in terms of C-level protocol.
8 years ago
Damien George
bc4ea69795
extmod/machine_i2c: Add argument to C funcs to control stop generation.
8 years ago
Damien George
b983cfaf41
extmod/machine_i2c: Add a C-level I2C-protocol, refactoring soft I2C.
8 years ago
Damien George
63a5df3cb4
docs/library/machine.I2C: Refine definitions of I2C methods.
8 years ago
Damien George
a3320e7811
stmhal/i2c: Remove use of legacy I2C_NOSTRETCH_DISABLED option.
In the new HAL this is renamed to I2C_NOSTRETCH_DISABLE.
8 years ago
Rami Ali
2eff9c29a1
tests/basics: Improve user class coverage.
8 years ago
Rami Ali
1b41cacac7
tests/extmod: Improve ujson coverage.
8 years ago
Paul Sokolovsky
037e6912c6
py/objtype: Implement __call__ handling for an instance w/o heap alloc.
By refactoring and reusing code from objboundmeth.
8 years ago
Damien George
7e820792da
stmhal: Updates to get F411 MCUs compiling with latest ST HAL.
8 years ago
Damien George
1f43d49f9e
tests/micropython: Move alloc-less traceback test to separate test file.
The native emitter doesn't provide proper traceback info so this test
should not be run in that case.
8 years ago
Damien George
d70f87aaa2
tests/micropython: Add test for creating traceback without allocation.
8 years ago
Damien George
21d82421cd
stmhal/i2c: Use the HAL's I2C IRQ handler for F7 and L4 MCUs.
The custom IRQ handler only works for F4 MCUs, which have the SR1
register.
8 years ago
Damien George
e30ca0e102
unix/Makefile: Update freedos target for change of USELECT config name.
8 years ago
Damien George
0d56c65d3e
extmod/moduselect: Fix comment describing endif.
8 years ago
Paul Sokolovsky
5362bcc487
extmod/machine_mem: Typo fix in comment.
8 years ago
Paul Sokolovsky
f14e9187ac
cc3200: Update for moduselect moved to extmod/.
8 years ago
Paul Sokolovsky
87dfc76570
unix: Rename define for unix moduselect to MICROPY_PY_USELECT_POSIX.
To not conflict with recently made available globally baremetal
moduselect.
8 years ago
Paul Sokolovsky
8f5bc3ffc0
stmhal/moduselect: Move to extmod/ for reuse by other ports.
8 years ago
Damien George
c28fed6b64
examples/accellog.py: Change 1: to /sd/, and update comment about FS.
8 years ago
Paul Sokolovsky
00d6f99cf1
examples/hwapi: Add hwconfig for console tracing of LED operations.
8 years ago
Radomir Dopieralski
e81a5353cb
extmod/machine_i2c: Release SDA on bus error
8 years ago
Radomir Dopieralski
9a82b67f39
extmod/machine_i2c: Raise an error when clock stretching times out
8 years ago
Radomir Dopieralski
702928915c
extmod/machine_i2c: Make the clock stretching timeout configurable
8 years ago
Paul Sokolovsky
b188d6e9db
examples/hwapi: Add example for machine.time_pulse_us().
8 years ago
Krzysztof Blazewicz
5e9057210a
stmhal: Update HALCOMMITS due to change to hal.
8 years ago
Damien George
e01e214259
stmhal/make-stmconst.py: Restore Python 2 compatibility.
8 years ago
Damien George
87f18c08c9
stmhal: Update HALCOMMITS due to change to hal.
8 years ago
Damien George
c5621529c9
stmhal/make-stmconst.py: Add support for files with invalid utf8 bytes.
8 years ago
Krzysztof Blazewicz
4d9dce7759
stmhal/mphalport.h: use single GPIOx->BSRR register
8 years ago
Krzysztof Blazewicz
13400e1375
stmhal/hal: do not include <stdio.h> in HAL headers
stdio.h was included in all HAL files only to provide
definition of NULL symbol
"stdio.h" includes "types.h" which contains some conflicting definitions
with "drivers/cc3000/inc/socket.h"
8 years ago
Krzysztof Blazewicz
8fa0733647
stmhal/i2c: provide custom IRQ handlers
Use custom handlers providing minimal required functionality
because those provided by ST increase code size by almost 2 KiB.
8 years ago
Krzysztof Blazewicz
7604de3fc2
stmhal/can: clear FIFO flags in IRQ handler
HAL Driver before v1.4.2 had a bug which caused clearing all pending
flags in MSR, TSR, RF0R and RF1R instead of only the requested one.
This is why micropython got away without explicitly clearing flags
in IRQ handler.
8 years ago
Krzysztof Blazewicz
dc1ac5dc3a
stmhal/dma: mark DMA sate as READY even if HAL_DMA_Init is skipped
Current version of HAL drivers checks if `hdma->State == HAL_DMA_STATE_READY`
before executing some functions.
8 years ago
Krzysztof Blazewicz
63ca7a211a
stmhal/dma: precalculate register base and bitshift on handle init
Current version of HAL drivers optimize IRQ handler by using precalculated
DMA register address and stream bitshift instead of calculating it on every interrupt.
Since we skip call to `HAL_DMA_Init` on reused DMA, fields StreamBaseAddress and StreamIndex
of DMA handle are not initialized and thus leads to SegFault in `DMA_IRQHandler`.
HAL_DMA_Init is a big routine and we do not need to call it on each use of DMA
(ex.: series of I2C operations) and DMA_CalcBaseAndBitshift is really small and
releasing it increases code size by only 8 bytes.
8 years ago
Krzysztof Blazewicz
0280b2c1b1
stmhal/i2c: handle I2C IRQs
This is required by HAL Driver for error handling since v1.5.0
8 years ago
Krzysztof Blazewicz
fa833f96df
stmhal/make-stmconst.py: fix regex's to work with current CMSIS
CMSIS v2.5.0 removed all uint32_t casts and uses only Misra Cast (U)
8 years ago
Krzysztof Blazewicz
7928b3e347
stmhal/boards: configure all F4 boards to work with new HAL
changes include:
* use single GPIO.BSRR instead of BSRRH and BSRRL
* change HSE_STARTUP_TIMEOUT to 100 ms
* define LSE_STARTUP_TIMEOUT to 5 s
8 years ago
Krzysztof Blazewicz
6a8f6c119c
stmhal/hal/sd: reapply HAL commit 09de030
for f4
8 years ago
Krzysztof Blazewicz
e2b4822189
stmhal/hal/rcc: reapply HAL commit c568a2b
for f4
8 years ago
Krzysztof Blazewicz
4f7c5fa647
stmhal/hal: reapply HAL commit 9db719b
for f4
8 years ago
Krzysztof Blazewicz
c79ff9930a
stmhal/hal/sd: reapply HAL commit 1d7fb82
for f4
8 years ago
Krzysztof Blazewicz
a9fb88e1dc
stmhal/hal/i2c: reapply HAL commit ea040a4
for f4
8 years ago
Krzysztof Blazewicz
e8b435d1f8
stmhal: apply STM32CubeF4 v1.13.1 patch - upgrade HAL driver to v1.5.2
8 years ago
Krzysztof Blazewicz
c1fa33b493
stmhal: upgrade to STM32CubeF4 v1.13.0 - HAL v1.5.1
8 years ago
Krzysztof Blazewicz
4f5c4fdd98
stmhal: upgrade to STM32CubeF4 v1.13.0 - CMSIS/Device 2.5.1
8 years ago
Damien George
32e98257e2
windows: Enable READER_POSIX to get access to lexer_new_from_file.
8 years ago