/* * ======== main.c ======== * This file contains all the functions for Lab2 except * SINE_init() and SINE_blockFill(). */ /* * ======== Include files ======== */ #include "sine.h" /* * ======== Declarations ======== */ #define BUFFSIZE 32 /* * ======== Prototypes ======== */ /* * ======== Global Variables ======== */ short gBuf[BUFFSIZE]; SINE_Obj sineObj; /* * ======== main ======== */ void main() { SINE_init(&sineObj, 256, 8 * 1024); SINE_blockFill(&sineObj, gBuf, BUFFSIZE); // Fill the buffer with sine data while (1) { // Loop Forever } }