mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
Minor adjustments
This commit is contained in:
parent
7efa3c333e
commit
d12914a2df
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user