⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subfunc.h

📁 串口数据与文件传输程序
💻 H
字号:
#ifndef	_SUBFUNC_H_
#define _SUBFUNC_H_

#ifdef __cplusplus
extern "C" 
{
#endif

#include <stdlib.h>
#include <string.h>
#include "def.h"
#include "option.h"
#include "2440addr.h"
#include "2440slib.h"
#include "2440lib.h"
#include "IRQServer.h"

void Isr_Init(void);

void GetFpgaData(U32 StartAddr, U16 dLength, U16 *buffer);
void SendFpgaData(U32 StartAddr, U16 dLength, U16 *buffer);


char *hex2char(int val);

#define	Uart0SendByte(data) {\
			rUTXH0 = data;	 \
			while(!(rUTRSTAT0 & 0x02));\
		}

#define	Uart1SendByte(data) {\
			rUTXH1 = data;	 \
			while(!(rUTRSTAT1 & 0x02));\
		}

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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