mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-02 17:31:53 +00:00
Fix usage of GpioPin in HAL SPI
This commit is contained in:
parent
221b455e43
commit
876b3c186e
@ -57,12 +57,12 @@ namespace sta
|
|||||||
|
|
||||||
void HalSpiDevice::select()
|
void HalSpiDevice::select()
|
||||||
{
|
{
|
||||||
STA_HAL_GPIO_PIN_WRITE(csPin_, GPIO_PIN_RESET);
|
csPin_.setState(GpioPinState::LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HalSpiDevice::deselect()
|
void HalSpiDevice::deselect()
|
||||||
{
|
{
|
||||||
STA_HAL_GPIO_PIN_WRITE(csPin_, GPIO_PIN_SET);
|
csPin_.setState(GpioPinState::HIGH);
|
||||||
}
|
}
|
||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user