stm8s_uart1.c bad struct/union operand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-27 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-27 5: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-28 1:48 AM
Thanks for your quick response,
Actually i included wrong stm8s.h file. Now it is fixed.
