44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
|
/*******************************************************************************
|
|||
|
* @Copyright (c) :(C)2016, Qingdao ieslab Co., Ltd
|
|||
|
* @FileName :GP22Gas_sys.h
|
|||
|
* @Author :team
|
|||
|
* @Version :V1.0
|
|||
|
* @Date :2016<EFBFBD><EFBFBD>4<EFBFBD><EFBFBD>23<EFBFBD><EFBFBD> 10:59:44
|
|||
|
* @Description :the function of the entity of GP22Gas_sys.h
|
|||
|
*******************************************************************************/
|
|||
|
#ifndef __UWater_sys_H
|
|||
|
#define __UWater_sys_H
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C" {
|
|||
|
#endif
|
|||
|
|
|||
|
/* Includes ------------------------------------------------------------------*/
|
|||
|
#include "type.h"
|
|||
|
#include "sys_config.h"
|
|||
|
/* Exported types ------------------------------------------------------------*/
|
|||
|
/* Exported constants --------------------------------------------------------*/
|
|||
|
/* Exported macro ------------------------------------------------------------*/
|
|||
|
#if (HARDWARE_VERSION==0x14)//<2F><><EFBFBD>DZ<EFBFBD>
|
|||
|
#define LED_PORT GpioPortC
|
|||
|
#define LED_PIN GpioPin13
|
|||
|
#elif (HARDWARE_VERSION==0x18)//Բ<>DZ<EFBFBD>
|
|||
|
#define LED_PORT GpioPortF
|
|||
|
#define LED_PIN GpioPin7
|
|||
|
#endif
|
|||
|
|
|||
|
void Clk_Init(void);
|
|||
|
void UnusedGpioInit(void);
|
|||
|
void Meter_ResetCountAdd(u8 reason);
|
|||
|
u16 Meter_GetResetCount(void);
|
|||
|
void Meter_BootVersionInit(void);
|
|||
|
u16 Meter_GetBootVersion(void);//<2F><>ȡBOOT<4F>汾<EFBFBD><E6B1BE>
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#endif /* __UWater_sys_H */
|
|||
|
|
|||
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|||
|
|