diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-16 13:12:59 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-16 13:12:59 +0000 |
commit | c77b30e9e6069c893b8461e104e7893762ed81a7 (patch) | |
tree | 82345fcee0e2f365b83a498a3591758561007612 /Projects/XPLAINBridge/Lib | |
parent | 2b51944a4bf6123ca5fb59bd967b8f4a1fa944e1 (diff) | |
download | lufa-c77b30e9e6069c893b8461e104e7893762ed81a7.tar.gz lufa-c77b30e9e6069c893b8461e104e7893762ed81a7.tar.bz2 lufa-c77b30e9e6069c893b8461e104e7893762ed81a7.zip |
Clean up XPLAINBridge code.
Diffstat (limited to 'Projects/XPLAINBridge/Lib')
-rw-r--r-- | Projects/XPLAINBridge/Lib/SoftUART.c | 8 | ||||
-rw-r--r-- | Projects/XPLAINBridge/Lib/SoftUART.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Projects/XPLAINBridge/Lib/SoftUART.c b/Projects/XPLAINBridge/Lib/SoftUART.c index bc0265378..01f9b2e12 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.c +++ b/Projects/XPLAINBridge/Lib/SoftUART.c @@ -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));
diff --git a/Projects/XPLAINBridge/Lib/SoftUART.h b/Projects/XPLAINBridge/Lib/SoftUART.h index 7dbf2d56b..d6b24320f 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.h +++ b/Projects/XPLAINBridge/Lib/SoftUART.h @@ -51,10 +51,10 @@ #define STXDDR DDRD
/* Function Prototypes: */
- unsigned char SoftUART_IsReady(void);
- unsigned char SoftUART_TxByte(unsigned char c);
- unsigned char SoftUART_IsReceived(void);
- unsigned char SoftUART_RxByte(void);
- void SoftUART_Init(void);
+ uint8_t SoftUART_IsReady(void);
+ uint8_t SoftUART_TxByte(uint8_t c);
+ uint8_t SoftUART_IsReceived(void);
+ uint8_t SoftUART_RxByte(void);
+ void SoftUART_Init(void);
#endif
\ No newline at end of file |