CI fix #2
+2
-2
@@ -32,13 +32,13 @@
|
|||||||
//! ## Usage Example
|
//! ## Usage Example
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! use raw_slice::RawBufSlice;
|
//! use raw_buffer::RawBufSlice;
|
||||||
//!
|
//!
|
||||||
//! static DATA: &[u8] = &[1, 2, 3, 4];
|
//! static DATA: &[u8] = &[1, 2, 3, 4];
|
||||||
//!
|
//!
|
||||||
//! // Safety: Your safety note here. We are using static data, your DMA might have other
|
//! // Safety: Your safety note here. We are using static data, your DMA might have other
|
||||||
//! // requirements to the buffer used, e.g. buffer in correct RAM, with certain alignment etc.
|
//! // requirements to the buffer used, e.g. buffer in correct RAM, with certain alignment etc.
|
||||||
//! let raw_buf = unsafe { RawSlice::new(DATA) };
|
//! let raw_buf = unsafe { RawBufSlice::new(DATA) };
|
||||||
//!
|
//!
|
||||||
//! // Later, in an ISR or different context
|
//! // Later, in an ISR or different context
|
||||||
//! unsafe {
|
//! unsafe {
|
||||||
|
|||||||
Reference in new issue
Block a user