1. 14 Aug, 2024 2 commits
    • Angus Gratton's avatar
      py: Add new cstack API for stack checking, with limit margin macro. · 86f2c285
      Angus Gratton authored
      Currently the stack limit margin is hard-coded in each port's call to
      `mp_stack_set_limit()`, but on threaded ports it's fiddlier and can lead to
      bugs (such as incorrect thread stack margin on esp32).
      
      This commit provides a new API to initialise the C Stack in one function
      call, with a config macro to set the margin.  Where possible the new call
      is inlined to reduce code size in thread-free ports.
      
      Intended replacement for `MP_TASK_STACK_LIMIT_MARGIN` on esp32.
      
      The previous `stackctrl.h` API is still present and unmodified apart from a
      deprecation comment.  However it's not available when the
      `MICROPY_PREVIEW_VERSION_2` macro is set.
      
      This work was funded through GitHub Sponsors.
      Signed-off-by: default avatarAngus Gratton <angus@redyak.com.au>
      86f2c285
    • Angus Gratton's avatar
      py/obj: Remove the legacy object API for version 2. · 6c870dc5
      Angus Gratton authored
      These were changed in v1.11 (2019).  Prepare to remove the compatibility
      macros as part of V2 changes.
      
      This work was funded through GitHub Sponsors.
      Signed-off-by: default avatarAngus Gratton <angus@redyak.com.au>
      6c870dc5
  2. 13 Aug, 2024 2 commits
  3. 12 Aug, 2024 2 commits
  4. 08 Aug, 2024 8 commits
  5. 07 Aug, 2024 10 commits
  6. 02 Aug, 2024 8 commits
  7. 01 Aug, 2024 3 commits
  8. 31 Jul, 2024 3 commits
  9. 26 Jul, 2024 2 commits