Browse Source

Use function defintion types in header

pull/151/head
riban 2 years ago
parent
commit
5ce226808f
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      wiringPi/wiringPi.h

+ 5
- 2
wiringPi/wiringPi.h View File

@@ -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…
Cancel
Save