nrf-softdevice icon indicating copy to clipboard operation
nrf-softdevice copied to clipboard

Use of `cortex_m::interrupt::free` in examples

Open Stupremee opened this issue 3 years ago • 2 comments

In the readme you say that you should never use cortex_m::interrupt::free because of softdevice. However, in the examples the alloc-cortex-m crate is used, which uses cortex_m::interrupt::free in their implementation here.

Stupremee avatar Jan 29 '22 18:01 Stupremee

Oops, nice catch. This is not nice, indeed.

GATT examples can work without alloc as-is. Alloc is only used for managing l2cap buffers, I have a project where I do that with atomic-pool instead, it's quite nicer. I should update the examples to that (#69)

Dirbaio avatar Feb 05 '22 02:02 Dirbaio

Maybe you could add a section in the readme where you list some common crates that use cortezx_m::interrupt::free

Stupremee avatar Feb 05 '22 06:02 Stupremee

Closed by #69

alexmoon avatar Sep 16 '22 14:09 alexmoon