hi dear reader
I'm a beginner and i learned cmsis but now I want to use from standard peripheral libraries but I can't find "if !defined USE_STDPERIPH_DRIVER" to define it in my project. my keil ver is 5.29.
I google this problem but I don't find any solution.thanks a lot.
You're using the HAL version of the include file, not the SPL version
You'd want to use USE_HAL_DRIVER instead, if that's what you're using.
If you want to be using the SPL you should make sure you know where the include files are situated, and change the Include Paths for the compiler to reflect that.
I have "en.stm32f4_dsp_stdperiph_lib.zip" and I exported "stm32f4xx_conf.h" & "stm32f4xx_rcc.h" and etc .and set them in c/c++ (include path). but I cant find stm32f4xx.h SPL version.
\STM32F4xx_DSP_StdPeriph_Lib_V1.8.0\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h
thanks