Skip to content

Commit

Permalink
boards/apollo3/lora_things_plus: Remove GNSS
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Francis <alistair@alistair23.me>
  • Loading branch information
alistair23 committed Mar 8, 2024
1 parent 932f13a commit fb0d4ab
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions boards/apollo3/lora_things_plus/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ use capsules_core::virtualizers::virtual_alarm::MuxAlarm;
use capsules_core::virtualizers::virtual_alarm::VirtualMuxAlarm;
use components::bme280::Bme280Component;
use components::ccs811::Ccs811Component;
use components::nmea::I2cNmeaComponent;
use kernel::capabilities;
use kernel::component::Component;
use kernel::hil::i2c::I2CMaster;
Expand Down Expand Up @@ -151,7 +150,6 @@ struct LoRaThingsPlus {
temperature: &'static TemperatureDriver,
humidity: &'static HumidityDriver,
air_quality: &'static capsules_extra::air_quality::AirQualitySensor<'static>,
nmea: &'static capsules_extra::nmea::Nmea<'static>,
scheduler: &'static RoundRobinSched<'static>,
systick: cortexm4::systick::SysTick,
}
Expand All @@ -175,7 +173,6 @@ impl SyscallDriverLookup for LoRaThingsPlus {
capsules_extra::temperature::DRIVER_NUM => f(Some(self.temperature)),
capsules_extra::humidity::DRIVER_NUM => f(Some(self.humidity)),
capsules_extra::air_quality::DRIVER_NUM => f(Some(self.air_quality)),
capsules_extra::nmea::DRIVER_NUM => f(Some(self.nmea)),
_ => f(None),
}
}
Expand Down Expand Up @@ -381,12 +378,6 @@ unsafe fn setup() -> (
.finalize(components::air_quality_component_static!());
CCS811 = Some(ccs811);

let gnss = I2cNmeaComponent::new(mux_i2c, 0x10)
.finalize(components::nmea_i2c_component_static!(apollo3::iom::Iom));
let nmea =
components::nmea::NmeaComponent::new(board_kernel, capsules_extra::nmea::DRIVER_NUM, gnss)
.finalize(components::nmea_component_static!());

// Init the broken out SPI controller
let external_mux_spi = components::spi::SpiMuxComponent::new(&peripherals.iom2).finalize(
components::spi_mux_component_static!(apollo3::iom::Iom<'static>),
Expand Down Expand Up @@ -491,7 +482,6 @@ unsafe fn setup() -> (
temperature,
humidity,
air_quality,
nmea,
scheduler,
systick,
}
Expand Down

0 comments on commit fb0d4ab

Please sign in to comment.