From: asterix Date: Wed, 11 Jun 2008 17:49:52 +0000 (+0000) Subject: Use brackets for if/else. X-Git-Tag: 2.0.0~480 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=bfa94e1d31d9d9c1d9bcaf4313cd112d43e772a4;p=bertos.git Use brackets for if/else. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1454 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/sipo.c b/bertos/cpu/avr/drv/sipo.c index 014f9463..db4ec87e 100644 --- a/bertos/cpu/avr/drv/sipo.c +++ b/bertos/cpu/avr/drv/sipo.c @@ -42,8 +42,10 @@ * */ -#include #include "sipo.h" +#include "hw/hw_sipo.h" + +#include 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; }