hi slacker,
thnx for ur reply. I understood the mistake i was doing. I was trying to combine both HAL and freestanding applications. Now I am trying to use HAL only.
but still i m confused about a few things.
1.
in uart when receive request is made, the rxirq method is called, which then sets a receive flag throught the macro ALT_FLAG_POST(dev->events, ALT_UART_READ_RDY, OS_FLAG_SET),
but when i looked into the alt_avalon_uart_dev structure, i couldnt find any attribute like events there. now in my main program, i want to check whether my flag is set or not so that i can go to the read function. I checked it through
if(dev->events){....}
but this gives an error since it couldnt find any events attribute there. So how can i check for the flag being set or not??
2.
I now defined my file pointer as alt_fd* fd instead of FILE* fd to match the prototypes. but now its giving error by the way i open the device or close it.
I know these are basic programming problems, but m not able to figure out the right way.