i want to conver this program C to bascom can anyone help me to.it's for AVR atmega8535 chip thanks a lot
#ifndef RXC
#define RXC 7
#endif
#define FRAMING_ERROR (1<<FE)
if ((status & (FRAMING_ERROR | PARITY_ERROR | DATA_OVERRUN))==0)
{
rx_buffer[rx_wr_index++]=data;
#if RX_BUFFER_SIZE == 256
// special case for receiver buffer size=256
if (++rx_counter == 0) rx_buffer_overflow=1;
#else
if ((msg[0] != 'G')||(msg[1] != 'P')||(msg[2] != 'G')||(msg[3] != 'G')||(msg[4] != 'A')) valid = 0;
xuart=0;
↧