Remove timer dependece.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 28 Sep 2010 10:59:34 +0000 (10:59 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 28 Sep 2010 10:59:34 +0000 (10:59 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4328 38d2e660-2303-0410-9eaa-f027e97ec537

boards/ek-lm3s1968/hw/hw_adc.h

index 66d643656bd8cce3340ec8847f12dd0076919071..1f6aeadd6f200eaab6aa0b58214cba231df5e1e7 100644 (file)
@@ -39,7 +39,7 @@
 #define HW_ADC_H
 
 #include <drv/adc.h>
-#include <drv/timer.h>
+#include <drv/clock_lm3s.h>
 
 #include <io/cm3.h>
 
@@ -76,8 +76,11 @@ INLINE void hw_initIntTemp(void)
        /* Enable ADC0 clock */
        SYSCTL_RCGC0_R |= SYSCTL_RCGC0_ADC0;
 
-       /* Why this??? */
-       timer_udelay(1);
+       /*
+        * We wait some time because the clock is istable
+        * and that could cause system hardfault
+        */
+       lm3s_busyWait(10);
 
        /* Disable all sequence */
        HWREG(ADC0_BASE + ADC_O_ACTSS) = 0;