<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/pin.h, branch esp-extra-scripts</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=esp-extra-scripts</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=esp-extra-scripts'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-02-11T05:20:14+00:00</updated>
<entry>
<title>stmhal: Add a function for setting the pin alternate function</title>
<updated>2016-02-11T05:20:14+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2016-02-11T05:20:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7bb501ef9f724e9ecd209d1fa46b640214928d2a'/>
<id>urn:sha1:7bb501ef9f724e9ecd209d1fa46b640214928d2a</id>
<content type='text'>
mp_hal_gpio_set_af will search for a given function and unit
and set the alternate function to the alternate function index
found.
</content>
</entry>
<entry>
<title>Add Timer support (PWM, OC, IC) for stmhal and teensy</title>
<updated>2014-09-19T16:26:13+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-08-20T20:21:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=becbc87fd73c98664b472b4a06c2b54558dd5669'/>
<id>urn:sha1:becbc87fd73c98664b472b4a06c2b54558dd5669</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for selecting pin alternate functions from python.</title>
<updated>2014-08-08T06:15:41+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-07-22T14:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6f418fc1b068c1a41113bb2b019a5803765e1deb'/>
<id>urn:sha1:6f418fc1b068c1a41113bb2b019a5803765e1deb</id>
<content type='text'>
Converts generted pins to use qstrs instead of string pointers.

This patch also adds the following functions:
pyb.Pin.names()
pyb.Pin.af_list()
pyb.Pin.gpio()

dir(pyb.Pin.board) and dir(pyb.Pin.cpu) also produce useful results.

pyb.Pin now takes kw args.

pyb.Pin.__str__ now prints more useful information about the pin
configuration.

I found the following functions in my boot.py to be useful:
```python
def pins():
    for pin_name in dir(pyb.Pin.board):
        pin = pyb.Pin(pin_name)
        print('{:10s} {:s}'.format(pin_name, str(pin)))

def af():
    for pin_name in dir(pyb.Pin.board):
        pin = pyb.Pin(pin_name)
        print('{:10s} {:s}'.format(pin_name, str(pin.af_list())))
```
</content>
</entry>
<entry>
<title>stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc.</title>
<updated>2014-08-04T10:09:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-04T10:09:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ccacdf44b6c5241ce05769e777008767a7ed8939'/>
<id>urn:sha1:ccacdf44b6c5241ce05769e777008767a7ed8939</id>
<content type='text'>
Make a clearer distinction between init functions that must be done
before any scripts can run (xxx_init0) and those that can be safely
deferred (xxx_init).

Fix bug initialising USB VCP exception.  Addresses issue #788.

Re-order some init function to improve reliability of
reset/soft-reset.
</content>
</entry>
<entry>
<title>Merge branch 'teensy-new' of github.com:dhylands/micropython into dhylands-teensy-new</title>
<updated>2014-07-02T12:42:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-07-02T12:42:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7a37f647a5d953a47a6147cf8302e08f27537771'/>
<id>urn:sha1:7a37f647a5d953a47a6147cf8302e08f27537771</id>
<content type='text'>
Conflicts:
	stmhal/pin_named_pins.c
	stmhal/readline.c

Renamed HAL_H to MICROPY_HAL_H.  Made stmhal/mphal.h which intends to
define the generic Micro Python HAL, which in stmhal sits above the ST
HAL.
</content>
</entry>
<entry>
<title>Updated teensy to build.</title>
<updated>2014-06-16T05:48:05+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-06-16T05:33:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4f1b7fec9f103c92de40875e9a06b7decc4923f4'/>
<id>urn:sha1:4f1b7fec9f103c92de40875e9a06b7decc4923f4</id>
<content type='text'>
Refactored some stmhal files which are shared with teensy.
</content>
</entry>
<entry>
<title>Add license header to (almost) all files.</title>
<updated>2014-05-03T22:27:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-03T22:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04b9147e150d2d6fa3750f312fe328b6a71c1b28'/>
<id>urn:sha1:04b9147e150d2d6fa3750f312fe328b6a71c1b28</id>
<content type='text'>
Blanket wide to all .c and .h files.  Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.

Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
</content>
</entry>
<entry>
<title>stmhal: Big cleanup; merge gpio into Pin; make names consistent.</title>
<updated>2014-04-18T21:38:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-18T21:38:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c66d86c5ce068e860ceb550ad75bf4da5211276b'/>
<id>urn:sha1:c66d86c5ce068e860ceb550ad75bf4da5211276b</id>
<content type='text'>
This is an attempt to clean up the Micro Python API on the pyboard.
Gpio functionality is now in the Pin object, which seems more natural.
Constants for MODE and PULL are now in pyb.Pin.  Names of some
classes have been adjusted to conform to CamelCase.  Other
miscellaneous changes and clean up here and there.
</content>
</entry>
<entry>
<title>stmhal - fixed up adc stuff</title>
<updated>2014-03-24T18:16:35+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-03-24T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1403298a653fdb1ed3604bab71ce17200e5017f7'/>
<id>urn:sha1:1403298a653fdb1ed3604bab71ce17200e5017f7</id>
<content type='text'>
Added support for the ADC channels and mappings to make_pins.py

I'm not sure if the hal properly deals with the channel 16/18 differences
between the 40x and 42x. It seems to deal with it partially. This particular
aspect will need testing on a 42x or 43x.
</content>
</entry>
<entry>
<title>REPl working on UART6 with STMHAL</title>
<updated>2014-03-13T01:15:55+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-03-13T01:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f14b92b9e13c9cb9f54a1d740dbea1eeedeccb5b'/>
<id>urn:sha1:f14b92b9e13c9cb9f54a1d740dbea1eeedeccb5b</id>
<content type='text'>
</content>
</entry>
</feed>
