Minor adjustments

This commit is contained in:
@CarlWachter 2024-01-24 21:21:32 +01:00 committed by lars
parent 7efa3c333e
commit d12914a2df
2 changed files with 2 additions and 7 deletions

View File

@ -11,11 +11,6 @@
* @brief Configuration for STM32F411xE family.
*/
#ifndef STM32F411xE
# error "MCU config incompatible"
#endif // !STM32F411xE
#include <sta/devices/stm32/mcu/common.hpp>
// uart setup

View File

@ -49,8 +49,8 @@ namespace sta
if (pin & ioPos)
{
// Check input mode
uint32_t mode = (gpioPin.getPort()->MODER >> (2U * i)) & GPIO_MODE;
if (mode != MODE_INPUT)
uint32_t mode = 3;//(gpioPin.getPort()->ODR >> (2U * i)) & IS_GPIO_MODE;
if (mode != GPIO_MODE_INPUT)
{
return false;
}