<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/zephyr/modmachine.c, branch 2.2.0</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.0</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-04-19T10:28:36+00:00</updated>
<entry>
<title>zephyr/modmachine: Implement machine.reset().</title>
<updated>2017-04-19T10:28:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-19T10:27:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=58467709972724ac94f6488fefe6d066bfa1589e'/>
<id>urn:sha1:58467709972724ac94f6488fefe6d066bfa1589e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>zephyr/modmachine: Add Signal class.</title>
<updated>2017-04-07T21:50:19+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-07T21:50:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e05cb4183a6ab06123eaa9eac91d6d134ebc083b'/>
<id>urn:sha1:e05cb4183a6ab06123eaa9eac91d6d134ebc083b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>zephyr: Initial implementation of machine.Pin.</title>
<updated>2016-10-26T21:47:26+00:00</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel.thompson@linaro.org</email>
</author>
<published>2016-09-28T21:22:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=67b6d9d499bee6283ae1005d0c829b8f552ac5af'/>
<id>urn:sha1:67b6d9d499bee6283ae1005d0c829b8f552ac5af</id>
<content type='text'>
The integration with Zephyr is fairly clean but as MicroPython Hardware API
requires pin ID to be a single value, but Zephyr operates GPIO in terms of
ports and pins, not just pins, a "hierarchical" ID is required, using tuple
of (port, pin). Port is a string, effectively a device name of a GPIO port,
per Zephyr conventions these are "GPIO_0", "GPIO_1", etc.; pin is integer
number of pin with the port (supposed to be in range 0-31).

Example of pin initialization:

pin = Pin(("GPIO_1", 21), Pin.OUT)

(an LED on FRDM-K64F's Port B, Pin 21).

There is support for in/out pins and pull up/pull down but currently
there is no interrupt support.

Signed-off-by: Daniel Thompson &lt;daniel.thompson@linaro.org&gt;
Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@linaro.org&gt;
Signed-off-by: Paul Sokolovsky &lt;paul.sokolovsky@linaro.org&gt;
</content>
</entry>
</feed>
