Skip to content
Snippets Groups Projects
  1. Jun 03, 2019
  2. Apr 01, 2019
  3. Jan 27, 2019
  4. Jul 08, 2018
    • Damien George's avatar
      stm32: Support compiling with object representation D. · e1ae9939
      Damien George authored
      With this and previous patches the stm32 port can now be compiled using
      object representation D (nan boxing).  Note that native code and frozen mpy
      files with float constants are currently not supported with this object
      representation.
      e1ae9939
  5. May 14, 2018
  6. Apr 23, 2018
  7. Feb 22, 2018
  8. Feb 13, 2018
    • Damien George's avatar
      stm32: Introduce MICROPY_HW_ENABLE_USB and clean up USB config. · 5c320bd0
      Damien George authored
      This patch allows to completely compile-out support for USB, and no-USB is
      now the default.  If a board wants to enable USB it should define:
      
          #define MICROPY_HW_ENABLE_USB (1)
      
      And then one or more of the following to select the USB PHY:
      
          #define MICROPY_HW_USB_FS (1)
          #define MICROPY_HW_USB_HS (1)
          #define MICROPY_HW_USB_HS_IN_FS (1)
      5c320bd0
  9. Jan 31, 2018
  10. Dec 22, 2017
    • Damien George's avatar
      stm32: Allow to build a board without any hardware I2C ports defined. · c73360bf
      Damien George authored
      This patch adds in internal config value MICROPY_HW_ENABLE_HW_I2C that is
      automatically configured, and enabled only if one or more hardware I2C
      ports are defined in the mpconfigboard.h file.  If none are defined then
      the pyb.I2C class is excluded from the build, along with all supporting
      code.  The machine.I2C class will still be available for software I2C.
      
      Disabling all hardware I2C on an F4 board saves around 10,000 bytes of code
      and 200 bytes of RAM.
      c73360bf
  11. Oct 19, 2017
  12. Oct 04, 2017
    • Damien George's avatar
      all: Remove inclusion of internal py header files. · a3dc1b19
      Damien George authored
      Header files that are considered internal to the py core and should not
      normally be included directly are:
          py/nlr.h - internal nlr configuration and declarations
          py/bc0.h - contains bytecode macro definitions
          py/runtime0.h - contains basic runtime enums
      
      Instead, the top-level header files to include are one of:
          py/obj.h - includes runtime0.h and defines everything to use the
              mp_obj_t type
          py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h,
              and defines everything to use the general runtime support functions
      
      Additional, specific headers (eg py/objlist.h) can be included if needed.
      a3dc1b19
  13. Sep 06, 2017
  14. Jul 31, 2017
  15. Jul 03, 2017
  16. May 06, 2017
  17. Mar 02, 2017
  18. Feb 06, 2017
    • Damien George's avatar
      stmhal: Add pyb.fault_debug() function, to control hard-fault behaviour. · 27c149ef
      Damien George authored
      This new function controls what happens on a hard-fault:
      - debugging disabled: board will do a reset
      - debugging enabled: board will print registers and stack and flash LEDs
      
      The default is disabled, ie to do a reset.  This is different to previous
      behaviour which flashed the LEDs and waited indefinitely.
      27c149ef
  19. Jan 27, 2017
    • Damien George's avatar
      stmhal: Convert to use VFS sub-system and new ooFatFs component. · 84c614e7
      Damien George authored
      This patch makes the following configuration changes:
      - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure
      - MICROPY_VFS is enabled, giving new VFS sub-system
      - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type
      - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b
      
      User facing API should be almost unchanged.  Most notable changes are
      removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't
      allow unmounting by passing None as the device.
      84c614e7
  20. Oct 21, 2016
    • Damien George's avatar
      py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. · 4ebdb1f2
      Damien George authored
      In order to have more fine-grained control over how builtin functions are
      constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific,
      with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW.  These names now
      match the MP_DEFINE_CONST_FUN_OBJ macros.
      4ebdb1f2
  21. Oct 14, 2016
  22. Sep 21, 2016
  23. Feb 10, 2016
  24. Feb 09, 2016
  25. Dec 22, 2015
    • Damien George's avatar
      stmhal: Add pyb.irq_stats() to get statistics about IRQ calls. · 401af50d
      Damien George authored
      Adds a lot of code, makes IRQs a bit less efficient, but is very useful
      for debugging.  Usage: pyb.irq_stats() returns a memory view that can be
      read and written, eg:
      
          list(pyb.irq_stats())
          pyb.irq_stats()[0]
          pyb.irq_stats()[0] = 0
      
      The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be
      modified to provide further IRQ statistics if desired.
      401af50d
  26. Nov 25, 2015
  27. Nov 09, 2015
  28. Oct 19, 2015
  29. Aug 07, 2015
  30. Aug 05, 2015
  31. Jul 29, 2015
  32. Mar 22, 2015
Loading