Clean up XPLAINBridge code.

This commit is contained in:
Dean Camera 2010-02-16 13:12:59 +00:00
parent 2b51944a4b
commit c77b30e9e6
6 changed files with 44 additions and 21 deletions

View file

@ -35,12 +35,12 @@
volatile uint8_t srx_done, stx_count;
volatile uint8_t srx_data, srx_mask, srx_tmp, stx_data;
unsigned char SoftUART_IsReady(void)
uint8_t SoftUART_IsReady(void)
{
return !(stx_count);
}
unsigned char SoftUART_TxByte(unsigned char c)
uint8_t SoftUART_TxByte(uint8_t c)
{
while (stx_count);
@ -50,12 +50,12 @@ unsigned char SoftUART_TxByte(unsigned char c)
return c;
}
unsigned char SoftUART_IsReceived(void)
uint8_t SoftUART_IsReceived(void)
{
return srx_done;
}
unsigned char SoftUART_RxByte(void)
uint8_t SoftUART_RxByte(void)
{
while (!(srx_done));