Hi team, welcome to the repository for our ESD group project. This is where we'll keep all of the code for the stopwatch group project, but I also intend to post solutions to the labs in case you want to check against your own.
First of all, download this repository. If you don't have ssh authentication set up, you can just download it the files as a zip like this:
Then you will just need to import the code into CCS. Make a new CCS project:
And add the files you just downloaded:
Finally, don't forget to turn off optimisation!!
You will notice I've split the code into several files. I think this will make everything more readable when the project grows more complicated. You should find:
stopwatch.c - this is where the main() function lives and the interrupt service routines.
stopwatch.h - this is for #defines, structs, global variable declarations and function prototypes
functions.c - this is where we write all the functions that will be called in the main loop. Maybe we will split this into more files later if it gets huge.