MCPcopy Index your code
hub / github.com/endbasic/endbasic / setup_gpio_pins_rppal

Function setup_gpio_pins_rppal

cli/src/gpio.rs:27–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25/// Creates the rppal GPIO backend when the rpi feature is compiled in.
26#[cfg(feature = "rpi")]
27fn setup_gpio_pins_rppal() -> Result<Rc<RefCell<dyn gpio::Pins>>> {
28 Ok(Rc::new(RefCell::new(endbasic_rpi::RppalPins::default())))
29}
30
31/// Errors out for rppal when the rpi feature is not compiled in.
32#[cfg(not(feature = "rpi"))]

Callers 1

setup_gpio_pinsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected