2017-09-27 04:19 AM
Hello.
I want to using uart1 with STM8S003,
after add
stm8s_uart1.c and stm8s_uart1.h and build project, the compiler(Cosmic) tell error
'stm8s_uart1.c bad struct/union operand'
it's look like somethings not define to project.
Help please.
2017-09-27 05:24 AM
>>it's look like somethings not define to project.
Ok, so look at what it is complaining about, and define that. Normally .H files are #included, not added to the project explicitly.
Show what you're doing and what fails, so that people can see what going on without trying to replicate the situation with next to no detail to work from.
2017-09-28 01:48 AM
Thanks for your quick response,
Actually i included wrong stm8s.h file. Now it is fixed.