time.h

来自「上传linux-jx2410的源代码」· C头文件 代码 · 共 46 行

H
46
字号
/* *  linux/include/asm-arm/arch-ebsa110/time.h * *  Copyright (C) 1996,1997,1998 Russell King. * * 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. * * No real time clock on the evalulation board! * * Changelog: *  10-Oct-1996	RMK	Created *  04-Dec-1997	RMK	Updated for new arch/arm/kernel/time.c *  07-Aug-1998	RMK	Updated for arch/arm/kernel/leds.c *  28-Dec-1998	APH	Made leds code optional */#include <asm/leds.h>extern int  ebsa110_reset_timer(void);extern void ebsa110_setup_timer(void);static void timer_interrupt(int irq, void *dev_id, struct pt_regs *regs){	if (ebsa110_reset_timer()) {		do_leds();		do_timer(regs);		do_profile(regs);	}}/* * Set up timer interrupt. */static inline void setup_timer(void){	ebsa110_setup_timer();	timer_irq.handler = timer_interrupt;	setup_arm_irq(IRQ_EBSA110_TIMER0, &timer_irq);}

⌨️ 快捷键说明

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