@@ -133,15 +133,16 @@ pub fn codegen(
133
133
) ) ;
134
134
135
135
module_items. push ( quote ! (
136
+ #[ doc( inline) ]
136
137
pub use super :: #internal_monotonics_ident as Monotonics ;
137
138
) ) ;
138
139
}
139
140
140
141
let doc = match ctxt {
141
- Context :: Idle => "Idle loop" ,
142
- Context :: Init => "Initialization function" ,
143
- Context :: HardwareTask ( _) => "Hardware task" ,
144
- Context :: SoftwareTask ( _) => "Software task" ,
142
+ Context :: Idle => " Idle loop" ,
143
+ Context :: Init => " Initialization function" ,
144
+ Context :: HardwareTask ( _) => " Hardware task" ,
145
+ Context :: SoftwareTask ( _) => " Software task" ,
145
146
} ;
146
147
147
148
let v = Vec :: new ( ) ;
@@ -172,8 +173,8 @@ pub fn codegen(
172
173
let internal_context_name = util:: internal_task_ident ( name, "Context" ) ;
173
174
174
175
items. push ( quote ! (
175
- #( #cfgs) *
176
176
/// Execution context
177
+ #( #cfgs) *
177
178
#[ allow( non_snake_case) ]
178
179
#[ allow( non_camel_case_types) ]
179
180
pub struct #internal_context_name<#lt> {
@@ -182,6 +183,7 @@ pub fn codegen(
182
183
183
184
#( #cfgs) *
184
185
impl <#lt> #internal_context_name<#lt> {
186
+ #[ doc( hidden) ]
185
187
#[ inline( always) ]
186
188
pub unsafe fn new( #core #priority) -> Self {
187
189
#internal_context_name {
@@ -192,6 +194,7 @@ pub fn codegen(
192
194
) ) ;
193
195
194
196
module_items. push ( quote ! (
197
+ #[ doc( inline) ]
195
198
#( #cfgs) *
196
199
pub use super :: #internal_context_name as Context ;
197
200
) ) ;
@@ -251,6 +254,7 @@ pub fn codegen(
251
254
} ) ) ;
252
255
253
256
module_items. push ( quote ! (
257
+ #[ doc( inline) ]
254
258
#( #cfgs) *
255
259
pub use super :: #internal_spawn_ident as spawn;
256
260
) ) ;
@@ -300,6 +304,7 @@ pub fn codegen(
300
304
) ) ;
301
305
}
302
306
module_items. push ( quote ! (
307
+ #[ doc( hidden) ]
303
308
pub mod #m {
304
309
pub use super :: super :: #internal_spawn_after_ident as spawn_after;
305
310
pub use super :: super :: #internal_spawn_at_ident as spawn_at;
@@ -308,6 +313,7 @@ pub fn codegen(
308
313
) ) ;
309
314
310
315
items. push ( quote ! (
316
+ #[ doc( hidden) ]
311
317
#( #cfgs) *
312
318
#[ allow( non_snake_case) ]
313
319
#[ allow( non_camel_case_types) ]
@@ -317,6 +323,7 @@ pub fn codegen(
317
323
}
318
324
319
325
impl core:: fmt:: Debug for #internal_spawn_handle_ident {
326
+ #[ doc( hidden) ]
320
327
fn fmt( & self , f: & mut core:: fmt:: Formatter <' _>) -> core:: fmt:: Result {
321
328
f. debug_struct( #spawn_handle_string) . finish( )
322
329
}
@@ -344,6 +351,7 @@ pub fn codegen(
344
351
} )
345
352
}
346
353
354
+ /// Reschedule after
347
355
#[ inline]
348
356
pub fn reschedule_after(
349
357
self ,
@@ -352,6 +360,7 @@ pub fn codegen(
352
360
self . reschedule_at( monotonics:: #m:: now( ) + duration)
353
361
}
354
362
363
+ /// Reschedule at
355
364
pub fn reschedule_at(
356
365
self ,
357
366
instant: <#m as rtic:: Monotonic >:: Instant
0 commit comments