📄 time.h
字号:
/* * linux/include/asm/arch-s3c44b0/time.h * 2002 tpu <tapu@371.net> */#ifndef __ASM_ARCH_TIME_H__#define __ASM_ARCH_TIME_H__#include <asm/uaccess.h>#include <asm/io.h>#include <asm/hardware.h>#include <asm/arch/timex.h>extern struct irqaction timer_irq;extern unsigned long s3c44b0_gettimeoffset(void);extern unsigned long s3c44b0_get_rtc_time(void);static __inline__ void s3c44b0_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs){ do_leds(); do_set_rtc(); do_timer(regs);}static __inline__ void setup_timer (void){ TCFG0 = 0x001e0000; TCFG1 = 0x00000000; TCNTB5 = 0x00002710; TCON = 0x06000000; TCON = 0x05000000; gettimeoffset = s3c44b0_gettimeoffset; xtime.tv_sec = s3c44b0_get_rtc_time(); timer_irq.handler = s3c44b0_timer_interrupt; setup_arm_irq(IRQ_TIMER, &timer_irq);}#endif /* __ASM_ARCH_TIME_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -