From 81498d54bd44e0256f9027a0628cd7237565a35a Mon Sep 17 00:00:00 2001 From: Jiri Kubias Date: Tue, 8 Apr 2008 12:22:59 +0200 Subject: [PATCH] Upravy po odstraneni souboru --- board/lpceurobot/libs/hwinit/Makefile.omk | 2 +- board/lpceurobot/libs/hwinit/hwinit.c | 7 +---- board/lpceurobot/libs/hwinit/test.c | 34 ----------------------- 3 files changed, 2 insertions(+), 41 deletions(-) diff --git a/board/lpceurobot/libs/hwinit/Makefile.omk b/board/lpceurobot/libs/hwinit/Makefile.omk index 8bf4e0a..73ab720 100644 --- a/board/lpceurobot/libs/hwinit/Makefile.omk +++ b/board/lpceurobot/libs/hwinit/Makefile.omk @@ -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 diff --git a/board/lpceurobot/libs/hwinit/hwinit.c b/board/lpceurobot/libs/hwinit/hwinit.c index 4632777..df6a5b5 100644 --- a/board/lpceurobot/libs/hwinit/hwinit.c +++ b/board/lpceurobot/libs/hwinit/hwinit.c @@ -1,8 +1,6 @@ #include /* LPC21xx definitions */ #include #include "startcfg.h" -#include "pwrstep.h" -#include "uart.h" #include #include @@ -26,10 +24,7 @@ void __hardware_init(void) if (err) error(err); set_APB(APB_DIV_2); - init_pwr(); - - - init_uart0((int)9600 ,UART_BITS_8, UART_STOP_BIT_1, UART_PARIT_OFF, 0 ); + } diff --git a/board/lpceurobot/libs/hwinit/test.c b/board/lpceurobot/libs/hwinit/test.c index 6fc7baa..85e6062 100644 --- a/board/lpceurobot/libs/hwinit/test.c +++ b/board/lpceurobot/libs/hwinit/test.c @@ -1,8 +1,6 @@ #include /* LPC21xx definitions */ #include #include "startcfg.h" -#include "pwrstep.h" -#include "uart.h" #include 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; -- 2.39.2