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

📄 time.h

📁 是关于linux2.5.1的完全源码
💻 H
字号:
/* * linux/include/asm-arm/arch-tbox/time.h * * Copyright (c) 1997, 1999 Phil Blundell. * Copyright (c) 2000 FutureTV Labs Ltd * * Tbox has no real-time clock -- we get millisecond ticks to update * our soft copy. *//* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */#include <asm/io.h>#include <asm/hardware.h>#define update_rtc()static void timer_interrupt (int irq, void *dev_id, struct pt_regs *regs){	/* Clear irq */	__raw_writel(1, FPGA1CONT + 0xc); 	__raw_writel(0, FPGA1CONT + 0xc);	do_timer(regs);}void __init time_init(void){	timer_irq.handler = timer_interrupt;	setup_irq(IRQ_TIMER, &timer_irq);}

⌨️ 快捷键说明

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