1. 27 Jun, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Move stack_ctrl_init() to mp_init(). · 8a96ebea
      Paul Sokolovsky authored
      As stack checking is enabled by default, ports which don't call
      stack_ctrl_init() are broken now (report RuntimeError on startup). Save
      them trouble and just init stack control framework in interpreter init.
      8a96ebea
  2. 26 Jun, 2014 1 commit
  3. 19 Jun, 2014 1 commit
  4. 14 Jun, 2014 4 commits
  5. 24 May, 2014 1 commit
  6. 10 May, 2014 1 commit
  7. 03 May, 2014 2 commits
  8. 30 Apr, 2014 1 commit
  9. 26 Apr, 2014 1 commit
  10. 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
  11. 19 Apr, 2014 3 commits
  12. 18 Apr, 2014 1 commit
    • Damien George's avatar
      stmhal: Big cleanup; merge gpio into Pin; make names consistent. · c66d86c5
      Damien George authored
      This is an attempt to clean up the Micro Python API on the pyboard.
      Gpio functionality is now in the Pin object, which seems more natural.
      Constants for MODE and PULL are now in pyb.Pin.  Names of some
      classes have been adjusted to conform to CamelCase.  Other
      miscellaneous changes and clean up here and there.
      c66d86c5
  13. 17 Apr, 2014 2 commits
  14. 16 Apr, 2014 1 commit
  15. 15 Apr, 2014 2 commits
  16. 13 Apr, 2014 2 commits
  17. 09 Apr, 2014 2 commits
  18. 08 Apr, 2014 1 commit
  19. 03 Apr, 2014 1 commit
  20. 02 Apr, 2014 1 commit
  21. 30 Mar, 2014 2 commits
    • Damien George's avatar
      Rename rt_* to mp_*. · d17926db
      Damien George authored
      Mostly just a global search and replace.  Except rt_is_true which
      becomes mp_obj_is_true.
      
      Still would like to tidy up some of the names, but this will do for now.
      d17926db
    • Damien George's avatar
      stmhal: Implement selector for USB device mode; improve boot up. · 038df431
      Damien George authored
      Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID.
      Choice is made by an option in boot.py, with default being CDC+MSC.
      HID+MSC is not currently supported, but should be easy to implement.
      
      Boot up now has ability to change the reset mode: hold down USR switch
      while booting and LEDs will count from 1 to 7 to indicate the boot mode.
      Release USR when correct mode is selected.  Current modes are 1 (normal
      boot), 2 (safe mode), 3 (reset FS mode).
      038df431
  22. 29 Mar, 2014 1 commit
  23. 25 Mar, 2014 4 commits
  24. 24 Mar, 2014 1 commit