Fix usage of GpioPin in HAL SPI

This commit is contained in:
Henrik Stickann 2022-04-09 21:51:08 +02:00
parent 221b455e43
commit 876b3c186e

View File

@ -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