Skip to content

Commit 7059979

Browse files
committed
Make InterruptType fields public to be useful
1 parent 5477075 commit 7059979

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2020
- `RccBus`, `Enable`, `Reset` traits and implementations for peripherals ([#299])
2121
- Support cortex-m-rt `v0.7.0` but still allow `v0.6.13` ([#283])
2222
- Add missing SPI impls for the `gpio-f303` device groups (e.g. stm32f303vc) ([#304])
23+
- Make timer `InterruptTypes` fields public to be useful. ([#304])
2324

2425
### Fixed
2526

src/timer/interrupts.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ use crate::pac::Interrupt;
66
#[non_exhaustive]
77
pub struct InterruptTypes {
88
/// Break Interrupt
9-
r#break: Interrupt,
9+
pub r#break: Interrupt,
1010
/// Update Interrupt
11-
update: Interrupt,
11+
pub update: Interrupt,
1212
/// Trigger and communication Interrupt
13-
trigger: Interrupt,
13+
pub trigger: Interrupt,
1414
/// Capture and compare interupt
15-
capture_compare: Interrupt,
15+
pub capture_compare: Interrupt,
1616
}
1717

1818
// FIXME: Use conditional feature compilation to make this compialble for all chip families.

0 commit comments

Comments
 (0)