Architecture problem using BLE library
Hi everyone,
I design the BLE (bluetooth low energy) part of my software, for that, I use BlueNRG-1, BlueNRG-2 DK SW package, provided by ST.
I included the library (.a) and others source code files (.c) and headers (.h) in my project.
But I feel something is wrong, (for example) some .h that I include from the library redefine some macros that were already define by the code generation of the IDE.
an example of a case when I follow a basic tutorial on how to setup a basic server on the board, using the library
I need to use a function, the prototype of the latter is in a file that I include in my main.c
#include "C:\Users\xxxxxxxx\ST\BlueNRG-1_2 DK 3.2.3(v2.0)\Library\Bluetooth_LE\inc\bluenrg1_stack.h"
In this file.h, there is a macro definition :
#define IS_UART_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 20000000U)But this line of code is already in "Drivers\STM32U5xx_HAL_Driver\Inc\stm32u5xx_hal_uart.h"
Thats an example, but the include of bluenrg1_stack.h redefine a lot of macros, throw a lot of errors and warning.
I feel like its not the good way to do, I dont know what I am missing or doing wrong.
If you need more information to help me, please feel free to ask, I'll provide them.
