1. 21 Sep, 2016 1 commit
  2. 09 Nov, 2015 1 commit
  3. 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
  4. 29 Oct, 2015 1 commit
  5. 11 Oct, 2015 1 commit
  6. 13 Feb, 2015 1 commit
  7. 01 Jan, 2015 1 commit
  8. 29 Nov, 2014 1 commit
  9. 28 Sep, 2014 1 commit
  10. 19 Sep, 2014 1 commit
  11. 25 Aug, 2014 1 commit
  12. 03 Aug, 2014 1 commit
  13. 15 Jul, 2014 1 commit
  14. 03 Jul, 2014 1 commit
  15. 16 Jun, 2014 1 commit
  16. 15 Jun, 2014 1 commit
    • Damien George's avatar
      stmhal: Add Python function to set UART for REPL. · 25479281
      Damien George authored
      This adds a hook to get/set pyb_uart_global_debug from Python, using
      pyb.repl_uart().  You can set it to an arbitrary UART object, and then
      the REPL (in and out) is repeated on this UART object (as well as on USB
      CDC).
      
      Ultimately, this will be replaced with a proper Pythonic interface to
      set sys.stdin and sys.stdout.
      25479281
  17. 14 Jun, 2014 1 commit
  18. 08 Jun, 2014 1 commit
  19. 21 May, 2014 1 commit
  20. 19 May, 2014 1 commit
  21. 18 May, 2014 2 commits
  22. 08 May, 2014 1 commit
  23. 05 May, 2014 1 commit
  24. 03 May, 2014 3 commits
  25. 29 Apr, 2014 1 commit
    • Damien George's avatar
      stmhal: Add documentation in comments, and script to generate HTML. · 8d09640b
      Damien George authored
      Decided to write own script to pull documentation from comments in C code.
      Style for writing auto generated documentation is: start line with ///
      and then use standard markdown to write the comment.  Keywords
      recognised by the scraper begin with backslash.  See code for examples.
      
      Running: python gendoc.py modpyb.c accel.c adc.c dac.c extint.c i2c.c
      led.c pin.c rng.c servo.c spi.c uart.c usrsw.c, will generate a HTML
      structure in gendoc-out/.
      
      gendoc.py is crude but functional.  Needed something quick, and this was
      it.
      8d09640b
  26. 26 Apr, 2014 1 commit
  27. 21 Apr, 2014 3 commits
    • Damien George's avatar
      stmhal: Make switch a class, to follow suit of all other modules. · 6125ba4a
      Damien George authored
      Instead of pyb.switch() as a function, it's more consistent (with
      respect to all the other modules and peripherals) to have
      pyb.Switch() create a switch object.  This then generalises to having
      multiple switches.  Call the object to get its state.  Use sw.callback
      to set the callback function for when the switch is pressed.
      6125ba4a
    • Damien George's avatar
      stmhal: Add Timer class: simple TIM control, incl callback on IRQ. · 7fdfa937
      Damien George authored
      Simple but functional timer control.  More sophistication will
      eventually be added, or for now just use direct register access :)
      
      Also added pyb.freq() function to get MCU clock frequencies.
      7fdfa937
    • Damien George's avatar
      stmhal: Rename USART to UART. · 75337003
      Damien George authored
      It's really a UART because there is no external clock line (and hence no
      synchronous ability, at least in the implementation of this module).
      USART should be reserved for a module that has "S"ynchronous capabilities.
      
      Also, UART is shorter and easier to type :)
      75337003
  28. 19 Apr, 2014 3 commits
  29. 18 Apr, 2014 4 commits
  30. 16 Apr, 2014 1 commit