Reoeder and add missing includes.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2010 17:22:59 +0000 (17:22 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2010 17:22:59 +0000 (17:22 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4041 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/drv/clock_lm3s.c
bertos/cpu/cortex-m3/drv/timer_cm3.c
bertos/cpu/cortex-m3/drv/timer_cm3.h

index 0cd5da8415b9f555b7321fd7835bdb212195a99b..df4681ea3ef860b9c62d5cce8713c07c8722cb2c 100644 (file)
  * \author Andrea Righi <arighi@develer.com>
  */
 
+#include "clock_lm3s.h"
+
 #include <cfg/compiler.h>
 #include <cfg/debug.h>
+
 #include <io/lm3s.h>
-#include "clock_lm3s.h"
+
 
 /* The PLL VCO frequency is 400 MHz */
 #define PLL_VCO        400000000UL
index e5a730bfe381f5d805216606e504d734125396c1..ac8512e469a0c914896cea4fcb62f5ac72235e06 100644 (file)
  * \author Andrea Righi <arighi@develer.com>
  */
 
+#include "timer_cm3.h"
+
 #include <cfg/debug.h>
+
 #include <cpu/irq.h>
+
 #include <drv/irq_cm3.h>
-#include "timer_cm3.h"
 
 INLINE void timer_hw_setPeriod(unsigned long period)
 {
index 1ee8b7a2a3bc4263f3878c70b3ccf3ba8ec9ed41..6778606d29850b9a4c39cdd867dc7d4e69ccd027 100644 (file)
@@ -40,6 +40,9 @@
 
 #include "cfg/cfg_timer.h"     /* CONFIG_TIMER */
 
+#include <cpu/detect.h>
+#include <cpu/irq.h>
+
 #if CPU_CM3_LM3S
        #include <io/lm3s.h>
 #elif CPU_CM3_STM32