<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/ports/stm32/dma.c, branch main</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2019-10-13T15:08:52+00:00</updated>
<entry>
<title>remove ports/stm32</title>
<updated>2019-10-13T15:08:52+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-10-13T15:08:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fc033bd954a46156d6902392f8ae21ac2872bb1c'/>
<id>urn:sha1:fc033bd954a46156d6902392f8ae21ac2872bb1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32: Add support for STM32F0 MCUs.</title>
<updated>2018-05-28T11:49:49+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-28T08:10:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ea7e747979c2f27eb90f9a6ba292c500eb288dd4'/>
<id>urn:sha1:ea7e747979c2f27eb90f9a6ba292c500eb288dd4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32/dma: Fix duplicate typedef of struct, it's typedef'd in dma.h.</title>
<updated>2018-05-04T05:35:43+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-04T05:35:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b614dc73b085c803f465f1c920553e13f52aee00'/>
<id>urn:sha1:b614dc73b085c803f465f1c920553e13f52aee00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32/irq: Define IRQ priorities directly as encoded hardware values.</title>
<updated>2018-05-02T04:41:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-02T04:41:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a03e6c1e05203bb71ebee50af2a41de404b05078'/>
<id>urn:sha1:a03e6c1e05203bb71ebee50af2a41de404b05078</id>
<content type='text'>
For a given IRQn (eg UART) there's no need to carry around both a PRI and
SUBPRI value (eg IRQ_PRI_UART, IRQ_SUBPRI_UART).  Instead, the IRQ_PRI_UART
value has been changed in this patch to be the encoded hardware value,
using NVIC_EncodePriority.  This way the NVIC_SetPriority function can be
used directly, instead of going through HAL_NVIC_SetPriority which must do
extra processing to encode the PRI+SUBPRI.

For a priority grouping of 4 (4 bits for preempt priority, 0 bits for the
sub-priority), which is used in the stm32 port, the IRQ_PRI_xxx constants
remain unchanged in their value.

This patch also "fixes" the use of raise_irq_pri() which should be passed
the encoded value (but as mentioned above the unencoded value is the same
as the encoded value for priority grouping 4, so there was no bug from this
error).
</content>
</entry>
<entry>
<title>stm32/dma: Always deinit/reinit DMA channels on L4 MCUs.</title>
<updated>2018-05-02T03:41:23+00:00</updated>
<author>
<name>Peter D. Gray</name>
<email>peter@conalgo.com</email>
</author>
<published>2018-04-13T13:14:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=266446624fc055e988782577286fe91efbda438e'/>
<id>urn:sha1:266446624fc055e988782577286fe91efbda438e</id>
<content type='text'>
The problem is the existing code which tries to optimise the
reinitialisation of the DMA breaks the abstraction of the HAL.  For the
STM32L4 the HAL's DMA setup code maintains two private vars (ChannelIndex,
DmaBaseAddress) and updates a hardware register (CCR).

In HAL_DMA_Init(), the CCR is updated to set the direction of the DMA.
This is a problem because, when using the SD Card interface, the same DMA
channel is used in both directions, so the direction bit in the CCR must
follow that.

A quick and effective fix for the L4 is to simply call HAL_DMA_DeInit() and
HAL_DMA_Init() every time.
</content>
</entry>
<entry>
<title>stm32/dac: Add support for H7 MCUs.</title>
<updated>2018-04-10T04:21:26+00:00</updated>
<author>
<name>iabdalkader</name>
<email>i.abdalkader@gmail.com</email>
</author>
<published>2018-04-05T23:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=90bb98e83daf714f22eb3f8af6ae57ec4078ee32'/>
<id>urn:sha1:90bb98e83daf714f22eb3f8af6ae57ec4078ee32</id>
<content type='text'>
Includes a fix for H7 DAC DMA requests.
</content>
</entry>
<entry>
<title>stm32/dma: Remove H7 SDMMC DMA descriptors.</title>
<updated>2018-03-28T02:23:40+00:00</updated>
<author>
<name>iabdalkader</name>
<email>i.abdalkader@gmail.com</email>
</author>
<published>2018-03-22T01:49:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9b9896b44d3784896ac8ca64bc1746956c122f6a'/>
<id>urn:sha1:9b9896b44d3784896ac8ca64bc1746956c122f6a</id>
<content type='text'>
The H7 SD peripheral has direct connection to MDMA instead.
</content>
</entry>
<entry>
<title>stm32: Use STM32xx macros instead of MCU_SERIES_xx to select MCU type.</title>
<updated>2018-03-16T23:42:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-03-16T23:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e37b8ba5a55c99dbd1e69eb1c99651307b22fd3e'/>
<id>urn:sha1:e37b8ba5a55c99dbd1e69eb1c99651307b22fd3e</id>
<content type='text'>
The CMSIS files for the STM32 range provide macros to distinguish between
the different MCU series: STM32F4, STM32F7, STM32H7, STM32L4, etc.  Prefer
to use these instead of custom ones.
</content>
</entry>
<entry>
<title>stm32/dma: Add DMA support for H7 MCUs.</title>
<updated>2018-03-09T04:12:19+00:00</updated>
<author>
<name>iabdalkader</name>
<email>i.abdalkader@gmail.com</email>
</author>
<published>2018-02-23T18:18:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0e51e4d13986e7dc65eb6186253cc1812d966647'/>
<id>urn:sha1:0e51e4d13986e7dc65eb6186253cc1812d966647</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32: Update HAL macro and constant names to use newer versions.</title>
<updated>2018-02-13T04:37:35+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-02-13T04:37:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3eb0694b97c6a8f0e93b874549aac40d8b78b0e5'/>
<id>urn:sha1:3eb0694b97c6a8f0e93b874549aac40d8b78b0e5</id>
<content type='text'>
Newer versions of the HAL use names which are cleaner and more
self-consistent amongst the HAL itself.  This patch switches to use those
names in most places so it is easier to update the HAL in the future.
</content>
</entry>
</feed>
