1. 11 Jun, 2014 1 commit
  2. 18 May, 2014 1 commit
  3. 08 May, 2014 1 commit
  4. 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
  5. 21 Apr, 2014 6 commits
  6. 20 Apr, 2014 2 commits
  7. 19 Apr, 2014 5 commits
  8. 18 Apr, 2014 4 commits
  9. 16 Apr, 2014 1 commit
  10. 15 Apr, 2014 2 commits
  11. 14 Apr, 2014 1 commit
  12. 10 Apr, 2014 1 commit
    • Damien George's avatar
      stmhal: Add stm module, which contains some constants for the MCU. · 3f489845
      Damien George authored
      Also contains raw memory read/write functions, read8, read16, read32,
      write8, write16, write32.  Can now do:
      
      stm.write16(stm.GPIOA + stm.GPIO_BSRRL, 1 << 13)
      
      This turns on the red LED.
      
      With the new constant folding, the above constants for the GPIO address
      are actually compiled to constants (and the addition done) at compile
      time.  For viper code and inline assembler, this optimisation will make
      a big difference.  In the inline assembler, using these constants would
      not be possible without this constant folding.
      3f489845
  13. 08 Apr, 2014 2 commits
  14. 05 Apr, 2014 1 commit
    • Damien George's avatar
      py: Replace stream_p with *stream_p in mp_obj_type_t. · 27e735fd
      Damien George authored
      This is to reduce ROM usage.  stream_p is used in file and socket types
      only (at the moment), so seems a good idea to make the protocol
      functions a pointer instead of the actual structure.
      
      It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
      27e735fd
  15. 03 Apr, 2014 1 commit
  16. 30 Mar, 2014 1 commit
    • 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
  17. 26 Mar, 2014 2 commits
  18. 24 Mar, 2014 1 commit
  19. 23 Mar, 2014 1 commit
  20. 22 Mar, 2014 4 commits
  21. 13 Mar, 2014 1 commit