From: duplo Date: Thu, 23 Apr 2009 13:23:40 +0000 (+0000) Subject: Fix the ntc problems. X-Git-Tag: 2.1.0~32 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c439c5c30317f0210ca62fd32b6d841037f544c9;p=bertos.git Fix the ntc problems. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2650 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/ntc.h b/bertos/drv/ntc.h index 942965a2..31c4ce59 100644 --- a/bertos/drv/ntc.h +++ b/bertos/drv/ntc.h @@ -47,6 +47,7 @@ #include "hw/ntc_map.h" #include +#include #define NTC_OPEN_CIRCUIT -32768 #define NTC_SHORT_CIRCUIT 32767 diff --git a/bertos/hw/hw_ntc.c b/bertos/hw/hw_ntc.c new file mode 100644 index 00000000..b8c56914 --- /dev/null +++ b/bertos/hw/hw_ntc.c @@ -0,0 +1,46 @@ +/** + * \file + * + * + * \brief NTC hardware-specific definition + * + * \version $Id: hw_ntc.h 1359 2008-05-26 09:42:37Z asterix $ + * \author Lorenzo Berni + * + */ + +#include +#include "hw/ntc_map.h" + +const res_t NTC_RSER[NTC_CNT]; +const res_t NTC_RPAR[NTC_CNT]; +const amp_t NTC_AMP[NTC_CNT]; +const NtcHwInfo* NTC_INFO[NTC_CNT];