<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/accel.c, branch 2.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-07-31T08:35:40+00:00</updated>
<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>all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.</title>
<updated>2017-06-15T01:54:41+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-15T01:54:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=48d867b4a68e53901aac87c2ff0f2a7e65f735c7'/>
<id>urn:sha1:48d867b4a68e53901aac87c2ff0f2a7e65f735c7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Convert all module and method tables to use MP_ROM macros.</title>
<updated>2017-05-06T07:03:40+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-05-06T07:03:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0986675451edbdcbe31d90ddacf8f6dc3327a4ae'/>
<id>urn:sha1:0986675451edbdcbe31d90ddacf8f6dc3327a4ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Use mp_hal_delay_ms instead of HAL_Delay.</title>
<updated>2017-03-02T04:02:57+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-02T04:02:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6ab5512132d5b3d19a5bf029cb27829d41e76f8e'/>
<id>urn:sha1:6ab5512132d5b3d19a5bf029cb27829d41e76f8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: Consistently update signatures of .make_new and .call methods.</title>
<updated>2017-01-04T13:10:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-01-04T13:10:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=eac22e29a5844e5aa5c865c2e73900e6ef039ad6'/>
<id>urn:sha1:eac22e29a5844e5aa5c865c2e73900e6ef039ad6</id>
<content type='text'>
Otherwise, they serve reoccurring source of copy-paste mistakes and
breaking nanbox build.
</content>
</entry>
<entry>
<title>stmhal/i2c: Remove use of legacy I2C_NOSTRETCH_DISABLED option.</title>
<updated>2016-11-22T06:40:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-11-22T06:40:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a3320e781142ef5d4f5252e05479280e66ce3ffd'/>
<id>urn:sha1:a3320e781142ef5d4f5252e05479280e66ce3ffd</id>
<content type='text'>
In the new HAL this is renamed to I2C_NOSTRETCH_DISABLE.
</content>
</entry>
<entry>
<title>stmhal: Refactor pin usage to use mp_hal_pin API.</title>
<updated>2016-10-18T03:34:08+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-18T03:32:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d49d81b1675b39c0c29c95b105edbbb7384f9314'/>
<id>urn:sha1:d49d81b1675b39c0c29c95b105edbbb7384f9314</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/{accel,lcd}: use GPIO_{set,clear}_pin</title>
<updated>2016-09-09T08:38:08+00:00</updated>
<author>
<name>Krzysztof Blazewicz</name>
<email>krzysztof.blazewicz@uxeon.com</email>
</author>
<published>2016-09-06T15:56:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=06a1194300fd65723a60bf8cc6702d60659089fa'/>
<id>urn:sha1:06a1194300fd65723a60bf8cc6702d60659089fa</id>
<content type='text'>
different HAL versions implement GPIO differently (BSRR vs BSRRH+BSRRL),
this way both drivers are portable between different HAL's
</content>
</entry>
<entry>
<title>stmhal/accel: Raise an exception if the accel couldn't be initialised.</title>
<updated>2016-04-29T14:43:15+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-04-29T14:43:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12c61dddddb52af0d02f89c5679bfc911ae3df90'/>
<id>urn:sha1:12c61dddddb52af0d02f89c5679bfc911ae3df90</id>
<content type='text'>
On PYBLITEv1.0 there is no accelerometer and in this case the Accel()
constructor should not silently succeed.
</content>
</entry>
<entry>
<title>py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.</title>
<updated>2016-01-11T00:49:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-03T15:55:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5b3f0b7f39bd67cc9182993c288f09f67a0890df'/>
<id>urn:sha1:5b3f0b7f39bd67cc9182993c288f09f67a0890df</id>
<content type='text'>
The first argument to the type.make_new method is naturally a uPy type,
and all uses of this argument cast it directly to a pointer to a type
structure.  So it makes sense to just have it a pointer to a type from
the very beginning (and a const pointer at that).  This patch makes
such a change, and removes all unnecessary casting to/from mp_obj_t.
</content>
</entry>
</feed>
