Skip to content

Commit

Permalink
Added lacking generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianSLazar committed Jan 22, 2024
1 parent 58ec725 commit df677cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions boards/components/src/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ macro_rules! spi_bus_component_static {

#[macro_export]
macro_rules! i2c_master_bus_component_static {
() => {{
($D:ty $(,)?) => {{
let address_buffer = kernel::static_buf!([u8; 1]);
let bus = kernel::static_buf!(capsules_extra::bus::I2CMasterBus<'static>);
let bus = kernel::static_buf!(capsules_extra::bus::I2CMasterBus<'static, $D>);
let i2c_device =
kernel::static_buf!(capsules_core::virtualizers::virtual_i2c::I2CDevice<'static>);
kernel::static_buf!(capsules_core::virtualizers::virtual_i2c::I2CDevice<
'static,
capsules_extra::bus::I2CMasterBus<'static, $D>,
>);

(bus, i2c_device, address_buffer)
};};
Expand Down

0 comments on commit df677cb

Please sign in to comment.