#ifndef _SR_BSP_RTC_H
#define _SR_BSP_RTC_H

//hezhou
#include "luat_rtc.h"


#include "sr_config.h"


typedef enum
{
  SR_RTC0 = 0,  /*!< 内部RTC */

#ifdef SR_USE_RTC_EX  	
  SR_RTCE ,     /*!< 外部RTC */
#endif

}SR_RTC_ID_E;


typedef struct BSP_RTC_INFO 
{
  const char *name;      /*!< RTC名字 */
  void *trdHandle;       /*!< 第三方平台使用的句柄指针*/
  int8_t srId;           /*!< 朝阳使用的ID*/
  
}BSP_RTC_INFO_T;



SR_DEVICE_T *BspRtcOpen(SR_RTC_ID_E rtcId);
int BspRtcClose(SR_DEVICE_T *dev);
int BspRtcGet(SR_DEVICE_T *dev,SR_RTC_TIME_T *time);
int BspRtcSet(SR_DEVICE_T *dev,SR_RTC_TIME_T *time);


#endif


