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

📄 rtc8025.h

📁 i2c接口的实时时钟芯片rx8025的linux驱动程序
💻 H
字号:
/* *  linux/drivers/i2c/chips/rtc8025.h * *  Copyright (C) 2007 arming * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Driver for system3's EPSON RTC 8025 chip */#include <linux/miscdevice.h>/* rtc8025 misc dev *//*#define RTC8025_MINOR	MISC_DYNAMIC_MINOR*/ #define RTC8025_NAME	"rtc8025" /* registers */                       #define RX8025_REG_SEC		0x00        #define RX8025_REG_MIN		0x01        #define RX8025_REG_HOUR		0x02        #define RX8025_REG_WDAY		0x03        #define RX8025_REG_MDAY		0x04        #define RX8025_REG_MONTH	0x05        #define RX8025_REG_YEAR		0x06        #define RX8025_REG_DIGOFF	0x07        #define RX8025_REG_ALWMIN	0x08        #define RX8025_REG_ALWHOUR	0x09      #define RX8025_REG_ALWWDAY	0x0a      #define RX8025_REG_ALDMIN	0x0b        #define RX8025_REG_ALDHOUR	0x0c      /* 0x0e is reserved */                #define RX8025_REG_CTRL1	0x0e        #define RX8025_REG_CTRL2	0x0f                                              #define RX8025_BIT_CTRL1_1224	(1 << 5)#define RX8025_BIT_CTRL1_DALE	(1 << 6)#define RX8025_BIT_CTRL1_WALE	(1 << 7)                                      #define RX8025_BIT_CTRL2_PON	(1 << 4)#define RX8025_BIT_CTRL2_VDET	(1 << 6)#define I2C_DRIVERID_RTC8025 0xf000

⌨️ 快捷键说明

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