Chapter 6: C Functions and Program Structures
onstrator files. If you do, review. In
e changes to Demonstrator.h and
rogrammer’s Notepad open a new
;
r.h.
mm version
ibrate the oscillator:
// say hello
sendString("\rPC_Comm.c ready to communicate.\r");
specifically
trouble understanding anything in the Dem
future projects we will only need to mak
Demonstrator.c.
Demonstrator
Create a new PC Comm directory and in P
C/C++ file and write:
// Demonstrator.h CommDemo version
void initializer(void);
void parseInput(char *)
void Comm1(char *);
void Comm2(char *);
void Comm3(char *);
void Comm4(char *);
void responder(char *, char );
Save this file as Demonstrato
In Programmer’s Notepad open a new C/C++ file and write:
// Demonstrator.c PC Co
#include "PC_Comm.h"
void initializer()
{
// Cal
OSCCAL_calibration();
// Initialize the USART
USARTinit();
// identify yourself
sendString("\rYou are talking to the PC_Comm demo.\r");
}
void parseInput(char s[])