#include "excalibur.h" #define ADDRTC 0xd0 typedef unsigned char uchar; np_pio *clk1337=na_clk1337; np_pio *dio1337=na_d…
ds1337 源代码
DS1337是一种低功耗、全部采用BCD码的串行实时时钟芯片。
#include "excalibur.h" #include "t6963.h" #include "ds1337.h" int main (void) { initial1337(); initial6963(); c…
/* * linux/drivers/i2c/chips/ds1307.c * * Copyright (C) 2005 James Chapman * * based on linux/drivers/acorn/char/pcf8583.c…
/* * linux/drivers/i2c/chips/ds1337.c * * Copyright (C) 2005 James Chapman * * based on linux/drivers/acorn/char/pcf8583.c…
/* * linux/drivers/i2c/chips/ds1337.c * * Copyright (C) 2005 James Chapman * * based on linux/drivers/acorn/char/pcf8583.c…
#define CONFIG_EP93XX_ds1337 1
/* * (C) Copyright 2001, 2002 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Keith Outwater, keith_outwater@mvis.com…
//************************************************************************ // …
//************************************************************************ // …
/* * linux/drivers/i2c/chips/ds1337.c * * Copyright (C) 2005 James Chapman * * based on linux/drivers/acron/char/pcf8583.c…