From 37237f1d8c0fe3e2c4efaedf203e21b9a260211e Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 11 Mar 2024 00:50:24 -0700 Subject: [PATCH] Misc. fixes --- examples/stm32f411.rs | 4 ++-- src/lib.rs | 2 +- src/reg.rs | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/stm32f411.rs b/examples/stm32f411.rs index 7079bf7..17b54c0 100644 --- a/examples/stm32f411.rs +++ b/examples/stm32f411.rs @@ -11,13 +11,13 @@ use stm32f4xx_hal::{i2c::I2c1, prelude::*}; #[entry] fn main() -> ! { let dp = stm32f4xx_hal::pac::Peripherals::take().unwrap(); - let cp = cortex_m::Peripherals::take().unwrap(); + let _cp = cortex_m::Peripherals::take().unwrap(); let rcc = dp.RCC.constrain(); let clocks = rcc.cfgr.freeze(); let gpiob = dp.GPIOB.split(); - let gpioc = dp.GPIOC.split(); + let _gpioc = dp.GPIOC.split(); // for interrupts, when those are implemented info!("i2c"); let i2c1_scl = gpiob.pb6.into_alternate_open_drain(); diff --git a/src/lib.rs b/src/lib.rs index 311860d..301618c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ mod types; pub use crate::interface::Addr; pub use crate::types::{ AccBandwidth, AccConf, AccDataRate, AccPowerConf, AccPowerEnable, AccRange, - AccelerometerConfig, ErrCode, Error, Sensor3DData, Status, + AccelerometerConfig, ErrCode, Error, Sensor3DData, }; /// BMI088 device object. diff --git a/src/reg.rs b/src/reg.rs index 4d9cbdf..cc3ba06 100644 --- a/src/reg.rs +++ b/src/reg.rs @@ -27,10 +27,10 @@ pub enum AccRegisters { INT2_IO_CONF = 0x54, /// Map data ready interrupt to output pin INT1 and/or INT2 INT1_INT2_MAP_DATA = 0x58, - /// Enables the sensor self-test signal, occurring as a steady offset to the - /// sensor output. Note that the self-test needs to be switched off actively - /// by the user (details see 4.6.1). - ACC_SELF_TEST = 0x6D, + // Enables the sensor self-test signal, occurring as a steady offset to the + // sensor output. Note that the self-test needs to be switched off actively + // by the user (details see 4.6.1). + // ACC_SELF_TEST = 0x6D, /// Switches accelerometer into suspend mode for saving power. In this mode /// the data acquisition is ACC_PWR_CONF = 0x7C, @@ -66,6 +66,6 @@ pub enum GyroRegisters { GYRO_INT3_INT4_IO_CONF = 0x16, /// Map data ready interrupt to output pin INT3 and/or INT4 GYRO_INT3_INT4_IO_MAP = 0x18, - /// Built-in self-test of gyroscope. - GYRO_SELF_TEST = 0x3C, + // Built-in self-test of gyroscope. + // GYRO_SELF_TEST = 0x3C, }