亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sysrtc.c

?? This file contains board-specific information for the Motorola LoPEC in support of the lopec BSP. S
?? C
字號:
/* sysRtc.c - Interface routines for real-time clock and alarm clock support *//* Copyright 2002 Wind River Systems, Inc. *//* Copyright 2001-2002 Motorola, Inc.  All Rights Reserved *//*modification history--------------------01a,26feb01,cak  Initial Development*//*DESCRIPTIONThis code provides the real-time clock and alarm clock interfaces.The routines defined in this file are intended as user-callable routines.The routines themselves call device-specific routines as defined by thefollowing in the board header file:.IP "RTC_SET(x)"Sets the RTC date and time..IP "RTC_SHOW()"Displays the current RTC time in a user-readable form on the user's display. .IP "RTC_GET(x)"Gets the current RTC date and time..IP "RTC_DATE_TIME_HOOK(x)"Hook to connect the RTC_DATE_GET routine to the dosFsLib to provide date/time values for file timestamps..IP "ALARM_SET(x,y)"Set an alarm..IP "ALARM_GET(x,y)"Gets the current alarm clock settings..IP "ALARM_SHOW()"Displays the current alarm clock settings in a user-readable form on the user's display..IP "ALARM_CANCEL()"Cancel an alarm..LPINCLUDED FILES: m48t37.h, dosFsLib.h*//* included files */#include "m48t37.h"#include "dosFsLib.h"/* forward declarations */STATUS sysAlarmSet (UCHAR method, ALARM_DATE_TIME * alarm_time);STATUS sysAlarmGet (UCHAR * method, ALARM_DATE_TIME * alarm_time);STATUS sysAlarmCancel (void);STATUS sysAlarmShow (void);void   sysAlarmIntr (void);STATUS sysRtcSet (RTC_DATE_TIME * rtc_time);STATUS sysRtcShow (void);STATUS sysRtcGet (RTC_DATE_TIME * rtc_time);void   sysRtcDateTimeHook (DOS_DATE_TIME * pDateTime);/******************************************************************************** * sysAlarmSet - This routine sets an alarm clock.** The alarm can be programmed to go off once a month at a predetermined day,* hour, minute, and second, to go off once a day at a predetermined hour, * minute, and second, to go off once an hour at a predetermined minute, and* second, to go off once a minute at a predetermined second, or to go off once* a second.** method can have the following values:* * .CS** ALARM_EVERY_MONTH  = once a month* ALARM_EVERY_DAY    = once a day* ALARM_EVERY_HOUR   = once an hour* ALARM_EVERY_MINUTE = once a minute* ALARM_EVERY_SECOND = once a second** .CE** The alarm values for second, minute, hour, and day_of_month must be* passed to the function in an ALARM_DATE_TIME structure.  The hour must be* specified using a 24-hour clock.** Valid parameters:** .CS* *  day of month = 01-31*          hour = 00-23*        minute = 00-59*        second = 00-59** .CE** For example:*  If you wanted to set an alarm to repeat once a month, on the 3rd day, at *  2:45 PM, you would create an ALARM_DATE_TIME structure with the following*  values:** .CS**	ALARM_DATE_TIME * a_time;*	a_time->day_of_month = 3;*  	a_time->hour = 14;*	a_time->minute = 45;*	a_time->second = 0; ** .CE** You would then pass in a value of ALARM_EVERY_MONTH for the method, and * the a_time structure you created, to the function.*  * RETURNS: OK, or ERROR if the settings are invalid.*/STATUS sysAlarmSet    (    UCHAR method, 		 /* method = ALARM_EVERY_XXXX */    ALARM_DATE_TIME * alarm_time /* alarm parameters */     )    {    if (ALARM_SET(method, alarm_time) == ERROR)       {       return (ERROR);       }    return (OK);    }/********************************************************************************* sysAlarmCancel - This routine disables the alarm clock.** A call to this routine will disable the alarm clock.** RETURNS: OK, or ERROR if alarm cannot be canceled.*/STATUS sysAlarmCancel (void)     {     if (ALARM_CANCEL() == ERROR)        {        return (ERROR);        }     return (OK);      }/********************************************************************************* sysAlarmIntr - Interrupt handler for the alarm clock.** When the alarm clock expires, an interrupt is generated. This is an example * interrupt handler routine.  This routine prints a "@" every time the alarm* clock interrupt is fired.** To define your own alarm clock interrupt handler, simply edit this routine.** RETURNS: void.*/void sysAlarmIntr (void)      {     logMsg("@",0,0,0,0,0,0);     return;     }/********************************************************************************* sysAlarmGet - Get the current alarm clock parameters.** This routine gets the current alarm clock parameters.  It populates an* ALARM_DATE_TIME structure with the current settings.** RETURNS: OK, or ERROR if unable to get the current settings.*/STATUS sysAlarmGet      (     UCHAR * method,		   /* method = ALARM_EVERY_XXXX */     ALARM_DATE_TIME * alarm_time  /* current alarm parameters */     )     {     if (ALARM_GET(method, alarm_time) == ERROR)        {        return (ERROR);        }     return (OK);     }/********************************************************************************* sysAlarmShow - Display current alarm clock settings on the user's display.** This routine will display the current alarm clock settings on the user's* display in a user-readable fashion.** RETURNS: OK, or ERROR if unable to get or display the current settings.*/STATUS sysAlarmShow (void)     {     if (ALARM_SHOW() == ERROR)        {        return (ERROR);        }     return (OK);     } /********************************************************************************* sysRtcSet - Sets the real-time clock date and time.** This routine sets the real-time clock date and time as per the user's* specification.** The routine expects as input, an RTC_DATE_TIME structure configured with* valid date and time values.** Valid parameters:** .CS**        century = 00-99*           year = 00-99*          month = 01-12*   day of month = 01-31*    day of week = 01-07*           hour = 00-23*         minute = 00-59*         second = 00-59** .CE** For example, to set the date and time to January 1, 2001 at 4:40 PM, you* would populate the structure with the following values:** .CS** 	RTC_DATE_TIME *rtc_time;*	rtc_time->century = 20;*	rtc_time->year = 01;*	rtc_time->month = 1;*	rtc_time->day_of_month = 1;*	rtc_time->day_of_week = 2;*	rtc_time->hour = 16;*	rtc_time->minute = 40;*	rtc_time->second = 0;** .CE** RETURNS: OK, or ERROR if the date and time values were invalid.*/STATUS sysRtcSet     (     RTC_DATE_TIME * rtc_time	/* Real-time clock parameters */    )    {    if (RTC_SET(rtc_time) == ERROR)        {        return (ERROR);        }    return (OK);    }/********************************************************************************* sysRtcShow - Display current RTC time and date on the user's display.** This routine displays the current RTC time and date on the user's display* in a user-readable fashion.**  For example:** .CS* *	Time: 18:34:12  Date: 2/20/2001** .CE** RETURNS: OK, or ERROR if unable to get or display the current RTC time* and date.*/STATUS sysRtcShow (void)      {     if (RTC_SHOW() == ERROR)        {        return (ERROR);        }     return (OK);     }/********************************************************************************* sysRtcGet - Populate RTC_DATE_TIME structure with current RTC date and time.** This routine expects an RTC_DATE_TIME structure as input, which it will * populate with the RTC's current date and time.** RETURNS: OK, or ERROR if unable to get the current RTC date and time.*/STATUS sysRtcGet     (     RTC_DATE_TIME * rtc_time	/* Current real-time clock parameters */     )     {     if (RTC_GET(rtc_time) == ERROR)        {        return (ERROR);        }     return (OK);     }/********************************************************************************* sysRtcDateTimeHook - Hook real-time clock to the dosFsLib.** This routine expects a DOS_DATE_TIME structure as input, which it will * populate with the current date and time.  It is then used by the standard* VxWorks dosFsLib as a way to update the date/time values used for file* timestamps.** RETURNS: void.*/void sysRtcDateTimeHook     (     DOS_DATE_TIME * pDateTime	/* Current date and time */     )     {     RTC_DATE_TIME_HOOK(pDateTime);     }       

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av一区二区三区在线观看| 亚洲自拍偷拍九九九| 大尺度一区二区| 不卡的av网站| 日本一区二区高清| 美女网站视频久久| 欧美乱妇20p| 日韩免费观看高清完整版在线观看| 欧美三级电影在线看| 1024精品合集| 欧洲国内综合视频| 日韩精品一二三| 欧美哺乳videos| 国产成人免费视频网站高清观看视频 | 欧美日韩一区二区三区视频| 亚洲无人区一区| 日韩精品一区二区三区中文精品| 亚洲男人的天堂在线观看| av电影在线不卡| 亚洲制服欧美中文字幕中文字幕| 欧美丰满美乳xxx高潮www| 福利一区在线观看| 日本va欧美va精品| 亚洲在线视频一区| 国产精品久久久久一区二区三区 | 色噜噜久久综合| 色综合中文字幕国产| 99久久久国产精品免费蜜臀| 精品久久国产字幕高潮| 99国产精品国产精品毛片| 亚洲欧洲日韩综合一区二区| 日本韩国精品在线| 裸体健美xxxx欧美裸体表演| 91猫先生在线| 成人中文字幕在线| 韩日精品视频一区| 日本成人在线看| 国产日韩亚洲欧美综合| 久久久久亚洲综合| 久久久久久久综合日本| 欧美videossexotv100| 日韩亚洲欧美高清| 91国产成人在线| 色综合久久88色综合天天| 亚洲综合久久av| 亚洲精品亚洲人成人网在线播放| 亚洲女与黑人做爰| 亚洲裸体在线观看| 亚洲三级在线免费观看| 一区二区三区欧美日| 亚洲天堂网中文字| 日本欧美加勒比视频| 成人免费毛片片v| 亚洲欧美电影院| 亚洲视频在线观看一区| 伊人婷婷欧美激情| 亚洲午夜久久久久久久久电影院| 亚洲一区二区三区四区五区黄 | 综合分类小说区另类春色亚洲小说欧美| 久久亚洲综合av| 国产精品网站在线播放| 成人免费一区二区三区视频| 一区二区三区免费| 日韩精品1区2区3区| 久久99久久99| 不卡视频一二三| 欧美视频日韩视频| 欧美大黄免费观看| 国产精品久久久久久久蜜臀| 一区二区三区四区不卡视频| 日韩电影免费在线看| 国产精品白丝av| 色综合久久综合网欧美综合网| 欧美日韩一本到| 免费在线观看不卡| 国产在线精品一区在线观看麻豆| 国产尤物一区二区| 国产精品一区在线观看乱码 | 日韩精品中文字幕在线不卡尤物| 99re66热这里只有精品3直播| 国产一区二区美女| 欧美电视剧免费观看| 欧美日韩精品福利| 精品va天堂亚洲国产| 91在线视频18| 久久不见久久见免费视频7| 成人免费毛片aaaaa**| 欧美日韩一区二区电影| 国产目拍亚洲精品99久久精品| 尤物av一区二区| 精品一区二区三区的国产在线播放 | 色综合久久久网| 日韩欧美色综合| 久久精品视频免费| 国产欧美一区二区精品仙草咪 | 日韩av午夜在线观看| 国产成人av自拍| 欧美一三区三区四区免费在线看| 国产精品人人做人人爽人人添| 视频一区中文字幕| 99久久99久久久精品齐齐| 精品少妇一区二区三区在线视频 | 欧美bbbbb| 91成人免费网站| 国产精品免费视频网站| 蜜臀av一区二区在线观看| 色婷婷久久久亚洲一区二区三区 | 91福利在线播放| 国产视频亚洲色图| 激情亚洲综合在线| 欧美日韩第一区日日骚| 日韩美女视频一区| 国产精品99久久久| 精品福利二区三区| 亚洲成a人片在线不卡一二三区| 成人性生交大片免费看中文| 久久午夜免费电影| 久久69国产一区二区蜜臀| 欧美日韩一区二区三区视频 | 国产成人精品综合在线观看| 91麻豆精品国产91| 亚洲成av人片在线| 色屁屁一区二区| 亚洲素人一区二区| 97精品电影院| 国产精品伦理在线| 高清成人免费视频| 精品99一区二区三区| 免费在线观看成人| 欧美一区二区久久久| 天天免费综合色| 欧美高清视频www夜色资源网| 亚洲欧洲在线观看av| 92国产精品观看| 亚洲免费视频成人| 91免费国产视频网站| 亚洲乱码日产精品bd| 91蝌蚪国产九色| 亚洲男人天堂一区| 国产精品成人在线观看| 色婷婷亚洲精品| 亚洲一区二区三区视频在线播放| 7777女厕盗摄久久久| 国产精品一区二区三区99| 中文字幕第一区综合| 91精品国产91热久久久做人人| 久久99国产精品久久| 亚洲欧美偷拍卡通变态| 日韩网站在线看片你懂的| 久久99国产精品麻豆| 一区二区三区不卡在线观看| 日韩一级片在线播放| 成人网男人的天堂| 美国毛片一区二区三区| 亚洲精品成人在线| 亚洲精品在线电影| 69堂成人精品免费视频| 成人高清在线视频| 91在线观看视频| 韩国女主播一区二区三区| 91在线观看下载| 欧美日韩一区二区三区高清| 色欧美88888久久久久久影院| 久久精品久久精品| 五月天视频一区| 青青草国产成人av片免费| 亚洲宅男天堂在线观看无病毒| 久久精品国产99久久6| 91精品国产全国免费观看| 美女视频黄久久| 国产99久久久国产精品潘金网站| 国产精品伦一区| 欧美电影在哪看比较好| 国产一区三区三区| 亚洲精品午夜久久久| 日韩一区二区三区观看| 成人国产精品免费观看动漫| 亚洲chinese男男1069| 久久久久国产精品免费免费搜索 | 亚洲在线成人精品| 亚洲黄色片在线观看| 五月婷婷激情综合| 蜜桃av一区二区在线观看| 免费在线看成人av| 国产毛片一区二区| 色老头久久综合| 91精品国产黑色紧身裤美女| 欧美成人艳星乳罩| 中文字幕亚洲不卡| 午夜精品国产更新| 色欧美片视频在线观看在线视频| 国产成人av电影| 欧美性一二三区| 久久一留热品黄| 亚洲国产一区二区视频| 亚洲国产一二三| yourporn久久国产精品| 欧美午夜一区二区三区| 久久久久国产精品厨房| 一区二区三区四区在线|