2017-10-28 03:55 AM
dear Community,
i should to use some HAL functions outside the main.c
i add &sharpinclude ''stm32f4xx_hal.h'' to another c file but error appears for example for SPI:
regards, Ras
#hal #outside-main.c2017-10-28 04:26 AM
Hello !
use ater include :
#include 'stm32f4xx_hal.h'
extern SPI_HandleTypeDef hspi5;
or
extern 'C' {SPI_HandleTypeDef hspi5;}// in case your module is a c++ module.
regards
vf