1. 06 Oct, 2016 1 commit
  2. 05 Oct, 2016 1 commit
  3. 03 Oct, 2016 2 commits
  4. 26 May, 2016 1 commit
  5. 22 Apr, 2016 1 commit
  6. 21 Apr, 2016 1 commit
    • Tobias Badertscher's avatar
      stmhal: L4: Modify mphalport to support L4 MCU. · dda1a412
      Tobias Badertscher authored
      __GPIOI_CLK_ENABLE is defined in hal/l4/inc/Legacy/stm32_hal_legacy.h
      as __HAL_RCC_GPIOI_CLK_ENABLE, and that latter macro is not defined
      anywhere else (because the L4 does not have port GPIOI).  So the test
      for GPIOI is needed, along with the test for the CLK_ENABLE macro.
      dda1a412
  7. 12 Apr, 2016 2 commits
  8. 11 Feb, 2016 1 commit
  9. 31 Oct, 2015 1 commit
    • Damien George's avatar
      all: Add py/mphal.h and use it in all ports. · 731f3592
      Damien George authored
      py/mphal.h contains declarations for generic mp_hal_XXX functions, such
      as stdio and delay/ticks, which ports should provide definitions for.  A
      port will also provide mphalport.h with further HAL declarations.
      731f3592
  10. 30 Oct, 2015 1 commit
  11. 27 Oct, 2015 1 commit
  12. 07 Aug, 2015 1 commit
  13. 02 Aug, 2015 1 commit
  14. 29 Jul, 2015 2 commits
  15. 13 Feb, 2015 1 commit
  16. 27 Nov, 2014 1 commit
  17. 23 Oct, 2014 1 commit
  18. 08 Aug, 2014 1 commit
    • 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:
      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())))
      ```
      6f418fc1