1. 06 May, 2017 1 commit
  2. 30 Mar, 2017 1 commit
  3. 05 Dec, 2016 1 commit
    • Rami Ali's avatar
      stmhal: Refactor UART configuration to use pin objects. · 27a503f6
      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.
  4. 25 Aug, 2016 1 commit
  5. 12 Dec, 2015 1 commit
  6. 02 Aug, 2015 2 commits
  7. 07 Jul, 2015 1 commit
  8. 18 Apr, 2015 1 commit
  9. 24 Aug, 2014 1 commit
  10. 08 Aug, 2014 2 commits
    • Damien George's avatar
      stmhal/teensy: Use _ instead of - in source file names. · 284efa89
      Damien George authored
      Trying to move towards consistency, let's use _ exclusively in names of
      source files (eg .c, .h, .csv).
    • Dave Hylands's avatar
      Add support for selecting pin alternate functions from python. · 6f418fc1
      Dave Hylands authored
      Converts generted pins to use qstrs instead of string pointers.
      This patch also adds the following functions:
      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
      I found the following functions in my boot.py to be useful:
      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())))
  11. 08 Apr, 2014 1 commit
  12. 24 Mar, 2014 1 commit
    • Dave Hylands's avatar
      stmhal - fixed up adc stuff · 1403298a
      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.
  13. 12 Mar, 2014 1 commit
    • Dave Hylands's avatar
      Initial checkin with STM HAL · dd38d907
      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.
  14. 26 Feb, 2014 1 commit
  15. 23 Feb, 2014 1 commit
    • Dave Hylands's avatar
      Add EXTI support · ee31f71d
      Dave Hylands authored
      Revamp usrsw to use new exti code.
      Add user switch callback function.
  16. 18 Feb, 2014 1 commit
    • Dave Hylands's avatar
      Add pin mapping code. · 51dabac0
      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
      The generated pin file for PYBOARD4 looks like this:
      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.