AnsweredAssumed Answered

About st peripherial library

Question asked by can.mehmet.001 on Dec 18, 2011
Latest reply on Dec 20, 2011 by Clive One
Hello,
Im trying to use st standart peripherial libraries. In my project im adding stm32f10x.h file ,and also i uncommented #include "stm32f10x_rcc.h" line. There is a question at this point.
When i activate #include "stm32f10x_rcc.h" this line ,which file does call #include "stm32f10x_rcc.c", I couldnt understand which file is include .c files (stm32f10x_rcc.c).
If i write #include "stm32f10x_rcc.c in main.c ,without problem i can compile project.

Also there is a template that name is `STM32F10x_StdPeriph_Template` in this template all st driver files added as a group.I couldnt find how they add these .c files to main.c.Because if i add like this way i get this error from each st driver.c files.
..\M3_DENEME\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"

Outcomes