Dear Engineers.
I am working on a project written before using ecos, now I want to run it on NIOS II and I converted the code but I face a problem now, how can we create and deal with Flags.
for example
cyg_flag_t X_flag; /// For Creating a flag in eCOS
cyg_flag_value_t to_Y;
to_Y = cyg_flag_wait( &X_flag,
0xFFF,
CYG_FLAG_WAITMODE_OR
| CYG_FLAG_WAITMODE_CLR);
if (to_Y = 1)
cyg_flag_setbits (&X_flag, to_Y);
The above code is a part of ecos, we can create a flag with it, do some pending, and then setting some valuse.
If anyone can help me to convert this code to uC/OS-II
I am working on a project written before using ecos, now I want to run it on NIOS II and I converted the code but I face a problem now, how can we create and deal with Flags.
for example
cyg_flag_t X_flag; /// For Creating a flag in eCOS
cyg_flag_value_t to_Y;
to_Y = cyg_flag_wait( &X_flag,
0xFFF,
CYG_FLAG_WAITMODE_OR
| CYG_FLAG_WAITMODE_CLR);
if (to_Y = 1)
cyg_flag_setbits (&X_flag, to_Y);
The above code is a part of ecos, we can create a flag with it, do some pending, and then setting some valuse.
If anyone can help me to convert this code to uC/OS-II