#ifdef __GRADUATE_DESIGN__
#include "MMI_features.h"
#include "MMI_include.h"
#include "mmi_frm_gprot.h"
#include "mmi_frm_prot.h"
#include "mmi_frm_ucs2_str_dcl.h" /* define the string function pointer */
#include "StatusIconRes.h"
#include "wgui_categories_inputs.h"
#include "IMERes.h"
#include "CommonScreensResDef.h"
#include "AllAppGprot.h"
#include "ProtocolEvents.h"
#include "AsyncEventsGprot.h"
#include "ATHandlerProt.h"
#include "AlarmFrameWorkProt.h"
#include "Service.h"
#include "SATGProts.h"
#include "CPHSProtocolHandlers.h"
#include "EngineerModeGprot.h"
#include "FactoryModeProt.h"
#include "gpioInc.h"
extern const char gpio_14_graduate_design_pin;
extern const char gpio_2_graduate_design_pin;
extern void GPIO_WriteIO(char data, char port);
extern char GPIO_ReadIO(char port);
extern void GPIO_InitIO(char direction, char port);
//#define DS18B20_PIN gpio_2_graduate_design_pin
#define DS18B20_PIN gpio_14_graduate_design_pin
#define DS18B20_DELAY_4US 40
void Init_DS18B20(void);
unsigned char ReadOneChar(void);
void WriteOneChar(unsigned char dat);
void Ds18b20_Read_Temperature(void);
void Delay10Us(kal_uint16 data);
#define DS18B20_PIN_HIGH \
{\
volatile kal_uint32 i;\
GPIO_InitIO(1, DS18B20_PIN); \
GPIO_WriteIO(1, DS18B20_PIN); \
for (i=0; i < DS18B20_DELAY_4US; i++); \
}
#define DS18B20_PIN_LOW \
{\
volatile kal_uint32 i;\
GPIO_InitIO(1, DS18B20_PIN); \
GPIO_WriteIO(0, DS18B20_PIN); \
for (i=0; i < DS18B20_DELAY_4US; i++); \
}
void Delay10Us(kal_uint16 data)
{
volatile kal_uint32 i;
for ( i =0; i < data*10*3000; i++);
}