mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
6016e411e0
The Raspberry Pi 5 has a coprocessor that takes care of the IO over the BCM. This adds support to the new RP1 processor. Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
14 lines
384 B
C++
14 lines
384 B
C++
#pragma once
|
|
|
|
class GPIO_RPI_HAL {
|
|
public:
|
|
GPIO_RPI_HAL() {}
|
|
virtual void init() = 0;
|
|
virtual void pinMode(uint8_t pin, uint8_t output) = 0;
|
|
virtual void pinMode(uint8_t pin, uint8_t output, uint8_t alt) {};
|
|
|
|
virtual uint8_t read(uint8_t pin) = 0;
|
|
virtual void write(uint8_t pin, uint8_t value) = 0;
|
|
virtual void toggle(uint8_t pin) = 0;
|
|
};
|