2021-08-27 04:48 AM
include "stm8s.h"
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t line)
{
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
/* Infinite loop */
while (1)
{
}
}
#endif
int main(void)
{
}
this is the actual code. I'm getting the error as shown.
#error cpstm8 main.c:1(0+7) missing ;
Need Help to solve this.
Thanks in Advance
2021-08-27 05:20 AM
Follow into the include file(s)
Perhaps generate a pre-processor output, if the tool permits.