📄 hpi.h.svn-base
字号:
/****************************************************************************
文件名称:hpi.h
版本号: 1.0
日期: 2005-12-26
说明: hpi.c的头文件,包含与5402DSP HPI通信相关的函数的声明。
调用列表:--
修改历史:--
****************************************************************************/
#ifndef __HPI_H__
#define __HPI_H__
#define INIT_HPIC 0x08 //the initial value of the HPIC, clear the HINT through setting 1 to HINT bit
#define INT_HPIC 0x04
#define INT_CLEAR_HPIC 0x08
#define rHPICh (*(volatile unsigned char *)0x02000000) //the high byte of the HPIC register on 5402
#define rHPICl (*(volatile unsigned char *)0x02000001) //the low byte of the HPIC register on 5402
#define rCHPIDh (*(volatile unsigned char *)0x02000002) //the high byte of the HPID register on 5402 in auto change mode
#define rCHPIDl (*(volatile unsigned char *)0x02000003) //the low byte of the HPID register on 5402 in auto change mode
#define rHPIAh (*(volatile unsigned char *)0x02000004) //the high byte of the HPIA register on 5402
#define rHPIAl (*(volatile unsigned char *)0x02000005) //the low byte of the HPIC register on 5402
#define rHPIDh (*(volatile unsigned char *)0x02000006) //the high byte of the HPID register on 5402 in no change mode
#define rHPIDl (*(volatile unsigned char *)0x02000007) //the low byte of the HPID register on 5402 in no change mode
void HInit(void); //Initialize the HPI port
void HReadS(unsigned short address, unsigned short* date); //read a 16-bit word from 5402
void HWriteS(unsigned short address, unsigned short date); //write a 16-bit word to 5402
void HReadC(unsigned short address, unsigned short* date, int len); //read a len length seriate 16-bit words from 5402
void HWriteC(unsigned short address,unsigned short* date, int len); //write a len length seriate 16-bit words to 5402
void HBootLoad(void); //bootload 5402 through HPI port
void Hint(void); //interrupt the 5402 sdy060629
void HintClear(void); //clear interrupt from 5402 sdy060629
#endif //__HPI_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -