1 2 3 4 5 6 7 8 9 10 11
use libc::*; #[link(name = "wiringPi")] #[allow(non_snake_case)] extern { pub fn millis() -> c_uint; pub fn micros() -> c_uint; pub fn delay(howLong: c_uint); pub fn delayMicroseconds(howLong: c_uint); }
1 2 3 4 5 6 7 8 9 10 11
use libc::*; #[link(name = "wiringPi")] #[allow(non_snake_case)] extern { pub fn millis() -> c_uint; pub fn micros() -> c_uint; pub fn delay(howLong: c_uint); pub fn delayMicroseconds(howLong: c_uint); }