Skip to content

Commit 617a0bc

Browse files
committed
more renames
1 parent 3040369 commit 617a0bc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/peripheral/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub enum CsselrCacheType {
123123
}
124124

125125
#[cfg(armv7m)]
126-
impl Cpuid {
126+
impl CPUID {
127127
/// Selects the current CCSIDR
128128
///
129129
/// * `level`: the required cache level minus 1, e.g. 0 for L1, 1 for L2
@@ -544,7 +544,7 @@ mod scb_consts {
544544
use self::scb_consts::*;
545545

546546
#[cfg(armv7m)]
547-
impl Scb {
547+
impl SCB {
548548
/// Enables I-Cache if currently disabled
549549
#[inline]
550550
pub fn enable_icache(&self) {
@@ -610,7 +610,7 @@ impl Scb {
610610

611611
/// Enables D-cache if currently disabled
612612
#[inline]
613-
pub fn enable_dcache(&self, cpuid: &Cpuid) {
613+
pub fn enable_dcache(&self, cpuid: &CPUID) {
614614
// Don't do anything if DCache is already enabled
615615
if self.dcache_enabled() {
616616
return;
@@ -628,7 +628,7 @@ impl Scb {
628628

629629
/// Disables D-cache if currently enabled
630630
#[inline]
631-
pub fn disable_dcache(&self, cpuid: &Cpuid) {
631+
pub fn disable_dcache(&self, cpuid: &CPUID) {
632632
// Don't do anything if DCache is already disabled
633633
if !self.dcache_enabled() {
634634
return;
@@ -655,7 +655,7 @@ impl Scb {
655655
/// stack, depending on optimisations, breaking returning to the call point.
656656
/// It's used immediately before enabling the dcache, but not exported publicly.
657657
#[inline]
658-
fn invalidate_dcache(&self, cpuid: &Cpuid) {
658+
fn invalidate_dcache(&self, cpuid: &CPUID) {
659659
// All of CBP is write-only so no data races are possible
660660
let cbp = unsafe { &mut *CBP.get() };
661661

@@ -675,7 +675,7 @@ impl Scb {
675675

676676
/// Cleans D-cache
677677
#[inline]
678-
pub fn clean_dcache(&self, cpuid: &Cpuid) {
678+
pub fn clean_dcache(&self, cpuid: &CPUID) {
679679
// All of CBP is write-only so no data races are possible
680680
let cbp = unsafe { &mut *CBP.get() };
681681

@@ -694,7 +694,7 @@ impl Scb {
694694

695695
/// Cleans and invalidates D-cache
696696
#[inline]
697-
pub fn clean_invalidate_dcache(&self, cpuid: &Cpuid) {
697+
pub fn clean_invalidate_dcache(&self, cpuid: &CPUID) {
698698
// All of CBP is write-only so no data races are possible
699699
let cbp = unsafe { &mut *CBP.get() };
700700

@@ -1015,7 +1015,7 @@ mod cbp_consts {
10151015
use self::cbp_consts::*;
10161016

10171017
#[cfg(armv7m)]
1018-
impl Cbp {
1018+
impl CBP {
10191019
/// I-cache invalidate all to PoU
10201020
#[inline(always)]
10211021
pub fn iciallu(&self) {

0 commit comments

Comments
 (0)