Skip to content

0.2.0

Choose a tag to compare

@MyTechWaifu MyTechWaifu released this 29 Oct 16:58
· 37 commits to main since this release
cb74384

MTW TinyLoopScheduler 0.2.0 introduces a modular source structure and a portable Generic backend while preserving the existing ordinary-task API and default AVR behavior.

Added

  • Internal .h / .inc source split, retaining the same public include and header-only implementation.
  • Automatic AVR / Generic backend selection based on the build target.
  • Generic support for ordinary tasks and optional PARTED on Arduino-compatible targets, including Arduino Due, Uno R4 Minima, STM32, RP2040, and RP2350.
  • TLS_USE_IDLE to enable or remove the complete sleep subsystem at compile time.
  • Compile-time errors when unsupported IDLE or ISR support is explicitly enabled.

Changed

  • AVR keeps IDLE sleep and deferred ISR support enabled by default.
  • Generic disables both features by default.
  • Disabling IDLE also removes its timestamp storage, load heuristic, and IDLE skip-bit maintenance.
  • Updated platform metadata, documentation, and multi-file project guidance.

Compatibility

  • The ordinary-task public API, queue algorithms, and scheduler phase order are preserved.
  • Existing Arduino examples and PlatformIO projects are unchanged from 0.1.4.
  • The public include remains #include <MTW_TinyLoopScheduler.h>.
  • Multi-file projects retain the existing TLS_DECL_ONLY model: one translation unit owns the implementation, and additional .cpp files include declarations only.
  • Generic provides PERIODIC, DELAYED, POSTED, POLL, and optional PARTED. It requires a single main execution context and does not provide TLS hardware sleep or postISR().
  • With IDLE disabled, POLL callbacks may execute more frequently because scheduler passes no longer wait for an IDLE wake-up.