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

📄 m56800_main.c

📁 Freescale 56800系列DSP的参考C语言源代码
💻 C
字号:
/*-----------------------------------------------------------------------*

	Sample Code for DSP56800 - Jan 2002
	(c) Metrowerks, A Motorola Company.
	
	Source code to illustrate writing ISR and utilility 
	libary called by ISR in C. 
	
	Interrupt vectors are defined in 56805_vector.asm
	
	Main program setup a timer0 compare interrupt that 
	brinks LED, pushing IRQA/IRQB will select the group
	of LED to brink. IRQA corresponds to (LED 1) and 
	IRQB corresponds to (LED 3).
	
	To boot in standalone mode from flash:
	1. Disconnect parallel cable
	2. Connect JG7 for mode 0, boot from flash
	3. Connect JG5 to disable parallel command converter interface

 *-----------------------------------------------------------------------*/
#include <stdlib.h>
#include "led.h"
#include "isr.h"

int main(void)
{
	initLED ();
	initIsr (); 
	
	while (1)
	{
		/* press IRQA/IRQB to decide LED group */
		asm(nop);
		asm(nop);
		asm(nop);
		asm(nop);
		asm(nop);
		asm(nop);
	}
	
	exit(0);  /* Call Exit to flush all IO buffers */
}

⌨️ 快捷键说明

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