Closed Rahix closed 4 years ago
When all peripherals using the bus live in the same thread, just the RefCell is enough; no actual Mutex type is needed. This can reduce overhead and doesn't unnecessarily block other tasks (e.g. by turning off interrupts).
cc @ryan-summers
When all peripherals using the bus live in the same thread, just the RefCell is enough; no actual Mutex type is needed. This can reduce overhead and doesn't unnecessarily block other tasks (e.g. by turning off interrupts).
cc @ryan-summers