In previous versions of
rtic, monotonics were an integral, tightly coupled part of the
#[rtic::app]. In this new version,
rtic-monotonics provides them in a more decoupled way.
#[monotonic] attribute is no longer used. Instead, you use a
rtic-monotonics. An invocation of this macro returns an interrupt registration token, which can be used to construct an instance of your desired monotonic.
spawn_at are no longer available. Instead, you use the async functions
delay_until provided by ipmlementations of the
rtic_time::Monotonic trait, available through
Check out the code example for an overview of the required changes.