projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix an issue that make reset of triface. Addedd a tag_ser KFIleSerial struct.
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
sipo.c
diff --git
a/bertos/cpu/avr/drv/sipo.c
b/bertos/cpu/avr/drv/sipo.c
index 014f946383ffceacc3da179f6ac0b21b562bfda7..db4ec87e5c0501a4223c1672d9cb52af1835885d 100644
(file)
--- a/
bertos/cpu/avr/drv/sipo.c
+++ b/
bertos/cpu/avr/drv/sipo.c
@@
-42,8
+42,10
@@
*
*/
-#include <drv/ser.h>
#include "sipo.h"
+#include "hw/hw_sipo.h"
+
+#include <drv/ser.h>
Serial *sipo_port;
@@
-67,9
+69,13
@@
void sipo_putchar(uint8_t c)
for(int i = 0; i <= 7; i++)
{
if((c & BV(i)) == 0)
+ {
SET_SOUT_LOW;
+ }
else
+ {
SET_SOUT_HIGH;
+ }
CLOCK_PULSE;
}