代码搜索结果
找到约 10,000 项符合
Timer 的代码
timer.c
//=============================================================================
// File Name : Timer.c
// Function : S3C2410 Watch-Dog and Timer
// Program : Shin, On Pil (SOP)
// Date : M
timer.h
//=============================================================================
// File Name : Timer.h
// Function : S3C2410 Watch-Dog and Timer Test Head File
// Program : Shin, On Pil (SOP)
/
timer.err
"timer.c", line 274: Warning: C2917W: no side effect in void context: 'unary *'
"timer.c", line 283: Warning: C2917W: no side effect in void context: 'unary *'
"timer.c", line 292: Warni
timer.c
#include "type.h"
#include "board.h"
#include
#include "timer.h"
//Tms320vc5402 have two timer--TIM0:timer0 TIM1:timer1
#define TIM0 0
#define TIM1 1
//define clkmd register initi
timer.h
/******************************************************************/
/* timer.h - v0.00 */
/* Copyright (c) 1997 Texas Instruments Incorporated
timer.asm
;********************TIMER********************
;本程序实现用TMR0实现时钟功能。
;入口参数:无。
;出口参数:时RLT,分SOUH,秒SOU。
;占用资源:W,STATUS,TMR0,PORTD,024H,025H,026H,028H,07FH,17FH,07EH,1重堆栈。
;说明: 1.使用该程序需在中断入口程序中填入如下两条
timer.c
#include
#include "machine.h"
int main()
{
int i;
unsigned long ticks;
printk("\ntimer test code\n");
OIER = 0x0;
OWER = 0x0;
OSMR0 = 0;
OSSR = 0xf;
OIER |= OIER_E0;
OSCR = 0;