mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 20:40:32 +00:00
pool: fix example
* Pool trait and exception use missing
This commit is contained in:
parent
3b2bc421a0
commit
6ffbcb84f1
@ -15,7 +15,11 @@
|
||||
//! #![no_main]
|
||||
//! #![no_std]
|
||||
//!
|
||||
//! use heapless::{pool, pool::singleton::Box};
|
||||
//! use cortex_m_rt::{entry, exception};
|
||||
//! use heapless::{
|
||||
//! pool,
|
||||
//! pool::singleton::{Box, Pool},
|
||||
//! };
|
||||
//!
|
||||
//! // instantiate a memory pool of `[u8; 128]` blocks as a global singleton
|
||||
//! pool!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user