<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/examples/unix, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>all: Reformat C and Python source code with tools/codeformat.py.</title>
<updated>2020-02-27T23:33:03+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-02-27T04:36:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=69661f3343bedf86e514337cff63d96cc42f8859'/>
<id>69661f3343bedf86e514337cff63d96cc42f8859</id>
<content type='text'>
This is run with uncrustify 0.70.1, and black 19.10b0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is run with uncrustify 0.70.1, and black 19.10b0.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/unix/ffi_example: Clean up and update the ffi example.</title>
<updated>2018-10-23T00:50:39+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2018-10-20T09:36:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=af5b509c7533bdc86cef923d53fd5e2daf692036'/>
<id>af5b509c7533bdc86cef923d53fd5e2daf692036</id>
<content type='text'>
1. Use uctypes.bytearray_at().

Implementation of the "ffi" module predates that of "uctypes", so
initially some convenience functions to access memory were added
to ffi. Later, they landed in uctypes (which follows CPython's
ctype module).

So, replace undocumented experimental functions from ffi to
documented ones from uctypes.

2. Use more suitable type codes for arguments (e.g. "P" (const void*)
instead of "p" (void*).

3. Some better var naming.

4. Clarify some messages printed by the example.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Use uctypes.bytearray_at().

Implementation of the "ffi" module predates that of "uctypes", so
initially some convenience functions to access memory were added
to ffi. Later, they landed in uctypes (which follows CPython's
ctype module).

So, replace undocumented experimental functions from ffi to
documented ones from uctypes.

2. Use more suitable type codes for arguments (e.g. "P" (const void*)
instead of "p" (void*).

3. Some better var naming.

4. Clarify some messages printed by the example.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/machine_mem.py: Too non-portable, rework as an example for unix port.</title>
<updated>2016-07-31T01:22:09+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-07-31T01:20:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=eb0e3bab1ed5aa09e491641f427a5d637fe688bd'/>
<id>eb0e3bab1ed5aa09e491641f427a5d637fe688bd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/unix/ffi_example.py: Remove TODO, make output more clear.</title>
<updated>2016-06-17T16:24:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-06-17T16:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=70536212d5ea1dd265ad72ee2eaff333b17815f6'/>
<id>70536212d5ea1dd265ad72ee2eaff333b17815f6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/unix/ffi_example.py: Update for current "ffi" module API.</title>
<updated>2016-06-17T16:21:37+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-06-17T16:21:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=ecfd8e102d07a1558ffca571dbcbdf309deecf9a'/>
<id>ecfd8e102d07a1558ffca571dbcbdf309deecf9a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: http_client.py, http_server.py aren't just unix, move to network/.</title>
<updated>2016-04-01T17:53:23+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-04-01T17:53:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=cf4b72bf13d41c9eacddc9df6f32b9cb02585d80'/>
<id>cf4b72bf13d41c9eacddc9df6f32b9cb02585d80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/unix: Rename example be importable as modules.</title>
<updated>2016-01-09T10:04:25+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-01-09T10:04:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=bae052d4209024f65dcfc1c99127ef6e4ca351fa'/>
<id>bae052d4209024f65dcfc1c99127ef6e4ca351fa</id>
<content type='text'>
Replace hyphens with undescores in modules.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace hyphens with undescores in modules.
</pre>
</div>
</content>
</entry>
<entry>
<title>unix: Rename "microsocket" module to "usocket".</title>
<updated>2014-10-09T17:43:10+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-10-09T17:43:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=23b3b04072345c372ff202e39357ceb4422c16db'/>
<id>23b3b04072345c372ff202e39357ceb4422c16db</id>
<content type='text'>
Per new conventions, we'd like to consistently use "u*" naming conventions
for modules which don't offer complete CPython compatibility, while offer
subset or similar API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Per new conventions, we'd like to consistently use "u*" naming conventions
for modules which don't offer complete CPython compatibility, while offer
subset or similar API.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Rename unix socket examples to have more precise naming (http).</title>
<updated>2014-10-09T17:35:56+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-10-09T17:35:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=a2d8f98a7ebff40e0e6271566d7d49b43966f12b'/>
<id>a2d8f98a7ebff40e0e6271566d7d49b43966f12b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ffi: Implement ffivar.get()/set() methods.</title>
<updated>2014-02-14T18:38:35+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2014-02-14T15:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=8bc3516389cd148ebeaa58ceaf3d3f7fb13440d8'/>
<id>8bc3516389cd148ebeaa58ceaf3d3f7fb13440d8</id>
<content type='text'>
Done by introducing another factored out helper API in binary.c. This API
can be reused also by array and struct modules.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Done by introducing another factored out helper API in binary.c. This API
can be reused also by array and struct modules.
</pre>
</div>
</content>
</entry>
</feed>
