From c439c5c30317f0210ca62fd32b6d841037f544c9 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 23 Apr 2009 13:23:40 +0000 Subject: [PATCH] Fix the ntc problems. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2650 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/ntc.h | 1 + bertos/hw/hw_ntc.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 bertos/hw/hw_ntc.c 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]; -- 2.25.1