<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/modpyb.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-10-21T05:26:01+00:00</updated>
<entry>
<title>py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros.</title>
<updated>2016-10-21T05:26:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-18T00:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2'/>
<id>urn:sha1:4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2</id>
<content type='text'>
In order to have more fine-grained control over how builtin functions are
constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific,
with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW.  These names now
match the MP_DEFINE_CONST_FUN_OBJ macros.
</content>
</entry>
<entry>
<title>stmhal/modutime: Refactor to use extmod/utime_mphal.c.</title>
<updated>2016-10-14T17:42:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-14T17:42:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f059563507502d996c1d7dae3db6dc5a6b83d97b'/>
<id>urn:sha1:f059563507502d996c1d7dae3db6dc5a6b83d97b</id>
<content type='text'>
This includes making sure that utime_mphal's sleep_ms() and sleep_us()
don't sleep on negative arguments.
</content>
</entry>
<entry>
<title>all: Remove 'name' member from mp_obj_module_t struct.</title>
<updated>2016-09-21T14:23:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-21T00:52:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=93c4a6a3f70e389b466fbc7a4f1ad2e1df87c93f'/>
<id>urn:sha1:93c4a6a3f70e389b466fbc7a4f1ad2e1df87c93f</id>
<content type='text'>
One can instead lookup __name__ in the modules dict to get the value.
</content>
</entry>
<entry>
<title>stmhal: Expose flash and SD card as proper objects with block protocol.</title>
<updated>2016-02-10T23:40:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-10T16:21:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3770cd2e7062d0844cee7b69ec9d9f80a2ad1206'/>
<id>urn:sha1:3770cd2e7062d0844cee7b69ec9d9f80a2ad1206</id>
<content type='text'>
You can now create (singleton) objects representing the flash and SD
card, using:

    flash = pyb.Flash()
    sdcard = pyb.SDCard()

These objects provide the block protocol.
</content>
</entry>
<entry>
<title>extmod/fsusermount: Introduce separate mkfs() function.</title>
<updated>2016-02-09T22:50:07+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-02-09T22:50:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5b85a86ce3aaabac49083e2699c90d011a1e4de3'/>
<id>urn:sha1:5b85a86ce3aaabac49083e2699c90d011a1e4de3</id>
<content type='text'>
Per the previously discussed plan. mount() still stays backward-compatible,
and new mkfs() is rought and takes more args than needed. But is a step
in a forward direction.
</content>
</entry>
<entry>
<title>stmhal: Add pyb.irq_stats() to get statistics about IRQ calls.</title>
<updated>2015-12-22T21:00:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-10T13:25:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=401af50dc081faa421e7caef18fde2beb15632e4'/>
<id>urn:sha1:401af50dc081faa421e7caef18fde2beb15632e4</id>
<content type='text'>
Adds a lot of code, makes IRQs a bit less efficient, but is very useful
for debugging.  Usage: pyb.irq_stats() returns a memory view that can be
read and written, eg:

    list(pyb.irq_stats())
    pyb.irq_stats()[0]
    pyb.irq_stats()[0] = 0

The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be
modified to provide further IRQ statistics if desired.
</content>
</entry>
<entry>
<title>extmod: Move fsusermount.c from stmhal for cross-port reuse.</title>
<updated>2015-11-25T11:19:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-24T22:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3a1bbcc2ef46bbab90ef3cde88dfcd8810e71d74'/>
<id>urn:sha1:3a1bbcc2ef46bbab90ef3cde88dfcd8810e71d74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/pyexec: Move header pyexec.h from stmhal directory.</title>
<updated>2015-11-09T13:13:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-09T13:13:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=40274fec9c0f8e1ce06f999927f550106b9aa5e8'/>
<id>urn:sha1:40274fec9c0f8e1ce06f999927f550106b9aa5e8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Implement os.dupterm (was pyb.repl_uart).</title>
<updated>2015-10-19T20:57:41+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-10-19T20:57:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=83158e0e7f12d0454bb5efb27cd9071123e3be75'/>
<id>urn:sha1:83158e0e7f12d0454bb5efb27cd9071123e3be75</id>
<content type='text'>
pyb.repl_uart still exists but points to os.dupterm.
</content>
</entry>
<entry>
<title>stmhal: Add sleep_{ms,us} and ticks_{ms,us,cpu,diff} to time module.</title>
<updated>2015-10-19T20:45:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-10-19T20:29:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d8066e999d7ed27a2ebef449926d9772119296cf'/>
<id>urn:sha1:d8066e999d7ed27a2ebef449926d9772119296cf</id>
<content type='text'>
pyb module still has pyb.delay and pyb.udelay, but these now point to
time.sleep_ms and time.sleep_us respectively.
</content>
</entry>
</feed>
