📄 multidspwelcome.c
字号:
/*
* Copyright (c) 2001-2002, Texas Instruments Incorporated.
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*/
/*
* Sample DSP application used to showcase GEL
* components controlling DSP code
*/
#include <stdio.h>
#define TRUE 1
int counterValue = 0;
#if defined(_TMS320C2XX)
#define WDCR *((volatile int *)0x7029) /* WD Control reg */
#define DISABLE_WD 0x0068
/*******************************************************
Disable_WD()
============
This function disables the f24xx watch dog timer;
*******************************************************/
void Disable_WD(void)
{
WDCR |= DISABLE_WD;
}
#endif
void main()
{
#if defined(_TMS320C2XX)
Disable_WD();
#endif
while (TRUE) {
printf("Welcome to the World of DSP. %d\n", counterValue );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -