File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ impl Watchdog<Inactive> {
72
72
/// the `Watchdog::try_recover()` method.
73
73
///
74
74
/// If the watchdog has already started, configuration is no longer possible.
75
+ #[ inline]
75
76
pub fn try_new ( wdt : WDT ) -> Result < Watchdog < Inactive > , WDT > {
76
77
let watchdog = Watchdog {
77
78
wdt,
@@ -88,6 +89,7 @@ impl Watchdog<Inactive> {
88
89
/// Release the peripheral
89
90
///
90
91
/// Note: The peripheral cannot be released after activation
92
+ #[ inline]
91
93
pub fn release ( self ) -> WDT {
92
94
self . wdt
93
95
}
@@ -145,13 +147,15 @@ impl Watchdog<Inactive> {
145
147
/// Should the watchdog continue to count during sleep modes?
146
148
///
147
149
/// This value defaults to ENABLED on reset.
150
+ #[ inline]
148
151
pub fn run_during_sleep ( & self , setting : bool ) {
149
152
self . wdt . config . modify ( |_r, w| w. sleep ( ) . bit ( setting) ) ;
150
153
}
151
154
152
155
/// Should the watchdog continue to count when the CPU is halted for debug?
153
156
///
154
157
/// This value defaults to DISABLED on reset.
158
+ #[ inline]
155
159
pub fn run_during_debug_halt ( & self , setting : bool ) {
156
160
self . wdt . config . modify ( |_r, w| w. halt ( ) . bit ( setting) ) ;
157
161
}
You can’t perform that action at this time.
0 commit comments