1. 20 4月, 2014 1 次提交
  2. 19 4月, 2014 1 次提交
    • D
      stmhal: Big cleanup; merge gpio into Pin; make names consistent. · c66d86c5
      Damien George 提交于
      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
  3. 18 4月, 2014 2 次提交
  4. 17 4月, 2014 2 次提交
    • D
      stmhal: Add more math functions. · 89831d02
      Damien George 提交于
      Taken straight from musl and newlib.  License seems compatible with MIT.
      89831d02
    • A
      build directory can now be renamed · 70a7d7a9
      Andrew Scheller 提交于
      The autogenerated header files have been moved about, and an extra
      include dir has been added, which means you can give a custom
      BUILD=newbuilddir option to make, and everything "just works"
      
      Also tidied up the way the different Makefiles build their include-
      directory flags
      70a7d7a9
  5. 16 4月, 2014 1 次提交
  6. 11 4月, 2014 1 次提交
    • D
      stmhal: Add stm module, which contains some constants for the MCU. · 3f489845
      Damien George 提交于
      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
  7. 07 4月, 2014 1 次提交
  8. 02 4月, 2014 1 次提交
  9. 30 3月, 2014 2 次提交
    • D
      stmhal: Unify naming of HW config; make SD detect configurable. · 09d20778
      Damien George 提交于
      All board config macros now begin with MICROPY_HW_.
      
      Renamed PYBv10 to PYBV10, since macros should be all uppercase.
      
      Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD
      detect pin can be easily configured.
      09d20778
    • D
      stmhal: Implement selector for USB device mode; improve boot up. · 038df431
      Damien George 提交于
      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
  10. 29 3月, 2014 1 次提交
  11. 26 3月, 2014 1 次提交
  12. 25 3月, 2014 2 次提交
    • D
      Proper support for registering builtin modules in ROM. · caac542b
      Damien George 提交于
      Comes with some refactoring of code and renaming of files.  All modules
      are now named mod*.[ch].
      caac542b
    • D
      stmhal - fixed up adc stuff · 1403298a
      Dave Hylands 提交于
      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
  13. 24 3月, 2014 2 次提交
  14. 23 3月, 2014 1 次提交
  15. 22 3月, 2014 6 次提交
  16. 21 3月, 2014 1 次提交
  17. 19 3月, 2014 1 次提交
  18. 17 3月, 2014 3 次提交
  19. 15 3月, 2014 3 次提交
  20. 14 3月, 2014 2 次提交
  21. 13 3月, 2014 2 次提交
  22. 12 3月, 2014 1 次提交
    • D
      Initial checkin with STM HAL · dd38d907
      Dave Hylands 提交于
      This compiles and links, but hasn't been tested on a board
      yet and even if it was run, it doesn't currently do anything.
      dd38d907
  23. 09 3月, 2014 1 次提交
  24. 08 3月, 2014 1 次提交
    • D
      Implement ROMable modules. Add math module. · 0c36da0b
      Damien George 提交于
      mp_module_obj_t can now be put in ROM.
      
      Configuration of float type is now similar to longint: can now choose
      none, float or double as the implementation.
      
      math module has basic math functions.  For STM port, these are not yet
      implemented (they are just stub functions).
      0c36da0b