diff --git a/libcortex_a9/src/semaphore.rs b/libcortex_a9/src/semaphore.rs index 67e6ebb..a188499 100644 --- a/libcortex_a9/src/semaphore.rs +++ b/libcortex_a9/src/semaphore.rs @@ -12,7 +12,7 @@ pub struct Semaphore { } impl Semaphore { - pub fn new(value: i32, max: i32) -> Self { + pub const fn new(value: i32, max: i32) -> Self { Semaphore { value: AtomicI32::new(value), max} }