cancel
Showing results for 
Search instead for 
Did you mean: 

While creating a project and adding necessary libraries with STM8s003f I am getting error in library.c files #error cpstm8 libraries\src\stm8s_adc1.c:91(14) missing prototype #error cpstm8 libraries\src\stm8s_adc1.c:92(14) missing prototype

SRAM.11
Associate III

If I commented these lines again error is notified in Clk.c file and repeated for other.

My question is, if commenting all those lines will reflect any issues in building the code

2 REPLIES 2

I'm not familiar with the code lines in question, but the error suggests you're missing an include file or define. Perhaps address those issues rather than simply commenting out the lines?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
SRAM.11
Associate III

i haven't written any code just created a workspace included library files and compiled .Its showing me error in the library files.

assert_param(IS_ADC1_CONVERSIONMODE_OK(ADC1_ConversionMode));
 
assert_param(IS_ADC1_CHANNEL_OK(ADC1_Channel));
 
 assert_param(IS_ADC1_PRESSEL_OK(ADC1_PrescalerSelection));
 
 assert_param(IS_ADC1_EXTTRIG_OK(ADC1_ExtTrigger));
 
assert_param(IS_FUNCTIONALSTATE_OK(((ADC1_ExtTriggerState))));
 
  assert_param(IS_ADC1_ALIGN_OK(ADC1_Align));
 
 assert_param(IS_ADC1_SCHMITTTRIG_OK(ADC1_SchmittTriggerChannel));
 
 assert_param(IS_FUNCTIONALSTATE_OK(ADC1_SchmittTriggerState));