mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00
stm32: hsem: fix broken CPUID detection
This commit is contained in:
parent
be5b62bdd4
commit
59228e2ab4
@ -46,7 +46,7 @@ pub enum CoreId {
|
||||
#[inline(always)]
|
||||
pub fn get_current_coreid() -> CoreId {
|
||||
let cpuid = unsafe { cortex_m::peripheral::CPUID::PTR.read_volatile().base.read() };
|
||||
match cpuid & 0x000000F0 {
|
||||
match (cpuid & 0x000000F0) >> 4 {
|
||||
#[cfg(any(stm32wb, stm32wl))]
|
||||
0x0 => CoreId::Core1,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user