1. 04 Aug, 2014 1 commit
    • Damien George's avatar
      stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. · ccacdf44
      Damien George authored
      Make a clearer distinction between init functions that must be done
      before any scripts can run (xxx_init0) and those that can be safely
      deferred (xxx_init).
      
      Fix bug initialising USB VCP exception.  Addresses issue #788.
      
      Re-order some init function to improve reliability of
      reset/soft-reset.
      ccacdf44
  2. 03 Jul, 2014 1 commit
  3. 19 Jun, 2014 1 commit
  4. 06 May, 2014 1 commit
  5. 05 May, 2014 1 commit
  6. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  7. 02 May, 2014 1 commit
  8. 29 Apr, 2014 2 commits
    • Damien George's avatar
      stmhal: Oops, typo. · da9f2710
      Damien George authored
      da9f2710
    • 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
  9. 26 Apr, 2014 2 commits
  10. 20 Apr, 2014 1 commit
  11. 19 Apr, 2014 2 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. 08 Apr, 2014 2 commits
  14. 05 Apr, 2014 1 commit
  15. 30 Mar, 2014 2 commits
    • Damien George's avatar
      Merge map.h into obj.h. · df6567e6
      Damien George authored
      Pretty much everyone needs to include map.h, since it's such an integral
      part of the Micro Python object implementation.  Thus, the definitions
      are now in obj.h instead.  map.h is removed.
      df6567e6
    • 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
  16. 29 Mar, 2014 1 commit
  17. 26 Mar, 2014 4 commits
  18. 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.
      1403298a
  19. 15 Mar, 2014 1 commit
  20. 08 Mar, 2014 1 commit
  21. 27 Feb, 2014 1 commit
  22. 26 Feb, 2014 1 commit
  23. 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.
      ee31f71d