Interrupts aren't working anymore

This commit is contained in:
2026-03-15 10:48:41 +01:00
parent de6ef959ce
commit b1aac20b57
17 changed files with 455 additions and 89 deletions

View File

@@ -1,6 +1,6 @@
use core::mem::MaybeUninit;
#[derive(Debug)]
#[derive(Debug, Copy)]
pub struct CircularBuffer<T, const SIZE: usize> {
buffer: [MaybeUninit<T>; SIZE],
head: usize,
@@ -8,6 +8,12 @@ pub struct CircularBuffer<T, const SIZE: usize> {
len: usize,
}
impl<T: Copy, const SIZE: usize> Clone for CircularBuffer<T, SIZE> {
fn clone(&self) -> Self {
*self
}
}
impl<T, const SIZE: usize> CircularBuffer<T, SIZE> {
pub const fn new() -> Self {
Self {