📄 utility.h
字号:
/*********************** SGS-THOMSON MICROELECTRONICS ************************
FILENAME : UTILITY.H
VERSION : V1.0
DATE : JAN 1999
AUTHOR(s) : ASHISH RUDOLA / DEEPAK DOSHI
PROCESSOR : ST92195
DESCRIPTION : This module contains constant definitions and function
prototypes.
MODIFICATIONS:
-
*****************************************************************************/
#ifndef _utilityhead_
#define _utilityhead_
#include "tv_glob.h"
unsigned int get_value(unsigned int, unsigned int);
unsigned int set_value(unsigned int, unsigned int);
unsigned int roll_inc(unsigned int,unsigned int);
unsigned int roll_source(unsigned int,unsigned int);
unsigned int roll_dec(unsigned int,unsigned int);
void ms_delay(void);
#define microsecond_delay(delay)\
asm (".ifc eq %Q1-1
swap %0
swap %0
swap %0
.endc
.ifc ge %Q1-1
ld %0,#(%Q1-1)
call us_delay
.endc
.endc" : "=R"(microsecond_counter) : "i"(delay));
#define millisecond_delay(delay)\
millisecond_counter = delay;\
ms_delay();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -