Merge pull request 'CI fix' (#2) from ci-fix into main
ci / Check build (macos-latest) (push) Has been cancelled
ci / Check build (ubuntu-latest) (push) Has been cancelled
ci / Check build (windows-latest) (push) Has been cancelled
ci / Run Tests (push) Has been cancelled
ci / Check MSRV (push) Has been cancelled
ci / Check Cross-Compilation (armv7-unknown-linux-gnueabihf) (push) Has been cancelled
ci / Check Cross-Compilation (thumbv7em-none-eabihf) (push) Has been cancelled
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
ci / Check build (macos-latest) (push) Has been cancelled
ci / Check build (ubuntu-latest) (push) Has been cancelled
ci / Check build (windows-latest) (push) Has been cancelled
ci / Run Tests (push) Has been cancelled
ci / Check MSRV (push) Has been cancelled
ci / Check Cross-Compilation (armv7-unknown-linux-gnueabihf) (push) Has been cancelled
ci / Check Cross-Compilation (thumbv7em-none-eabihf) (push) Has been cancelled
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
commit
fcf69bf34e
1 file changed
+2
-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