cancel
Showing results for 
Search instead for 
Did you mean: 

In the HAL files why does #if defined(CAN1) exist and why is it not defined by default if I enable CAN1.

csotiriou
Associate II

Using STM32CubeIDE.

Also when defined by user the autocomplete does not work on the IDE for those functions

2 REPLIES 2
TDK
Guru

Works for me on a new project in CubeMX.

If the symbol isn't defined, makes sense that autocomplete would not find it.

If you feel a post has answered your question, please click "Accept as Solution".
csotiriou
Associate II

Even after I define CAN1 (and the IDE shows them as not gray (active)) they still don't show in the autocomplete. The project compiles even without the define.