mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 13:09:37 +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
|
||||
|
||||
## v2.0.1 - 2024-06-02
|
||||
|
||||
### Changed
|
||||
|
||||
- Make monotonics created with their respective macros public
|
||||
|
||||
## v2.0.0 - 2024-05-29
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "rtic-monotonics"
|
||||
version = "2.0.0"
|
||||
version = "2.0.1"
|
||||
|
||||
edition = "2021"
|
||||
authors = [
|
||||
|
|
|
@ -63,7 +63,7 @@ macro_rules! __internal_create_imxrt_timer_interrupt {
|
|||
macro_rules! __internal_create_imxrt_timer_struct {
|
||||
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
||||
/// A `Monotonic` based on the GPT peripheral.
|
||||
struct $name;
|
||||
pub struct $name;
|
||||
|
||||
impl $name {
|
||||
/// Starts the `Monotonic`.
|
||||
|
|
|
@ -85,7 +85,7 @@ macro_rules! __internal_create_nrf_rtc_interrupt {
|
|||
macro_rules! __internal_create_nrf_rtc_struct {
|
||||
($name:ident, $mono_backend:ident, $timer:ident) => {
|
||||
/// A `Monotonic` based on the nRF RTC peripheral.
|
||||
struct $name;
|
||||
pub struct $name;
|
||||
|
||||
impl $name {
|
||||
/// Starts the `Monotonic`.
|
||||
|
|
|
@ -95,7 +95,7 @@ macro_rules! __internal_create_nrf_timer_interrupt {
|
|||
macro_rules! __internal_create_nrf_timer_struct {
|
||||
($name:ident, $mono_backend:ident, $timer:ident, $tick_rate_hz:expr) => {
|
||||
/// A `Monotonic` based on the nRF Timer peripheral.
|
||||
struct $name;
|
||||
pub struct $name;
|
||||
|
||||
impl $name {
|
||||
/// Starts the `Monotonic`.
|
||||
|
|
|
@ -130,7 +130,7 @@ impl TimerQueueBackend for TimerBackend {
|
|||
macro_rules! rp2040_timer_monotonic {
|
||||
($name:ident) => {
|
||||
/// A `Monotonic` based on the RP2040 Timer peripheral.
|
||||
struct $name;
|
||||
pub struct $name;
|
||||
|
||||
impl $name {
|
||||
/// Starts the `Monotonic`.
|
||||
|
|
|
@ -83,7 +83,8 @@ macro_rules! __internal_create_stm32_timer_interrupt {
|
|||
#[macro_export]
|
||||
macro_rules! __internal_create_stm32_timer_struct {
|
||||
($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 {
|
||||
/// Starts the `Monotonic`.
|
||||
|
|
|
@ -148,7 +148,7 @@ macro_rules! systick_monotonic {
|
|||
};
|
||||
($name:ident, $tick_rate_hz:expr) => {
|
||||
/// A `Monotonic` based on SysTick.
|
||||
struct $name;
|
||||
pub struct $name;
|
||||
|
||||
impl $name {
|
||||
/// Starts the `Monotonic`.
|
||||
|
|
Loading…
Reference in a new issue