瀏覽代碼

Use function defintion types in header

pull/151/head
riban 2 年之前
父節點
當前提交
5ce226808f
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. +5
    -2
      wiringPi/wiringPi.h

+ 5
- 2
wiringPi/wiringPi.h 查看文件

@@ -244,9 +244,12 @@ extern void digitalWriteByte2 (int value) ;
// Interrupts
// (Also Pi hardware specific)

typedef void isr_function_t();
typedef void isr_functionx_t();

extern int waitForInterrupt (int pin, int mS) ;
extern int wiringPiISR (int pin, int mode, void (*function)(void)) ;
extern int wiringPiISRX (int pin, int mode, void (*function)(void)) ;
extern int wiringPiISR (int pin, int mode, isr_function_t function);
extern int wiringPiISRX (int pin, int mode, isr_functionx_t function);

// Threads



Loading…
取消
儲存