mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 12:12:50 +01:00
Make rtic-monotonic macros create a public type
This commit is contained in:
parent
d06c6eeed7
commit
689c4a068e
8 changed files with 14 additions and 7 deletions
|
@ -7,6 +7,12 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## v2.0.1 - 2024-06-02
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Make monotonics created with their respective macros public
|
||||||
|
|
||||||
## v2.0.0 - 2024-05-29
|
## v2.0.0 - 2024-05-29
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rtic-monotonics"
|
name = "rtic-monotonics"
|
||||||
version = "2.0.0"
|
version = "2.0.1"
|
||||||
|
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [
|
authors = [
|
||||||
|
|
|
@ -63,7 +63,7 @@ macro_rules! __internal_create_imxrt_timer_interrupt {
|
||||||
macro_rules! __internal_create_imxrt_timer_struct {
|
macro_rules! __internal_create_imxrt_timer_struct {
|
||||||
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
||||||
/// A `Monotonic` based on the GPT peripheral.
|
/// A `Monotonic` based on the GPT peripheral.
|
||||||
struct $name;
|
pub struct $name;
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
/// Starts the `Monotonic`.
|
/// Starts the `Monotonic`.
|
||||||
|
|
|
@ -85,7 +85,7 @@ macro_rules! __internal_create_nrf_rtc_interrupt {
|
||||||
macro_rules! __internal_create_nrf_rtc_struct {
|
macro_rules! __internal_create_nrf_rtc_struct {
|
||||||
($name:ident, $mono_backend:ident, $timer:ident) => {
|
($name:ident, $mono_backend:ident, $timer:ident) => {
|
||||||
/// A `Monotonic` based on the nRF RTC peripheral.
|
/// A `Monotonic` based on the nRF RTC peripheral.
|
||||||
struct $name;
|
pub struct $name;
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
/// Starts the `Monotonic`.
|
/// Starts the `Monotonic`.
|
||||||
|
|
|
@ -95,7 +95,7 @@ macro_rules! __internal_create_nrf_timer_interrupt {
|
||||||
macro_rules! __internal_create_nrf_timer_struct {
|
macro_rules! __internal_create_nrf_timer_struct {
|
||||||
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
||||||
/// A `Monotonic` based on the nRF Timer peripheral.
|
/// A `Monotonic` based on the nRF Timer peripheral.
|
||||||
struct $name;
|
pub struct $name;
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
/// Starts the `Monotonic`.
|
/// Starts the `Monotonic`.
|
||||||
|
|
|
@ -130,7 +130,7 @@ impl TimerQueueBackend for TimerBackend {
|
||||||
macro_rules! rp2040_timer_monotonic {
|
macro_rules! rp2040_timer_monotonic {
|
||||||
($name:ident) => {
|
($name:ident) => {
|
||||||
/// A `Monotonic` based on the RP2040 Timer peripheral.
|
/// A `Monotonic` based on the RP2040 Timer peripheral.
|
||||||
struct $name;
|
pub struct $name;
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
/// Starts the `Monotonic`.
|
/// Starts the `Monotonic`.
|
||||||
|
|
|
@ -83,7 +83,8 @@ macro_rules! __internal_create_stm32_timer_interrupt {
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! __internal_create_stm32_timer_struct {
|
macro_rules! __internal_create_stm32_timer_struct {
|
||||||
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
||||||
struct $name;
|
/// A `Monotonic` based on an STM32 timer peripheral.
|
||||||
|
pub struct $name;
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
/// Starts the `Monotonic`.
|
/// Starts the `Monotonic`.
|
||||||
|
|
|
@ -148,7 +148,7 @@ macro_rules! systick_monotonic {
|
||||||
};
|
};
|
||||||
($name:ident, $tick_rate_hz:expr) => {
|
($name:ident, $tick_rate_hz:expr) => {
|
||||||
/// A `Monotonic` based on SysTick.
|
/// A `Monotonic` based on SysTick.
|
||||||
struct $name;
|
pub struct $name;
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
/// Starts the `Monotonic`.
|
/// Starts the `Monotonic`.
|
||||||
|
|
Loading…
Reference in a new issue