<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/dma.c, branch 2.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-07-31T08:35:40+00:00</updated>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>stmhal: Clean up some header includes.</title>
<updated>2017-07-03T07:37:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-07-03T07:37:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=80b31dc0972eca3f67dd2be7518b133e316e8f32'/>
<id>urn:sha1:80b31dc0972eca3f67dd2be7518b133e316e8f32</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/dma: Don't include SDMMC2 struct if SDMMC2 is not available.</title>
<updated>2017-03-30T07:24:31+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-30T07:24:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=00b1a3e4d285ad3b6d88bf82498e58bf9e1854b7'/>
<id>urn:sha1:00b1a3e4d285ad3b6d88bf82498e58bf9e1854b7</id>
<content type='text'>
Not all F7 MCUs have SDMMC2.
</content>
</entry>
<entry>
<title>stmhal/sdcard: Add support for SDMMC2 on F7 MCUs.</title>
<updated>2017-03-30T06:55:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-30T06:55:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7876e54aa5ebd0daca0fa4cd7b0faaa424b1d23d'/>
<id>urn:sha1:7876e54aa5ebd0daca0fa4cd7b0faaa424b1d23d</id>
<content type='text'>
By default the SDIO (F4) or SDMMC1 (L4, F7) is used as the SD card
peripheral, but if a board config defines MICROPY_HW_SDMMC2_CK and other
pins then the SD card driver will use SDMMC2.
</content>
</entry>
<entry>
<title>stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.</title>
<updated>2017-03-28T01:59:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-28T01:59:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7b1804c582a2ddb5a841335c43bd94faaee72584'/>
<id>urn:sha1:7b1804c582a2ddb5a841335c43bd94faaee72584</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/i2c: Add support for I2C4 hardware block on F7 MCUs.</title>
<updated>2016-11-25T00:21:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-11-25T00:21:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=652ca2017d8da647b30bddd4a8f782d05fa97a60'/>
<id>urn:sha1:652ca2017d8da647b30bddd4a8f782d05fa97a60</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/dma: mark DMA sate as READY even if HAL_DMA_Init is skipped</title>
<updated>2016-11-16T11:43:27+00:00</updated>
<author>
<name>Krzysztof Blazewicz</name>
<email>krzysztof.blazewicz@uxeon.com</email>
</author>
<published>2016-09-08T10:57:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=dc1ac5dc3ac4bfcf530bf62ada3e050c2566a698'/>
<id>urn:sha1:dc1ac5dc3ac4bfcf530bf62ada3e050c2566a698</id>
<content type='text'>
Current version of HAL drivers checks if `hdma-&gt;State == HAL_DMA_STATE_READY`
before executing some functions.
</content>
</entry>
<entry>
<title>stmhal/dma: precalculate register base and bitshift on handle init</title>
<updated>2016-11-16T11:43:27+00:00</updated>
<author>
<name>Krzysztof Blazewicz</name>
<email>krzysztof.blazewicz@uxeon.com</email>
</author>
<published>2016-09-07T16:40:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=63ca7a211ac832fb885753ad837a7b3de2aaa5da'/>
<id>urn:sha1:63ca7a211ac832fb885753ad837a7b3de2aaa5da</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>stmhal/dma: De-init the DMA peripheral properly before initialising.</title>
<updated>2016-11-11T06:24:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-11-11T06:24:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e6da6a720fb2bb48c6885e5f28f5f917690080fd'/>
<id>urn:sha1:e6da6a720fb2bb48c6885e5f28f5f917690080fd</id>
<content type='text'>
The DMA state is always HAL_DMA_STATE_RESET because of the memset clearing
all the data, so prior to this patch HAL_DMA_DeInit was never called.  Now
it is always called to make sure the DMA is properly reset.
</content>
</entry>
<entry>
<title>stmhal: Correct DMA to allow SD card on L4 MCUs.</title>
<updated>2016-06-29T13:28:49+00:00</updated>
<author>
<name>dpslwk</name>
<email>dps.lwk@gmail.com</email>
</author>
<published>2016-06-29T11:26:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b03df60f32c977a8a272cdeeaf1812f79918e69c'/>
<id>urn:sha1:b03df60f32c977a8a272cdeeaf1812f79918e69c</id>
<content type='text'>
</content>
</entry>
</feed>
