]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Upravy po odstraneni souboru
authorJiri Kubias <jiri.kubias@gmail.com>
Tue, 8 Apr 2008 10:22:59 +0000 (12:22 +0200)
committerJiri Kubias <jiri.kubias@gmail.com>
Tue, 8 Apr 2008 10:22:59 +0000 (12:22 +0200)
board/lpceurobot/libs/hwinit/Makefile.omk
board/lpceurobot/libs/hwinit/hwinit.c
board/lpceurobot/libs/hwinit/test.c

index 8bf4e0a8eb3b86c25b084384e6b970371a6597f0..73ab72049bb3da772c9cd3fd8d56ba93e3b1a4a0 100644 (file)
@@ -1,7 +1,7 @@
 # -*- makefile -*-
 
 lib_LIBRARIES = eurobothw
-eurobothw_SOURCES = pwrstep.c startcfg.c uart.c error.c
+eurobothw_SOURCES = startcfg.c  error.c
 
 include_HEADERS = error.h
 
index 4632777b801cab72b563f6bcffe51ced1a32baad..df6a5b565960e890185dcfb893bbb47d3bbb062c 100644 (file)
@@ -1,8 +1,6 @@
 #include <lpc21xx.h>                            /* LPC21xx definitions */\r
 #include <deb_led.h>\r
 #include "startcfg.h"\r
-#include "pwrstep.h"\r
-#include "uart.h"\r
 #include <stdlib.h>\r
 #include <error.h>\r
 \r
@@ -26,10 +24,7 @@ void __hardware_init(void)
        if (err) error(err);\r
 \r
        set_APB(APB_DIV_2);\r
-       init_pwr();\r
-\r
-\r
-       init_uart0((int)9600 ,UART_BITS_8, UART_STOP_BIT_1, UART_PARIT_OFF, 0 );\r
+       
 \r
 }\r
 \r
index 6fc7baaa1faac7a58176a82f9642ac7af97f5c2a..85e60627c3753bda5094a736ce2e9ba147bd8067 100644 (file)
@@ -1,8 +1,6 @@
 #include <lpc21xx.h>                            /* LPC21xx definitions */
 #include <errno.h>
 #include "startcfg.h"
-#include "pwrstep.h"
-#include "uart.h"
 #include <deb_led.h>
 
 extern unsigned int adc_val[4];
@@ -18,38 +16,6 @@ int main (void)
                deb_led_set(leds[i]);
                if (++i == LEDS) i=0;
                wait();
-
-               uart0SendCh(0xAA);
-               uart0SendCh(0x1);
-               uart0SendCh(' ');
-               uart0SendCh((adc_val[0] >> 8) & 0xFF);
-               uart0SendCh((adc_val[0]) & 0xFF);
-
-
-
-               uart0SendCh(0xAA);
-               uart0SendCh(0x2);
-               uart0SendCh(' ');
-               uart0SendCh((adc_val[1] >> 8) & 0xFF);
-               uart0SendCh((adc_val[1]) & 0xFF);
-
-
-               uart0SendCh(0xAA);
-               uart0SendCh(0x3);
-               uart0SendCh(' ');
-               uart0SendCh((adc_val[2] >> 8) & 0xFF);
-               uart0SendCh((adc_val[2]) & 0xFF);
-
-               uart0SendCh(0xAA);
-               uart0SendCh(0x4);
-               uart0SendCh(' ');
-               uart0SendCh((adc_val[3] >> 8) & 0xFF);
-               uart0SendCh((adc_val[3]) & 0xFF);
-
-
-               pwr_33(PWR_ON);
-               pwr_50(PWR_ON);
-               pwr_80(PWR_ON);
        
        }
        return 0;