![]() |
A Library of MSP430 C Code
Collection of peripheral drivers, component drivers, utilities, and other commonly used embedded code.
|
Welcome to my collection of MSP430 C modules!
Over the years I have developed a variety of drivers and services for TI's MSP430 series microcontrollers. Since these modules have been developed on an "as I need them" basis, the collection is far from complete. Instead of letting them sit around unused on my hard-disk, I have decided to release them to be used freely by the public.
Below is a list of some of the programming philosophies I try to stick to when developing these modules:
Module code and makefiles are primarily designed to use the msp430-elf GCC compiler. However in most cases, the TI compiler will work too.
To help get you started, a few example projects have been included in the download and can be found in the "examples" folder.
These projects should be compiled using the included makefiles. This can be done though a command line or from within Code Composer Studio by creating a custom makefile project (not a managed-make)
In order for the makefiles to work, the following environment variables must be set:
PATH:
Add the msp430-elf compiler's bin
directory.MSP430_HEADER_PATH:
Set to point to the MSP430 header folder (contains device-specific .h and .ld files)Examples:
All code in this library is broken up into separate modules. Each module is made up of a collection of related functions, variables, and definitions.
Modules in this library are typically made up of several files that follow a consistent naming convention. Some modules may require additional source files while others my only use a subset of the ones listed. Given a generic module called MODULE, its files may be organized as follows:
Copyright © 2010-2015 by Alexander Mykyta.
Permission to use, copy, modify, and distribute this software and its documentation is hereby granted. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. See the License for more details.