Hi Guys,
i'm quite new and i hope someone can help me. i just need a running serial transmit and receive for the cc2540. this is what i'm using at the moment but only the transmit works the receive doesn't.
//serial send
void serial_send(unsigned char send){
U1DBUF = send;
while (!(U1CSR & 0x02));
}
//serial receive
unsigned char serial_receive(){
while(!(U1CSR & 0x04));
return U1DBUF;
}
thx