BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Bootstrapping a New Platform: The Null Program

The first bootstrap program confirms that the platform builds to an installable executable. That executable doesn't do anything visible.

main.c

/* Include the generic platform header. This assumes that
* #BSP430_PLATFORM_EXP430FR5739 (or another marker that identifies a
* platform BSP430 supports) has been defined for the preprocessor.
* If not, you may include the platform-specific version,
* e.g. <bsp430/platform/exp430g2.h>. */
void main ()
{
/* First thing you do in main is configure the platform. */
/* And that's all this one does. */
}

bsp430_config.h

/* No configuration needed here, but get platform defaults */

Makefile

PLATFORM ?= exp430fr5739
MODULES=$(MODULES_PLATFORM)
SRC=main.c
include $(BSP430_ROOT)/make/Makefile.common