<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/adc.c, branch v1.8.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-08-25T03:49:51+00:00</updated>
<entry>
<title>stmhal: Make ADC channel 16 available on L4 MCUs.</title>
<updated>2016-08-25T03:49:51+00:00</updated>
<author>
<name>Matt Brejza</name>
<email>mbrejza@gmail.com</email>
</author>
<published>2016-08-23T22:13:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5af6184e7251e44c17714466981c624dc7bd225d'/>
<id>urn:sha1:5af6184e7251e44c17714466981c624dc7bd225d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/adc.c: Get ADC working on STM32L4 MCUs.</title>
<updated>2016-08-11T03:01:57+00:00</updated>
<author>
<name>Tobias Badertscher</name>
<email>badi@baerospace.ch</email>
</author>
<published>2016-07-19T09:35:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=af9889f99a325adb725c61476bd580b11593ca50'/>
<id>urn:sha1:af9889f99a325adb725c61476bd580b11593ca50</id>
<content type='text'>
Fixing Issue #2243. Main problems were:

- HAL_ADC_GetState(adcHandle) may return other bits set (not only
  HAL_ADC_STATE_EOC_REG) when called - so I AND-ed it out as proposed by
  mattbrejza in Issue #2243.
- ADC Pin has to be configured as GPIO_MODE_ANALOG_ADC_CONTROL not only
  GPIO_MODE_ANALOG.
- Resolved ADC resolution L4 specific (Use L4 define ADC_RESOLUTION_12B).
- Changed setting of Init.EOCSelection toADC_EOC_SINGLE_CONV for L4.
- Added call to ADC_MultiModeTypeDef as this is done on a STM32Cube
  generated project too.
- Clean up: Configuration of ADC is done only in ONE function not the same
  is done in two functions.

Test is done on PA5 pin of STM32L4Discovery-Kit which is connected to the
DOWN button.

Thanks to mattbrejza for discovering the bug.
</content>
</entry>
<entry>
<title>stmhal: L4: Modify adc.c to add support for STM32L4 series.</title>
<updated>2016-04-16T22:02:36+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=d49a5470640d29ce9ee7f2ebedbf9f2fcd8cc524'/>
<id>urn:sha1:d49a5470640d29ce9ee7f2ebedbf9f2fcd8cc524</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.</title>
<updated>2016-01-11T00:49:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-03T15:55:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5b3f0b7f39bd67cc9182993c288f09f67a0890df'/>
<id>urn:sha1:5b3f0b7f39bd67cc9182993c288f09f67a0890df</id>
<content type='text'>
The first argument to the type.make_new method is naturally a uPy type,
and all uses of this argument cast it directly to a pointer to a type
structure.  So it makes sense to just have it a pointer to a type from
the very beginning (and a const pointer at that).  This patch makes
such a change, and removes all unnecessary casting to/from mp_obj_t.
</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: Factor GPIO clock enable logic into mp_hal_gpio_clock_enable.</title>
<updated>2015-08-02T23:14:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-08-02T23:05:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0851751615580d02bd6f841e13651923f05fde59'/>
<id>urn:sha1:0851751615580d02bd6f841e13651923f05fde59</id>
<content type='text'>
Extracted GPIO clock enable logic into mp_hal_gpio_clock_enable
and called from anyplace which might need to use GPIO functions
on ports other than A-D.

Thanks to Dave Hylands for the patch.
</content>
</entry>
<entry>
<title>stmhal: Add STM32F7DISC and associated changes.</title>
<updated>2015-07-29T23:38:32+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-07-28T18:13:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=92d4b51ad5d828930334f87d9619a78b5877a384'/>
<id>urn:sha1:92d4b51ad5d828930334f87d9619a78b5877a384</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>
<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>py/binary: Make return type of mp_binary_get_size size_t instead of int.</title>
<updated>2015-05-17T17:12:19+00:00</updated>
<author>
<name>Kaspar Schleiser</name>
<email>kaspar@schleiser.de</email>
</author>
<published>2015-05-10T11:04:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f5dd6f7f3707b67acbd1dbfe71cad2b958d5d7be'/>
<id>urn:sha1:f5dd6f7f3707b67acbd1dbfe71cad2b958d5d7be</id>
<content type='text'>
Fixes sign-compare warning.
</content>
</entry>
</feed>
