forked from horchi/linux-p4d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpio.h
27 lines (21 loc) · 733 Bytes
/
gpio.h
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
//***************************************************************************
// Automation Control
// File gpio.c
// This code is distributed under the terms and conditions of the
// GNU GENERAL PUBLIC LICENSE. See the file LICENSE for details.
// Date 04.12.2021 Jörg Wendel
//***************************************************************************
#pragma once
#ifdef _NO_RASPBERRY_PI_
#include <stdlib.h> // uint
#define PUD_UP 0
#define INT_EDGE_FALLING 0
#define OUTPUT 0
#define INPUT 0
int wiringPiISR(int, int, void (*)());
void pinMode(int, int);
void pullUpDnControl(int pin, int value);
int digitalWrite(uint pin, bool value);
int digitalRead(uint pin);
int wiringPiSetupPhys();
#endif // _NO_RASPBERRY_PI_