X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d4ca7fb44c7d326b96cf391f0275dc323dbe24de..c58c53dba90fdc19d38f5e5d6957f2ede2a740f3:/Projects/XPLAINBridge/Lib/SoftUART.c diff --git a/Projects/XPLAINBridge/Lib/SoftUART.c b/Projects/XPLAINBridge/Lib/SoftUART.c index 16cfc985b..01f9b2e12 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.c +++ b/Projects/XPLAINBridge/Lib/SoftUART.c @@ -1,15 +1,15 @@ /* LUFA Library - Copyright (C) Dean Camera, 2009. + Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* - Copyright 2009 David Prentice (david.prentice [at] farming [dot] uk) - Copyright 2009 Peter Danneger - Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2010 David Prentice (david.prentice [at] farming [dot] uk) + Copyright 2010 Peter Danneger + Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -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));