welcometodsp.c
来自「基于DSP2000的例程」· C语言 代码 · 共 42 行
C
42 行
/*
* 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
* automation
*/
#include <stdio.h>
#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
printf("Welcome to the World of DSP");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?