<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/timer.c, branch v1.5.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-12-09T17:39:34+00:00</updated>
<entry>
<title>stmhal/timer: Use mp_float_t instead of float.</title>
<updated>2015-12-09T17:39:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-12-09T17:39:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f54a96d6a20df998eb70a5cffe63f5ea885595c8'/>
<id>urn:sha1:f54a96d6a20df998eb70a5cffe63f5ea885595c8</id>
<content type='text'>
This way mp_float_t can be changed to, eg, double.
</content>
</entry>
<entry>
<title>stmhal: Add option to free up TIM3 from USB VCP polling.</title>
<updated>2015-12-04T14:07:15+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-12-04T14:07:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=66b96822fb33863fde5ce13a6bdeb99a404575dc'/>
<id>urn:sha1:66b96822fb33863fde5ce13a6bdeb99a404575dc</id>
<content type='text'>
This is a hack to free up TIM3 so that it can be used by the user.
Instead we use the PVD irq to call the USB VCP polling function, and
trigger it from SysTick (so SysTick itself does not do any processing).

The feature is enabled for pyboard lite only, since it lacks timers.
</content>
</entry>
<entry>
<title>stmhal: Move flash storage idle tick handler from TIM3 to SysTick.</title>
<updated>2015-11-24T16:18:07+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-24T16:18:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e99e6c883d70eda894aba124c8ee0495dc90c350'/>
<id>urn:sha1:e99e6c883d70eda894aba124c8ee0495dc90c350</id>
<content type='text'>
Using SysTick to do the counting and dispatch of the flash storage idle
handler is more efficient than requiring a dedicated hardware timer.
No new counter is needed, just the existing uwTick variable.  The
processing is not actually done in the SysTick IRQ, it is deferred to
the flash IRQ (which runs at lower priority).
</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>all: Add py/mphal.h and use it in all ports.</title>
<updated>2015-10-31T16:14:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-10-30T23:03:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=731f359292c0e2630873df1a19c5baac7287024f'/>
<id>urn:sha1:731f359292c0e2630873df1a19c5baac7287024f</id>
<content type='text'>
py/mphal.h contains declarations for generic mp_hal_XXX functions, such
as stdio and delay/ticks, which ports should provide definitions for.  A
port will also provide mphalport.h with further HAL declarations.
</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>
<entry>
<title>stmhal: Allow ADC.read_timed to take Timer object in place of freq.</title>
<updated>2015-07-22T18:41:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-07-22T18:37:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7693ef3bd6e4456105c86909174a00f535a19261'/>
<id>urn:sha1:7693ef3bd6e4456105c86909174a00f535a19261</id>
<content type='text'>
This allows a user-specified Timer for the triggering of the ADC read,
mirroring the new behaviour of DAC.write_timed.

Addresses issue #1129.
</content>
</entry>
<entry>
<title>stmhal: Allow DAC.write_timed to take Timer object in place of freq.</title>
<updated>2015-07-21T22:39:49+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-07-21T22:37:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=abc24c187614e358faa10ed6a3e239151f70b9f8'/>
<id>urn:sha1:abc24c187614e358faa10ed6a3e239151f70b9f8</id>
<content type='text'>
This allows the DAC to use a user-specified Timer for the triggering
(instead of the default Timer(6)), while still supporting original
behaviour.

Addresses issues #1129 and #1388.
</content>
</entry>
<entry>
<title>stmhal: Actually disable unhandled timer interrupts.</title>
<updated>2015-04-28T07:17:05+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-04-28T07:17:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fdcb3b7ebbb611497866123ec050fc99e5185cd8'/>
<id>urn:sha1:fdcb3b7ebbb611497866123ec050fc99e5185cd8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Reset the timer counter to zero after changing the auto reload.</title>
<updated>2015-04-22T22:31:56+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-04-22T22:01:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fd787c5e4ed369ddf8a178a62b6faf8a421e2bbc'/>
<id>urn:sha1:fd787c5e4ed369ddf8a178a62b6faf8a421e2bbc</id>
<content type='text'>
Because if the counter is above the new value of the auto-reload register
then it may be a long time until the timer wraps around.
</content>
</entry>
</feed>
