- 06 May, 2017 1 commit
-
-
Damien George authored
-
- 30 Mar, 2017 1 commit
-
-
Damien George authored
-
- 05 Dec, 2016 1 commit
-
-
Rami Ali authored
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.
-
- 25 Aug, 2016 1 commit
-
-
Matt Brejza authored
-
- 12 Dec, 2015 1 commit
-
-
Damien George authored
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.
-
- 02 Aug, 2015 2 commits
-
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
- 07 Jul, 2015 1 commit
-
-
Dave Hylands authored
-
- 18 Apr, 2015 1 commit
-
-
Damien George authored
-
- 24 Aug, 2014 1 commit
-
-
Dave Hylands authored
Added some functions to Pin class to query mode, pull, and af
-
- 08 Aug, 2014 2 commits
-
-
Damien George authored
Trying to move towards consistency, let's use _ exclusively in names of source files (eg .c, .h, .csv).
-
Dave Hylands authored
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()))) ```
-
- 08 Apr, 2014 1 commit
-
-
Dave Hylands authored
SW and X17 now both map to PB3
-
- 24 Mar, 2014 1 commit
-
-
Dave Hylands authored
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.
-
- 12 Mar, 2014 1 commit
-
-
Dave Hylands authored
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.
-
- 26 Feb, 2014 1 commit
-
-
Damien George authored
-
- 23 Feb, 2014 1 commit
-
-
Dave Hylands authored
Revamp usrsw to use new exti code. Add user switch callback function.
-
- 18 Feb, 2014 1 commit
-
-
Dave Hylands authored
This commit also introduces board directories and moves board specific config into the appropriate board directory. boards/stm32f4xx-af.csv was extracted from the STM32F4xx datasheet and hand-tweaked. make-pins.py takes boards/stm32f4xx-af.csv, boards/stm32f4xx-prefix.c, and boards/BOARD-NAME/pins.csv as input and generates the file build/pins_BOARD_NAME.c The generated pin file for PYBOARD4 looks like this: https://gist.github.com/dhylands/9063231 The generated pins file includes all of the supported alternate functions, and includes upsupported alternate functions as comments. See the commnet block at the top of stm/pin_map.c for details on how to use the pin mapper. I also went ahead and modified stm/gpio.c to use the pin mapper.
-