Accommodate MSPgcc compiler


did I do this correctly? (at least no compile errors)


bsp_msp430_defs.h
=================

//at line # 101
/* ------------------ Unrecognized Compiler ------------------ */
#elif defined CC__MSPGCC // CC__MSPGCC is defined in makefile,  changed this 
from #else and added the line below
#ifdef __MSP430_6137__
#include<cc430x613x.h>
#else
#include<msp430.h>
#endif

//at line # 117
#if (defined BSP_COMPILER_IAR) || (defined BSP_COMPILER_CODE_COMPOSER) || 
(defined CC__MSPGCC) //added defined CC__MSPGCC


//near line # 138
//wrapped the following in #ifndef __MSP430__ because
//mspgcc defines these
#ifndef __MSP430__
typedef   signed char     int8_t;
typedef   signed short    int16_t;
typedef   signed long     int32_t;

typedef   unsigned char   uint8_t;
typedef   unsigned short  uint16_t;
typedef   unsigned long   uint32_t;
#endif



Reply via email to