Before We Get Started Coding
Before We Get Started Coding
Getting Your Program Started
We cover system initialization details in Chapter 4, but
here are a few items needed for Lab 3:
1. Include required #include files
2. Turn off the Watchdog timer
3. Unlock pins (Wolverine devices)
1. #Include Files
If you’ve programmed in C for very long, you have probably become accustomed to using Include
files. As described in the last chapter, every MSP430 device has a specific .h file created to
define its various registers and symbols. When using the “Register” model of programming, you
would need to include this header file.
To make programming easier, the DriverLib team combined all their header files into a single
“driverlib.h” file; in fact, this header file also pulls in the appropriate .h file for your device.
3 - 16 MSP430 Workshop - Using GPIO with MSP430ware