1. 01 Jan, 2015 1 commit
  2. 08 Dec, 2014 1 commit
    • Paul Sokolovsky's avatar
      modsys: Add sys.print_exception(exc, file=sys.stdout) function. · 46c3ab20
      Paul Sokolovsky authored
      The function is modeled after traceback.print_exception(), but unbloated,
      and put into existing module to save overhead on adding another module.
      Compliant traceback.print_exception() is intended to be implemented in
      micropython-lib in terms of sys.print_exception().
      
      This change required refactoring mp_obj_print_exception() to take pfenv_t
      interface arguments.
      
      Addresses #751.
      46c3ab20
  3. 29 Sep, 2014 1 commit
  4. 28 Sep, 2014 1 commit
    • Dave Hylands's avatar
      Fix timer overflow code. · 39296b40
      Dave Hylands authored
      Teensy doesn't need to worry about overflows since all of
      its timers are only 16-bit.
      
      For PWM, the pulse width needs to be able to vary from 0..period+1
      (pulse-width == period+1 corresponds to 100% PWM)
      
      I couldn't test the 0xffffffff cases since we can't currently get a
      period that big in python. With a prescaler of 0, that corresponds
      to a freq of 0.039 (i.e. cycle every 25.56 seconds), and we can't
      set that using freq or period.
      
      I also tested both stmhal and teensy with floats disabled, which
      required a few other code changes to compile.
      39296b40
  5. 25 Sep, 2014 1 commit
  6. 24 Sep, 2014 1 commit
    • Dave Hylands's avatar
      Add pulse_width_percent to teensy. · 53d5fa64
      Dave Hylands authored
      Fix stmhal and teensy print routines to report actual prescaler an period.
      Fix teensy build to use soft-float
      Add USE_ARDUINO_TOOLCHAIN option to teensy build
      53d5fa64
  7. 19 Sep, 2014 1 commit