HAL_transmit in other fils (no main.c)
Hello,
I'm trying to send data over uart from a another file.
My main :
UART_HandleTypeDef huart1;
DMA_HandleTypeDef hdma_usart1_tx;
int main(void)
{
MX_USART1_UART_Init();
While(1)
{
}
}My error is :
../Core/Src/AT_Command.c:22:21: error: 'huart1' undeclared (first use in this function)
I'have read that a must declare "UART_HandleTypeDef" as extern...
but i'no unsterdant how.
do you have more information ?
