summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/boards/make-pins.py
Commit message (Collapse)AuthorAge
* all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.Damien George2017-08-21
|
* stmhal: Convert all module and method tables to use MP_ROM macros.Damien George2017-05-06
|
* stmhal: Support SDMMC alternate functions in pin generation.Damien George2017-03-30
|
* stmhal: Refactor UART configuration to use pin objects.Rami Ali2016-12-05
| | | | | | This follows the pattern of other peripherals (I2C, SPI) to specify the pins using pin objects instead of a pair of GPIO port and pin number. It makes it easier to customise the UART pins for a particular board.
* stmhal: Make ADC channel 16 available on L4 MCUs.Matt Brejza2016-08-25
|
* stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx.Damien George2015-12-12
| | | | | | Previously, SPI was configured by a board defining MICROPY_HW_ENABLE_SPIx to 0 or 1. Now, the board should define MICROPY_HW_SPIx_SCK, MISO, MOSI and NSS. This makes it the same as how I2C is configured.
* stmhal: Add support for USART1 and conditional pins in make-pins.py.Damien George2015-08-03
| | | | Thanks to Dave Hylands for the patch.
* stmhal: Fix make-pins.py to allow Port K.Damien George2015-08-03
| | | | Thanks to Dave Hylands for the patch.
* stmhal: Add I2S support to make-pins.pyDave Hylands2015-07-07
|
* stmhal: For pins, define macros mapping board names to cpu names.Damien George2015-04-18
|
* Added python script to map AF to a pin nameDave Hylands2014-08-24
| | | | Added some functions to Pin class to query mode, pull, and af
* stmhal/teensy: Use _ instead of - in source file names.Damien George2014-08-08
| | | | | Trying to move towards consistency, let's use _ exclusively in names of source files (eg .c, .h, .csv).
* Add support for selecting pin alternate functions from python.Dave Hylands2014-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()))) ```
* Fix make-pins.py to support having multiple names for a pin.Dave Hylands2014-04-08
| | | | SW and X17 now both map to PB3
* stmhal - fixed up adc stuffDave Hylands2014-03-24
| | | | | | | | 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.
* Initial checkin with STM HALDave Hylands2014-03-11
This compiles and links, but hasn't been tested on a board yet and even if it was run, it doesn't currently do anything.