<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/dma.c, branch cross</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=cross</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=cross'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-06-29T13:28:49+00:00</updated>
<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>
<entry>
<title>stmhal/dma: Fix builds for boards with an F4 or F7 but no DAC.</title>
<updated>2016-05-06T08:57:33+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2016-05-05T17:15:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cbbeb786d74ef28b60233ac818112fbeb64bf86d'/>
<id>urn:sha1:cbbeb786d74ef28b60233ac818112fbeb64bf86d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/dma: Make DAC DMA descriptors conditional on having a DAC.</title>
<updated>2016-05-05T14:34:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-05T14:34:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=05d16649819c23f2a4763f561b66b1504cf9aa42'/>
<id>urn:sha1:05d16649819c23f2a4763f561b66b1504cf9aa42</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: L4: Adapt DMA to be able to support STM32L4 MCU series.</title>
<updated>2016-05-05T13:51:20+00:00</updated>
<author>
<name>Tobias Badertscher</name>
<email>python@baerospace.ch</email>
</author>
<published>2016-03-22T10:28:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e64032d6fdeb079de2ace20b64899d1ceb6754f1'/>
<id>urn:sha1:e64032d6fdeb079de2ace20b64899d1ceb6754f1</id>
<content type='text'>
The main thing is to change the DMA code in a way that the structure
DMA_Stream_TypeDef (which is similar to DMA_Channel_TypeDef on stm32l4)
is no longer used outside of dma.c, as this structure only exists for the
F4 series.  Therefore I introduced a new structure (dma_descr_t) which
handles all DMA specific stuff for configuration.  Further the periphery
(spi, i2c, sdcard, dac) does not need to know the internals of the dma.
</content>
</entry>
<entry>
<title>stmhal: Add pyb.irq_stats() to get statistics about IRQ calls.</title>
<updated>2015-12-22T21:00:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-10T13:25:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=401af50dc081faa421e7caef18fde2beb15632e4'/>
<id>urn:sha1:401af50dc081faa421e7caef18fde2beb15632e4</id>
<content type='text'>
Adds a lot of code, makes IRQs a bit less efficient, but is very useful
for debugging.  Usage: pyb.irq_stats() returns a memory view that can be
read and written, eg:

    list(pyb.irq_stats())
    pyb.irq_stats()[0]
    pyb.irq_stats()[0] = 0

The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be
modified to provide further IRQ statistics if desired.
</content>
</entry>
<entry>
<title>stmhal: On SysTick IRQ, only process one DMA channel at a time.</title>
<updated>2015-11-24T15:44:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-24T15:40:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=22bd23114af166980bad6ff00caaf97fdb1f2cf4'/>
<id>urn:sha1:22bd23114af166980bad6ff00caaf97fdb1f2cf4</id>
<content type='text'>
This can be generalised if/when more processing is needed by SysTick.

Thanks to @chuckbook for the idea.
</content>
</entry>
<entry>
<title>stmhal: Small simplification of code to tickle DMA idle counter.</title>
<updated>2015-11-24T15:44:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-24T15:06:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=522d454e34e2132dc19ba929d9c92f511e9b1cd3'/>
<id>urn:sha1:522d454e34e2132dc19ba929d9c92f511e9b1cd3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Turn off DMA clocks when idle for 100 msec</title>
<updated>2015-11-24T09:37:25+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-11-16T01:02:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b677f03407c1b35fcfc4d6948a34a4281033865a'/>
<id>urn:sha1:b677f03407c1b35fcfc4d6948a34a4281033865a</id>
<content type='text'>
Turning on each DMA block increases the current consumption
by about 8 mA. This code adds an idle timer for each DMA
block and turns off the clocks when no streams are in use
for 128 msec. Having a small timeout allows for improved
performance when back-to-back transfers are being performed.

The 128 msec is basically a guess.
</content>
</entry>
<entry>
<title>stmhal: Add symbolic #defines for interrupt levels in irq.h.</title>
<updated>2015-11-01T23:23:39+00:00</updated>
<author>
<name>Dave Curtis</name>
<email>davecurtis@sonic.net</email>
</author>
<published>2015-10-31T17:44:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=32b3549cce7a965d92a81db02c7adc973f08d74c'/>
<id>urn:sha1:32b3549cce7a965d92a81db02c7adc973f08d74c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.</title>
<updated>2015-07-29T23:38:25+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-07-28T15:36:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ea8bf8105812b36fbf1596a78c6e14aa0a0c5a36'/>
<id>urn:sha1:ea8bf8105812b36fbf1596a78c6e14aa0a0c5a36</id>
<content type='text'>
</content>
</entry>
</feed>
