main.c

来自「dsp5509a USB 驱动 pc端程序 下面还有 dsp端程序」· C语言 代码 · 共 41 行

C
41
字号
#ifndef uchar
#define uchar unsigned char
#endif
#ifndef uint
#define uint unsigned int
#endif


#include "global.h"
#include "hal.h"
#include "C5509REG.h"

int *ptr,val=0;

void main()
{
         	          
	uchar rece_buf[120];             //和上位机通讯时的缓冲区
	uchar rece_num; 
	uchar AnsLength = 0;             //接收到上位机的字节数
	uchar *pa,*pb,*pc;
	int i;
	unsigned int testResult = 0xff;
	
	for(i=0;i<64;i++)
		CmdFromCPU[i] = 0;

	System_Init();	
	asm(" NOP");	
	GpioInit();
	while(1)
	{
	rece_num++;
	if(rece_num>16)
		rece_num = 0;
	}	


	
}

⌨️ 快捷键说明

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