From e5f2bd2aff866d5a3b3c2f22e1a14c244ee44229 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 28 Sep 2010 10:59:34 +0000 Subject: [PATCH] Remove timer dependece. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4328 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/ek-lm3s1968/hw/hw_adc.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/boards/ek-lm3s1968/hw/hw_adc.h b/boards/ek-lm3s1968/hw/hw_adc.h index 66d64365..1f6aeadd 100644 --- a/boards/ek-lm3s1968/hw/hw_adc.h +++ b/boards/ek-lm3s1968/hw/hw_adc.h @@ -39,7 +39,7 @@ #define HW_ADC_H #include -#include +#include #include @@ -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; -- 2.25.1