Skip to main content
Graduate
May 31, 2023
Question

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

  • May 31, 2023
  • 2 replies
  • 919 views

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

    This topic has been closed for replies.

    2 replies

    Graduate II
    May 31, 2023

    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?

    SRAM.11Author
    Graduate
    May 31, 2023

    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));