mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-12-18 01:08:03 +00:00
Fixed gpio pin implementation and SPI chip select
This commit is contained in:
@@ -16,6 +16,16 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
/**
|
||||
* @brief Describes the pin mode of the GPIO pin.
|
||||
*
|
||||
*/
|
||||
enum class PinMode
|
||||
{
|
||||
GPIO_INPUT,
|
||||
GPIO_OUTPUT
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief A wrapper class for Arduino GPIO pins.
|
||||
*
|
||||
@@ -24,10 +34,11 @@ namespace sta
|
||||
class ArduinoGpioPin : public GpioPin
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @param pin Pin index
|
||||
/**
|
||||
* @param pin Pin index
|
||||
* @param pinMode The pin mode
|
||||
*/
|
||||
ArduinoGpioPin(uint16_t pin);
|
||||
ArduinoGpioPin(uint16_t pin, PinMode mode);
|
||||
|
||||
void setState(GpioPinState state) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user