1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

use libc::*;

#[link(name = "wiringPi")]
#[allow(non_snake_case)]
extern {
    pub fn piHiPri(priority: c_int) -> c_int;
    pub fn waitForInterrupt(pin: c_int, timeout: c_int) -> c_int;
    pub fn wiringPiISR(pin: c_int, edgeType: c_int, function: extern fn()) -> c_int;
    pub fn piLock(keyNum: c_int);
    pub fn piUnlock(keyNum: c_int);
}