blob: 2368a8c2ba8c693845f9b4a4dc76efbb9c9d4844 (
plain)
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
46
47
|
/*
* Copyright 2022 Birte Kristina Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef GPIO_H
#define GPIO_H
class GPIO {
private:
GPIO(const GPIO ©);
public:
GPIO () {}
enum Pin : unsigned char {
PIN_INVALID
};
inline void setup() {
}
inline void led_on(unsigned char id = 0) {
}
inline void led_off(unsigned char id = 0) {
}
inline void led_toggle(unsigned char id = 0) {
}
inline void input(unsigned char const pin) {
}
inline void input(unsigned char const pin, unsigned char const pull) {
}
inline void output(unsigned char const pin) {
}
inline void output(unsigned char const pin, unsigned char const value) {
}
inline unsigned char read(unsigned char const pin) {
return 0;
}
inline void write(unsigned char const pin, unsigned char value) {
}
inline void write_mask(unsigned char const pin_base, unsigned char set_mask, unsigned char clear_mask) {
}
};
extern GPIO gpio;
#endif
|