projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix TeensyHID bootloader for the largest AVRs - only the ATMEGA128x needs the alterna...
[pub/USBasp.git]
/
Projects
/
XPLAINBridge
/
Lib
/
SoftUART.c
diff --git
a/Projects/XPLAINBridge/Lib/SoftUART.c
b/Projects/XPLAINBridge/Lib/SoftUART.c
index
bc02653
..
31b11c1
100644
(file)
--- a/
Projects/XPLAINBridge/Lib/SoftUART.c
+++ b/
Projects/XPLAINBridge/Lib/SoftUART.c
@@
-35,27
+35,27
@@
volatile uint8_t srx_done, stx_count;
\r
volatile uint8_t srx_data, srx_mask, srx_tmp, stx_data;
\r
\r
volatile uint8_t srx_done, stx_count;
\r
volatile uint8_t srx_data, srx_mask, srx_tmp, stx_data;
\r
\r
-u
nsigned char
SoftUART_IsReady(void)
\r
+u
int8_t
SoftUART_IsReady(void)
\r
{
\r
return !(stx_count);
\r
}
\r
\r
{
\r
return !(stx_count);
\r
}
\r
\r
-u
nsigned char SoftUART_TxByte(unsigned char c
)
\r
+u
int8_t SoftUART_TxByte(uint8_t Byte
)
\r
{
\r
while (stx_count);
\r
\r
{
\r
while (stx_count);
\r
\r
- stx_data = ~
c
;
\r
+ stx_data = ~
Byte
;
\r
stx_count = 10;
\r
\r
stx_count = 10;
\r
\r
- return
c
;
\r
+ return
Byte
;
\r
}
\r
\r
}
\r
\r
-u
nsigned char
SoftUART_IsReceived(void)
\r
+u
int8_t
SoftUART_IsReceived(void)
\r
{
\r
return srx_done;
\r
}
\r
\r
{
\r
return srx_done;
\r
}
\r
\r
-u
nsigned char
SoftUART_RxByte(void)
\r
+u
int8_t
SoftUART_RxByte(void)
\r
{
\r
while (!(srx_done));
\r
\r
{
\r
while (!(srx_done));
\r
\r