diff options
author | 2020-09-01 17:04:55 +0000 | |
---|---|---|
committer | 2020-09-01 17:48:53 +0000 | |
commit | d06cf91acc1126e66002f8884b1e7b7a65a9b24a (patch) | |
tree | 6654eb05d7ad4d1a8a2e1ad15bb8e8b14bae3d31 /macros/src/codegen/timer_queue.rs | |
parent | d8c9476372e25799224d0225bb12c9a9fe043743 (diff) | |
download | rtic-d06cf91acc1126e66002f8884b1e7b7a65a9b24a.tar.gz rtic-d06cf91acc1126e66002f8884b1e7b7a65a9b24a.tar.zst rtic-d06cf91acc1126e66002f8884b1e7b7a65a9b24a.zip |
Remove stale code, fix comment styling
Diffstat (limited to 'macros/src/codegen/timer_queue.rs')
-rw-r--r-- | macros/src/codegen/timer_queue.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/macros/src/codegen/timer_queue.rs b/macros/src/codegen/timer_queue.rs index 41f5520e..030158e2 100644 --- a/macros/src/codegen/timer_queue.rs +++ b/macros/src/codegen/timer_queue.rs @@ -9,7 +9,6 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream let mut items = vec![]; if let Some(timer_queue) = &analysis.timer_queues.first() { - //let cfg_sender = util::cfg_core(sender, app.args.cores); let t = util::schedule_t_ident(); // Enumeration of `schedule`-able tasks @@ -29,7 +28,6 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream let doc = format!("Tasks that can be scheduled"); items.push(quote!( - //#cfg_sender #[doc = #doc] #[allow(non_camel_case_types)] #[derive(Clone, Copy)] @@ -48,18 +46,14 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream let n = util::capacity_typenum(timer_queue.capacity, false); let tq_ty = quote!(rtic::export::TimerQueue<#m, #t, #n>); - let section = util::link_section("bss"); items.push(quote!( - //#cfg_sender #[doc = #doc] - #section static mut #tq: #tq_ty = rtic::export::TimerQueue( rtic::export::BinaryHeap( rtic::export::iBinaryHeap::new() ) ); - //#cfg_sender struct #tq<'a> { priority: &'a rtic::export::Priority, } @@ -68,7 +62,6 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream items.push(util::impl_mutex( extra, &[], - //cfg_sender.as_ref(), false, &tq, tq_ty, @@ -114,11 +107,8 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream let priority = timer_queue.priority; let sys_tick = util::suffixed("SysTick"); - let section = util::link_section("text"); items.push(quote!( #[no_mangle] - //#cfg_sender - #section unsafe fn #sys_tick() { use rtic::Mutex as _; |