发表于:2004-03-26 17:09:00
1楼
this is a sample for your reference
priority when(slta_rxrdy())
// == receive message from 701E controller ==
{
result[buffer_index] =(unsigned short) slta_getchar();
buffer_index++;
if(buffer_index >= max_buff_size)
{
buffer_index = 0;
nvoBuffer_Full= nvoBuffer_Full+1;
}
unprocessed_serial_count++;
}