drv_rtc.h

来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 34 行

H
34
字号
/**************************************************************************/
/*                                                                        */
/*     Copyright (C) 2006 Oki Electric Industry Co., LTD.                 */
/*                                                                        */
/*     System Name  :  ML675050 series                                    */
/*     Module Name  :  ML675050 rtc driver program                        */
/*     File   Name  :  drv_rtc.h                                          */
/*     Revision     :  01.00                                              */
/*     Date         :  2005/1/6 initial version                           */
/*                                                                        */
/**************************************************************************/

#ifndef DRV_RTC_H
#define DRV_RTC_H


/***********************************/
/*    type definition              */
/***********************************/

#define DRV_RTC_OVR_ERROR       (-101)  /* RTC overrun error */
#define DRV_RTC_PRT_ERROR       (-102)  /* RTC parity error */
#define DRV_RTC_FRM_ERROR       (-103)  /* RTC framing error */
#define DRV_RTC_OVF_ERROR       (-104)  /* RTC overflow error */
#define DRV_RTC_OTR_ERROR       (-199)  /* RTC others error */
/******************************/
/*     Functions define       */
/******************************/
extern  int16_t smpDrv_OpenRtc( ML675050_RtcInitParam *init_param);
extern  int16_t smpDrv_CloseRtc(void);
extern  int16_t smpDrv_IoctlRtc(uint16_t cmd, uint32_t arg);

#endif  /* end of DRV_RTC_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?