forked from horchi/linux-p4d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpio.c
45 lines (35 loc) · 805 Bytes
/
gpio.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//***************************************************************************
// Automation Control
// File gpio.h
// This code is distributed under the terms and conditions of the
// GNU GENERAL PUBLIC LICENSE. See the file LICENSE for details.
// Date 16.04.2020 Jörg Wendel
//***************************************************************************
#include "gpio.h"
// ----------------------------------
// dummies to be removed
// ----------------------------------
#ifdef _NO_RASPBERRY_PI_
int wiringPiISR(int, int, void (*)())
{
return 0;
}
void pinMode(int, int)
{
}
void pullUpDnControl(int pin, int value)
{
}
int digitalWrite(uint pin, bool value)
{
return 0;
}
int digitalRead(uint pin)
{
return 0;
}
int wiringPiSetupPhys()
{
return 0;
}
#endif // _NO_RASPBERRY_PI_