<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/ports/stm32/modpyb.c, branch main</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2019-10-13T15:08:52+00:00</updated>
<entry>
<title>remove ports/stm32</title>
<updated>2019-10-13T15:08:52+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-10-13T15:08:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fc033bd954a46156d6902392f8ae21ac2872bb1c'/>
<id>urn:sha1:fc033bd954a46156d6902392f8ae21ac2872bb1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32/modpyb: Remove unused includes and clean up comments.</title>
<updated>2018-05-14T04:01:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-14T04:01:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fb25c810629114092e173da578348410a21192bc'/>
<id>urn:sha1:fb25c810629114092e173da578348410a21192bc</id>
<content type='text'>
The documentation (including the examples) for elapsed_millis and
elapsed_micros can be found in docs/library/pyb.rst so doesn't need to be
written in full in the source code.
</content>
</entry>
<entry>
<title>stm32/pyb_i2c: Put pyb.I2C under MICROPY_PY_PYB_LEGACY setting.</title>
<updated>2018-05-14T03:53:46+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-14T03:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=88c26a48b4a3c8850ff2677b2f0ce8c90ba8e660'/>
<id>urn:sha1:88c26a48b4a3c8850ff2677b2f0ce8c90ba8e660</id>
<content type='text'>
When disabled, the pyb.I2C class saves around 8k of code space and 172
bytes of RAM.  The same functionality is now available in machine.I2C
(for F4 and F7 MCUs).

It is still enabled by default.
</content>
</entry>
<entry>
<title>stm32/modpyb: Introduce MICROPY_PY_PYB_LEGACY config option for pyb mod.</title>
<updated>2018-05-14T03:49:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-14T03:49:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=92c5e2708d48a114f209a2299babb2c6de78ce22'/>
<id>urn:sha1:92c5e2708d48a114f209a2299babb2c6de78ce22</id>
<content type='text'>
This is enabled by default.  When it is disabled all legacy functions and
classes in the pyb module are excluded from the build.
</content>
</entry>
<entry>
<title>stm32/uart: Allow ctrl-C to work with UARTs put on REPL via os.dupterm.</title>
<updated>2018-04-23T10:44:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-04-23T10:44:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a60efa8202d84a2d3efe522009d700dac289538e'/>
<id>urn:sha1:a60efa8202d84a2d3efe522009d700dac289538e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32: Add board config option to enable/disable the ADC.</title>
<updated>2018-02-22T03:22:45+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-02-22T03:22:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=60b0982bb2d82b1c7b026a6f9e227e6dc837b005'/>
<id>urn:sha1:60b0982bb2d82b1c7b026a6f9e227e6dc837b005</id>
<content type='text'>
The new option is MICROPY_HW_ENABLE_ADC and is enabled by default.
</content>
</entry>
<entry>
<title>stm32: Introduce MICROPY_HW_ENABLE_USB and clean up USB config.</title>
<updated>2018-02-13T07:51:08+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-02-13T07:51:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5c320bd0b093f44cad19046d84a63e5ed4e7fc87'/>
<id>urn:sha1:5c320bd0b093f44cad19046d84a63e5ed4e7fc87</id>
<content type='text'>
This patch allows to completely compile-out support for USB, and no-USB is
now the default.  If a board wants to enable USB it should define:

    #define MICROPY_HW_ENABLE_USB (1)

And then one or more of the following to select the USB PHY:

    #define MICROPY_HW_USB_FS (1)
    #define MICROPY_HW_USB_HS (1)
    #define MICROPY_HW_USB_HS_IN_FS (1)
</content>
</entry>
<entry>
<title>stm32: Add support for DHT11/DHT22 sensors.</title>
<updated>2018-01-31T07:12:53+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-01-31T07:12:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=efdda2c62deba4f4f24672e441cffe496158bb35'/>
<id>urn:sha1:efdda2c62deba4f4f24672e441cffe496158bb35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stm32: Allow to build a board without any hardware I2C ports defined.</title>
<updated>2017-12-22T04:20:42+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-12-22T04:20:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c73360bfdbecb0e2143147a7e7223c8161938456'/>
<id>urn:sha1:c73360bfdbecb0e2143147a7e7223c8161938456</id>
<content type='text'>
This patch adds in internal config value MICROPY_HW_ENABLE_HW_I2C that is
automatically configured, and enabled only if one or more hardware I2C
ports are defined in the mpconfigboard.h file.  If none are defined then
the pyb.I2C class is excluded from the build, along with all supporting
code.  The machine.I2C class will still be available for software I2C.

Disabling all hardware I2C on an F4 board saves around 10,000 bytes of code
and 200 bytes of RAM.
</content>
</entry>
<entry>
<title>stm32: Make uos.dupterm() conform to specs by using extmod version.</title>
<updated>2017-10-19T03:16:42+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-19T03:16:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d6bf3658f44e22f06e0d293b8fe0542b57538b4f'/>
<id>urn:sha1:d6bf3658f44e22f06e0d293b8fe0542b57538b4f</id>
<content type='text'>
The legacy function pyb.repl_uart() is still provided and retains its
original behaviour (it only accepts a UART object).  uos.dupterm() will now
accept any object with write/readinto methods.  At the moment there is just
1 dupterm slot.
</content>
</entry>
</feed>
