Maker Pro
Maker Pro

help with multiple files

L

Luke Smith

Jan 1, 1970
0
hi, im writing a project with ccsc. I want to split my code up into
a number of .c files. however i keep getting the error that #DEVICE
is required at the beginning of each file.

MAIN.C
#include <16f84A.h>
#include <STDLIB.H>
#include <functions.h>
#include <setup.h>

FUNCTIONS.C
FUNCTIONS.H

SETUP.C
SETUP.H

what do i put at the beginning of the functions.c/.h file and
setup.c/.h files?


thanks
luke
 
Top