We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#define STM32F3xx // Change for your device #ifdef STM32F3xx #include "stm32f3xx_hal.h" #include "stm32f3xx_hal_uart.h" #endif /* STM32F3xx / #ifdef STM32F4xx #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_uart.h" #endif / STM32F4xx / #ifdef STM32F7xx #include "stm32f7xx_hal.h" #include "stm32f7xx_hal_uart.h" #endif / STM32F7xx */
This a piece of code from STM32Hardware header file, how to add stm32f103 microcontroller ? please guide
The text was updated successfully, but these errors were encountered:
I am using CubeIDE
Sorry, something went wrong.
I am assuming you have generated the boiler plate code for your STM32 project in STM32CubeIDE.
In the STM32Hardware.h simply add these lines:
#ifdef STM32F1xx #include "stm32f1xx_hal.h" #include "stm32f1xx_hal_uart.h" #endif
remove this line "#define STM32F3xx // Change for your device"
No branches or pull requests
#define STM32F3xx // Change for your device
#ifdef STM32F3xx
#include "stm32f3xx_hal.h"
#include "stm32f3xx_hal_uart.h"
#endif /* STM32F3xx /
#ifdef STM32F4xx
#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_uart.h"
#endif / STM32F4xx /
#ifdef STM32F7xx
#include "stm32f7xx_hal.h"
#include "stm32f7xx_hal_uart.h"
#endif / STM32F7xx */
This a piece of code from STM32Hardware header file, how to add stm32f103 microcontroller ? please guide
The text was updated successfully, but these errors were encountered: