Sairam to everyone
Good morning
I am using AVR Studio to compile MuCOS II onto Micrium site.
Micrium is the provider of all MuCOS II an RTOS for various ports.

I had the following error :
../../os_dbg.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'INT16U'

Addressing this line:
OS_COMPILER_OPT INT16U const OSDebugEn = OS_DEBUG_EN;

Which intern addressed by :
#define OS_COMPILER_OPT __root

Thanking u
Bye

can you possibly be more vague?

Sairam everyone
__root is a IAR compiler directive
IAR compiler does lots of optimization
It removes unused variables

How ever __root tells the IAR compiler that it should not remove these variables qualified by __root

For more information also see 8051 IAR compiler reference document


Thank You

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.