CCS 实验报告
一、实验题目
CCS 入门试验
二、实验目的:
1 熟悉 CCS 集成开发环境,掌握工程的生成方法;
2 熟悉 SEED-DEC6437 实验环境;
3 掌握 CCS 集成开发环境的调试方法。
三、实验代码(sine.c)
// ****************************************************************
// Description: This application uses Probe Points to obtain input
// (a sine wave). It then takes this signal, and applies a gain
// factor to it.
// Filename: Sine.c
// ****************************************************************
#include <stdio.h>
#include "sine.h"
// gain control variable
int gain = INITIALGAIN;
// declare and initalize a IO buffer
BufferContents currentBuffer;
// Define some functions
static void processing(); // process the input and generate output
static void dataIO(); // dummy function to be used with
ProbePoint
int sum(int a,int b);
float sumf(float a,float b);
int mul(int j,int k);
float mulf(float j,float k);
int e;
float f;
int c;
float d;
void main()
{
c=sum(12,12);
d=sumf(12.0,12.0);
e=mul(12,12);
f=mulf(12.0,12.0);