Fix hw include. Reformat.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 May 2008 08:54:49 +0000 (08:54 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 May 2008 08:54:49 +0000 (08:54 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1316 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/drv/pwm_at91.c
bertos/cpu/arm/drv/ser_at91.c
bertos/cpu/avr/drv/sipo.h
bertos/drv/buzzerled.h
bertos/drv/lcd_hd44_test.c
bertos/drv/phase.c
bertos/drv/spi_bitbang.c
bertos/drv/stepper.c
bertos/drv/thermo.c
bertos/drv/timer_test.c

index b1fda46fd1dac58b08bb867cefd5edc39a5365f5..9bba617d1c8285cb69095e29fe24f1fbd215a7d2 100644 (file)
  */
 
 #include "pwm_at91.h"
+#include "hw_cpu.h"
 
-#include <hw/hw_cpu.h>
+#include "appconfig.h"
 
 #include <cfg/macros.h>
 #include <cfg/debug.h>
+
 #include <io/arm.h>
 
-#include "appconfig.h"
 
 /**
  * Register structure for pwm driver.
index 19f36df859cc2e6f7e38070f2af318888004a713..bc1555c25c75434dd638cef0e2430f52c996f974 100644 (file)
  * \author Daniele Basile <asterix@develer.com>
  */
 
+#include "hw_ser.h"  /* Required for bus macros overrides */
+#include "hw_cpu.h"  /* CLOCK_FREQ */
+
+#include <cfg/debug.h>
+
+#include <appconfig.h>
+
 #include <io/arm.h>
 
 #include <cpu/attr.h>
+
 #include <drv/ser.h>
 #include <drv/ser_p.h>
 
-#include <hw/hw_ser.h>  /* Required for bus macros overrides */
-#include <hw/hw_cpu.h>  /* CLOCK_FREQ */
-
 #include <mware/fifobuf.h>
-#include <cfg/debug.h>
 
-#include <appconfig.h>
 
 #define SERIRQ_PRIORITY 4 ///< default priority for serial irqs.
 
index 15df226ad5d6e2d4c887e3ffbfc2eddfa22d0160..4c0fdfa650e9c49d853302cff640f4e9a9596465 100644 (file)
@@ -41,8 +41,9 @@
 #ifndef SIPO_H
 #define SIPO_H
 
+#include "hw_sipo.h"
+
 #include <avr/io.h>
-#include <hw/hw_sipo.h>
 
 void sipo_init(void);
 void sipo_putchar(uint8_t c);
index a9f0b00027bfb67dd0f24bda2444fd8e27ab76eb..c5c97d96bcd2721606e5750bfecf0b3912d8d620 100644 (file)
@@ -50,7 +50,7 @@
  *  an enumarator for each device, plus a special symbol NUM_BLDS containing the
  *  number of devices.
  */
-#include <hw/hw_buzzerled.h>
+#include "hw_buzzerled.h"
 
 
 /* Include hw-level implementation. This allows inlining of bld_set, which in turns
index 412e43e96fb011afa88c90d38400620396258c09..65107b8549d6a9512298e25e87a4f431b66eaa42 100644 (file)
@@ -37,7 +37,7 @@
  * \author Stefano Fedrigo <aleph@develer.com>
  */
 
-#include <hw/hw_lcd.h>
+#include "hw_lcd.h"
 
 #include <cfg/arch_config.h>
 
index 39eadf470cda0bd456595a95863173ce6ece4d49..b56aa61d3807121d3382395f8613201860a82ea6 100644 (file)
@@ -37,7 +37,7 @@
  */
 
 
-#include <hw/hw_phase.h>
+#include "hw_phase.h"
 
 #include <cfg/macros.h>
 #include <cfg/compiler.h>
index 10a238897769280c3b653d13f0ced7b5264579b7..f025131658b36c65e9dde8ef8bc8f89859299441 100644 (file)
@@ -41,7 +41,7 @@
 
 
 #include "spi_bitbang.h"
-#include <hw/hw_spi.h>
+#include "hw_spi.h"
 
 #include <cfg/module.h>
 #include <cpu/irq.h>
index 716b094fee87b112f0a4b2f684814c09cdc48c42..39fa288f5510adf5a142d0abc98cc9029cf08bb1 100644 (file)
 
 #include "stepper.h"
 
+#include "hw_stepper.h"
+#include "hw_sensor.h"
+
+#include "appconfig.h"
+
 #include <cfg/debug.h>
+
 #include <kern/proc.h>
+
 #include <algo/ramp.h>
 #include <drv/stepper_at91.h>
 
-#include <hw/hw_stepper.h>
-#include <hw/hw_sensor.h>
-
 #include <string.h>  // memset
 
-#include "appconfig.h"
-
 /**
  * \name Motor timings
  * \{
index f9dd86cf281791f51a1ec504b8f83dd4f1ee0c6e..cfc1014f2211000002e4277df1ab3c9bbc2a2572 100644 (file)
  * \author Francesco Sacchi <batt@develer.com>
  */
 
-#include <hw/thermo_map.h>
-#include <hw/hw_thermo.h>
+#include "thermo_map.h"
+#include "hw_thermo.h"
 
 #include <cfg/module.h>
+#include <cfg/macros.h>
+#include <cfg/debug.h>
 
 #include <drv/thermo.h>
 #include <drv/timer.h>
 #include <drv/ntc.h>
 
-#include <cfg/macros.h>
-#include <cfg/debug.h>
 
 
 /** Interval at which thermo control is performed. */
index 170105dea8a1ca9ba809e4305faa5bb10eeb01b2..3e9338a89bdb226bab6f635ac35b6968f0a5dd14 100644 (file)
  * \author Bernardo Innocenti <bernie@develer.com>
  */
 
-#include "timer.c"
-#include "mware/event.c"
-#include "os/hptime.c"
+#ifdef _TEST
+       #include "timer.c"
+       #include "mware/event.c"
+       #include "os/hptime.c"
+
+#else
+       #include <drv/timer.c>
+       #include <mware/event.c>
+       #include <drv/wdt.h>
+
+#endif
+
 
 static void timer_test_constants(void)
 {