micropython/stmhal/boards
Dave Hylands 6f418fc1b0 Add support for selecting pin alternate functions from python.
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())))
```
2014-08-07 23:15:41 -07:00
..
HYDRABUS stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
NETDUINO_PLUS_2 stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
PYBV3 stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
PYBV4 stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
PYBV10 stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
STM32F4DISC stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
make-pins.py Add support for selecting pin alternate functions from python. 2014-08-07 23:15:41 -07:00
stm32f4xx-af.csv Add missing commas to stm32f4xx-af.csv 2014-06-02 23:11:14 -07:00
stm32f4xx-prefix.c Add support for selecting pin alternate functions from python. 2014-08-07 23:15:41 -07:00