mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
Minor adjustments
This commit is contained in:
parent
7efa3c333e
commit
d12914a2df
@ -11,11 +11,6 @@
|
|||||||
* @brief Configuration for STM32F411xE family.
|
* @brief Configuration for STM32F411xE family.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STM32F411xE
|
|
||||||
# error "MCU config incompatible"
|
|
||||||
#endif // !STM32F411xE
|
|
||||||
|
|
||||||
|
|
||||||
#include <sta/devices/stm32/mcu/common.hpp>
|
#include <sta/devices/stm32/mcu/common.hpp>
|
||||||
|
|
||||||
// uart setup
|
// uart setup
|
||||||
|
@ -49,8 +49,8 @@ namespace sta
|
|||||||
if (pin & ioPos)
|
if (pin & ioPos)
|
||||||
{
|
{
|
||||||
// Check input mode
|
// Check input mode
|
||||||
uint32_t mode = (gpioPin.getPort()->MODER >> (2U * i)) & GPIO_MODE;
|
uint32_t mode = 3;//(gpioPin.getPort()->ODR >> (2U * i)) & IS_GPIO_MODE;
|
||||||
if (mode != MODE_INPUT)
|
if (mode != GPIO_MODE_INPUT)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user