1. 25 Aug, 2014 2 commits
    • Damien George's avatar
      stmhal: Make enable_irq and disable_irq inline functions. · e5cbb703
      Damien George authored
      These functions are generally 1 machine instruction, and are used in
      critical code, so makes sense to have them inline.
      Also leave these functions uninverted (ie 0 means enable, 1 means
      disable) and provide macro constants if you really need to distinguish
      the states.  This makes for smaller code as well (combined with
      Applied to teensy port as well.
    • Dave Hylands's avatar
      Add save/restore_irq · 9480138f
      Dave Hylands authored
      Factored irq functions into a separate file.
  2. 24 Aug, 2014 5 commits
  3. 16 Aug, 2014 4 commits
  4. 13 Aug, 2014 1 commit
  5. 12 Aug, 2014 2 commits
  6. 10 Aug, 2014 3 commits
  7. 09 Aug, 2014 2 commits
  8. 08 Aug, 2014 5 commits
  9. 06 Aug, 2014 4 commits
  10. 05 Aug, 2014 2 commits
  11. 04 Aug, 2014 2 commits
    • 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
    • Damien George's avatar
      Put call to qstr_init and mp_init_emergency_exc_buf in mp_init. · 8dbbbbc7
      Damien George authored
      qstr_init is always called exactly before mp_init, so makes sense to
      just have mp_init call it.  Similarly with
      mp_init_emergency_exception_buf.  Doing this makes the ports simpler and
      less error prone (ie they can no longer forget to call these).
  12. 03 Aug, 2014 1 commit
  13. 02 Aug, 2014 3 commits
  14. 01 Aug, 2014 1 commit
  15. 31 Jul, 2014 3 commits
    • Damien George's avatar
      stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support. · 65dd7bc1
      Damien George authored
      Some important changes to the way the file system is structured on the
      1. 0: and 1: drive names are now replaced with POSIX inspired
      directories, namely /flash and /sd.
      2. Filesystem now supports the notion of a current working directory.
      Supports the standard Python way of manipulating it: os.chdir and
      3. On boot up, current directory is /flash if no SD inserted, else /sd
      if SD inserted.  Then runs boot.py and main.py from the current dir.
      This is the same as the old behaviour, but is much more consistent and
      flexible (eg you can os.chdir in boot.py to change where main.py is run
      4. sys.path (for import) is now set to '' (current dir), plus /flash
      and /flash/lib, and then /sd and /sd/lib if SD inserted.  This, along
      with CWD, means that import now works properly.  You can import a file
      from the current directory.
      5. os.listdir is fixed to return just the basename, not the full path.
      See issue #537 for background and discussion.
    • Damien George's avatar
      py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. · bb4c6f35
      Damien George authored
      Addresses issue #724.
    • Damien George's avatar
      stmhal, accel: Increase start-up times to 30ms; add extra 30ms delay. · fa1ecda3
      Damien George authored
      For accel to start-up reliably, need to wait 30ms between on/off, and
      30ms for it to enter active mode.  With this fix the accel can be read
      immediately after initialising it.
      Addresses issue #763.