stm32: avoid creating many tiny critical sections in init.
Saves 292 bytes on stm32f0 bilnky with max optimizations (from 3132 to 2840).
This commit is contained in:
@ -47,6 +47,6 @@ foreach_dma_channel! {
|
||||
}
|
||||
|
||||
/// safety: must be called only once
|
||||
pub(crate) unsafe fn init() {
|
||||
pub(crate) unsafe fn init(_cs: critical_section::CriticalSection) {
|
||||
crate::_generated::init_dmamux();
|
||||
}
|
||||
|
Reference in New Issue
Block a user