<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/zephyr/machine_pin.c, branch 5.3.0</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.0</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.0'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-09-06T03:40:51+00:00</updated>
<entry>
<title>ports: Make new ports/ sub-directory and move all ports there.</title>
<updated>2017-09-06T03:40:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-09-06T03:40:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=01dd7804b87d60b2deab16712eccb3b97351a9b7'/>
<id>urn:sha1:01dd7804b87d60b2deab16712eccb3b97351a9b7</id>
<content type='text'>
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
</content>
</entry>
<entry>
<title>all: Convert remaining "mp_uint_t n_args" to "size_t n_args".</title>
<updated>2017-08-30T00:59:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-08-30T00:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=71c9cfb028d423bf4760d66b1afe8951335fa5da'/>
<id>urn:sha1:71c9cfb028d423bf4760d66b1afe8951335fa5da</id>
<content type='text'>
This is to have consistency across the whole repository.
</content>
</entry>
<entry>
<title>all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.</title>
<updated>2017-08-21T11:34:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-08-21T11:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4ec803a42ae3080d4af959c7c2edf81e57f79377'/>
<id>urn:sha1:4ec803a42ae3080d4af959c7c2edf81e57f79377</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>zephyr/machine_pin: Use native Zephyr types for Zephyr API calls.</title>
<updated>2017-06-10T16:40:31+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-06-10T16:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0161939ed1d99382296fee3827916d1fa58d3c20'/>
<id>urn:sha1:0161939ed1d99382296fee3827916d1fa58d3c20</id>
<content type='text'>
In 1.8, Zephyr made a controversial change of dumping C99 stdint types
and switching to its own types.
</content>
</entry>
<entry>
<title>esp8266, stmhal, zephyr: Rename machine.Pin high/low methods to on/off.</title>
<updated>2017-05-21T14:44:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-16T08:14:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bcf31a39087bd7727e15105363063980120fd528'/>
<id>urn:sha1:bcf31a39087bd7727e15105363063980120fd528</id>
<content type='text'>
For consistent Pin/Signal class hierarchy. With it, Signal is a proper
(while still ducktyped) subclass of a Pin, and any (direct) usage of Pin
can be replace with Signal.

As stmhal's class is reused both as machine.Pin and legacy pyb.Pin,
high/low methods actually retained there.
</content>
</entry>
<entry>
<title>zephyr/machine_pin: Implement pin protocol for machine.Signal support.</title>
<updated>2017-04-08T11:27:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-08T11:27:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0a88b44248a7fafb01e98019e4b79547772ea206'/>
<id>urn:sha1:0a88b44248a7fafb01e98019e4b79547772ea206</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>
