<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/mpconfig.h, 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-11-03T01:33:01+00:00</updated>
<entry>
<title>py: Add MICROPY_FLOAT_CONST macro for defining float constants.</title>
<updated>2016-11-03T01:33:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-11-03T01:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=561844f3ba2dc81ce37c58468099042e27cd422b'/>
<id>urn:sha1:561844f3ba2dc81ce37c58468099042e27cd422b</id>
<content type='text'>
All float constants in the core should use this macro to prevent
unnecessary creation of double-precision floats, which makes code less
efficient.
</content>
</entry>
<entry>
<title>py: Change config default so m_malloc0 uses memset if GC not enabled.</title>
<updated>2016-11-02T23:16:31+00:00</updated>
<author>
<name>Colin Hogben</name>
<email>colin@infinnovation.co.uk</email>
</author>
<published>2016-10-31T14:52:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=828df54bfeaa4a31040fa534dd2961cc9b4ac16e'/>
<id>urn:sha1:828df54bfeaa4a31040fa534dd2961cc9b4ac16e</id>
<content type='text'>
With MICROPY_ENABLE_GC set to false the alternate memory manager may not
clear all memory that is allocated, so it must be cleared in m_malloc0.
</content>
</entry>
<entry>
<title>extmod/utime_mphal: Allow ticks functions period be configurable by a port.</title>
<updated>2016-10-30T00:02:07+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-30T00:02:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=76146b3d9ab0ab88ce0f0d1cfa0235ec0758a4a9'/>
<id>urn:sha1:76146b3d9ab0ab88ce0f0d1cfa0235ec0758a4a9</id>
<content type='text'>
Using MICROPY_PY_UTIME_TICKS_PERIOD config var.
</content>
</entry>
<entry>
<title>extmod/utime_mphal: Factor out implementations in terms of mp_hal_* for reuse.</title>
<updated>2016-10-14T17:14:01+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-14T17:13:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a97284423eba9470c16c5f02fadea14bd8263751'/>
<id>urn:sha1:a97284423eba9470c16c5f02fadea14bd8263751</id>
<content type='text'>
As long as a port implement mp_hal_sleep_ms(), mp_hal_ticks_ms(), etc.
functions, it can just use standard implementations of utime.sleel_ms(),
utime.ticks_ms(), etc. Python-level functions.
</content>
</entry>
<entry>
<title>py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled.</title>
<updated>2016-09-05T02:18:53+00:00</updated>
<author>
<name>Delio Brignoli</name>
<email>brignoli.delio@gmail.com</email>
</author>
<published>2016-08-21T09:33:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e2ac8bb3f14b076a29244022865e3b47c6c0800a'/>
<id>urn:sha1:e2ac8bb3f14b076a29244022865e3b47c6c0800a</id>
<content type='text'>
This new config option allows to control whether MicroPython uses its own
internal printf or not (if not, an external one should be linked in).
Accompanying this new option is the inclusion of lib/utils/printf.c in the
core list of source files, so that ports no longer need to include it
themselves.
</content>
</entry>
<entry>
<title>extmod: Add machine_spi with generic SPI C-protocol and helper methods.</title>
<updated>2016-09-01T05:07:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-01T05:07:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0823c1baf864f2e8fd60e49a5e42a958fd89ff43'/>
<id>urn:sha1:0823c1baf864f2e8fd60e49a5e42a958fd89ff43</id>
<content type='text'>
The idea is that all ports can use these helper methods and only need to
provide initialisation of the SPI bus, as well as a single transfer
function.  The coding pattern follows the stream protocol and helper
methods.
</content>
</entry>
<entry>
<title>py/gc: Add MICROPY_GC_CONSERVATIVE_CLEAR option to always zero memory.</title>
<updated>2016-08-26T05:35:26+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-08-26T05:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5ffe1d8dc07930818bbac6a88bec2aa5bd973402'/>
<id>urn:sha1:5ffe1d8dc07930818bbac6a88bec2aa5bd973402</id>
<content type='text'>
There can be stray pointers in memory blocks that are not properly zero'd
after allocation.  This patch adds a new config option to always zero all
allocated memory (via gc_alloc and gc_realloc) and hence help to eliminate
stray pointers.

See issue #2195.
</content>
</entry>
<entry>
<title>extmod/modubinascii: Make crc32() support configurable.</title>
<updated>2016-08-24T15:28:43+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-24T15:28:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c4283675439d549fac09c5695aa5f8d6c3319dd5'/>
<id>urn:sha1:c4283675439d549fac09c5695aa5f8d6c3319dd5</id>
<content type='text'>
Disable by default, enable in unix port.
</content>
</entry>
<entry>
<title>py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.</title>
<updated>2016-08-07T19:36:05+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-07T19:36:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1bc2911174aa975bbcb15cd70dd2dabfc7c8c535'/>
<id>urn:sha1:1bc2911174aa975bbcb15cd70dd2dabfc7c8c535</id>
<content type='text'>
Similar to existing MP_NOINLINE.
</content>
</entry>
<entry>
<title>py/objstr: Make .partition()/.rpartition() methods configurable.</title>
<updated>2016-08-07T03:46:55+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-07T03:46:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=56eb25f04928132f9921a1163684e626256e2a2c'/>
<id>urn:sha1:56eb25f04928132f9921a1163684e626256e2a2c</id>
<content type='text'>
Default is disabled, enabled for unix port. Saves 600 bytes on x86.
</content>
</entry>
</feed>
