⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fattime.c

📁 基于AVR的一个嵌入式的FAT32的代码
💻 C
字号:
//*****************************************************************************
//
// Title		: FAT time driver
// Authors		: Project A3670
// File Name	: 'fattime.c'
// Date			: April 26, 2004
// Version		: 1.00
// Target MCU	: Atmel AVR Series
// Editor Tabs	: 4
//
// NOTE: The authors in no way will be responsible for damages that you coul'd be using this code.
//       Use this code at your own risk.
//
//       This code is distributed under the GNU Public License
//       which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************

#include "fattime.h"


////////////////////
#ifndef ATA_READ_ONLY
//*****************************************************************************
// Function: fatGetCurTime
// Parameters: The current Date and Time Address Struct
// Returns: none
//
// Description: Returns the current Time and Date
//
//              You will have to change this routine to read your local time,
//              and return it in this format.
//
//              Date and Time Format
//              Day:     valid range 1-31
//	            Month:   1= January, valid range 1-12
//              Year:    valid range 0-65535
//              Hour:    valid range 0-23
//              Minutes: valid range 0-59
//              Seconds: valid range 0-59
//*****************************************************************************
void fatGetCurTime(TTime *t)
{
	t->day     = 26;
	t->month   = 04;
	t->year    = 2004;
	t->hour    = 17;
	t->minutes = 30;
	t->seconds = 00;
}
#endif
////////////////////

⌨️ 快捷键说明

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