Skip to content

Commit

Permalink
fix FPU CPACR bitmasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed May 10, 2017
1 parent ddc8897 commit cc21af2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/peripheral/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ pub enum FpuAccessMode {
Privileged,
}

const SCB_CPACR_FPU_MASK: u32 = 0x00780000;
const SCB_CPACR_FPU_ENABLE: u32 = 0x00280000;
const SCB_CPACR_FPU_USER: u32 = 0x00500000;
const SCB_CPACR_FPU_MASK: u32 = 0x00f00000;
const SCB_CPACR_FPU_ENABLE: u32 = 0x00500000;
const SCB_CPACR_FPU_USER: u32 = 0x00a00000;

impl Scb {
/// Gets FPU access mode
Expand Down

0 comments on commit cc21af2

Please sign in to comment.