Re-Refactor code under new specs. FlashAvr.
[bertos.git] / bertos / cpu / avr / drv / sipo.c
index 014f946383ffceacc3da179f6ac0b21b562bfda7..db4ec87e5c0501a4223c1672d9cb52af1835885d 100644 (file)
  *
  */
 
-#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;
        }