We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffefdb9 commit 3c5a622Copy full SHA for 3c5a622
artiq/runtime.rs/libksupport/api.rs
@@ -105,9 +105,14 @@ static mut API: &'static [(&'static str, *const ())] = &[
105
api!(rtio_input_timestamp = ::rtio::input_timestamp),
106
api!(rtio_input_data = ::rtio::input_data),
107
108
+ #[cfg(has_i2c)]
109
api!(i2c_init = ::i2c::init),
110
111
api!(i2c_start = ::i2c::start),
112
113
api!(i2c_stop = ::i2c::stop),
114
115
api!(i2c_write = ::i2c::write),
116
117
api!(i2c_read = ::i2c::read),
118
];
artiq/runtime.rs/libksupport/lib.rs
@@ -50,6 +50,7 @@ macro_rules! artiq_raise {
50
}
51
52
mod rtio;
53
+#[cfg(has_i2c)]
54
mod i2c;
55
56
use core::{mem, ptr, slice, str};
0 commit comments