1. 21 May, 2014 1 commit
    • Damien George's avatar
      Tidy up some configuration options. · 58ebde46
      Damien George authored
      MP_ALLOC_* -> MICROPY_ALLOC_*
      MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
      MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
      MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
      MICROPY_EXTRA_* -> MICROPY_PORT_*
      
      See issue #35.
      58ebde46
  2. 11 May, 2014 2 commits
  3. 10 May, 2014 1 commit
  4. 03 May, 2014 3 commits
  5. 17 Apr, 2014 1 commit
  6. 13 Apr, 2014 2 commits
  7. 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
  8. 05 Apr, 2014 2 commits
  9. 25 Mar, 2014 1 commit
  10. 24 Mar, 2014 1 commit
  11. 22 Mar, 2014 1 commit
  12. 17 Mar, 2014 1 commit
  13. 15 Mar, 2014 1 commit
  14. 14 Mar, 2014 1 commit
  15. 13 Mar, 2014 1 commit
  16. 10 Mar, 2014 2 commits
  17. 08 Mar, 2014 1 commit
    • Damien George's avatar
      Implement ROMable modules. Add math module. · 0c36da0b
      Damien George authored
      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
  18. 22 Feb, 2014 2 commits
  19. 18 Feb, 2014 1 commit
    • Dave Hylands's avatar
      Add pin mapping code. · 51dabac0
      Dave Hylands authored
      This commit also introduces board directories and moves board
      specific config into the appropriate board directory.
      
      boards/stm32f4xx-af.csv was extracted from the STM32F4xx datasheet
      and hand-tweaked.
      
      make-pins.py takes boards/stm32f4xx-af.csv, boards/stm32f4xx-prefix.c,
      and boards/BOARD-NAME/pins.csv as input and generates the file
      build/pins_BOARD_NAME.c
      
      The generated pin file for PYBOARD4 looks like this:
      https://gist.github.com/dhylands/9063231
      
      The generated pins file includes all of the supported alternate
      functions, and includes upsupported alternate functions as comments.
      
      See the commnet block at the top of stm/pin_map.c for details on
      how to use the pin mapper.
      
      I also went ahead and modified stm/gpio.c to use the pin mapper.
      51dabac0
  20. 11 Feb, 2014 2 commits
  21. 06 Feb, 2014 1 commit
  22. 04 Feb, 2014 1 commit
  23. 26 Jan, 2014 1 commit
  24. 25 Jan, 2014 1 commit
  25. 23 Jan, 2014 2 commits
  26. 22 Jan, 2014 4 commits
  27. 21 Jan, 2014 2 commits