From f26920ae9b889408076bac886ac9d6c4ab3005b3 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Wed, 11 Jan 2012 08:46:16 +0100 Subject: [PATCH] Define the BV macro if not already defined --- cpu/msp430/msp430def.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cpu/msp430/msp430def.h b/cpu/msp430/msp430def.h index 7f95473c7..05e9b0bbc 100644 --- a/cpu/msp430/msp430def.h +++ b/cpu/msp430/msp430def.h @@ -25,8 +25,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * @(#)$Id: msp430def.h,v 1.5 2010/03/19 14:50:07 joxe Exp $ */ #ifndef MSP430DEF_H @@ -40,7 +38,6 @@ #define eint() __enable_interrupt() #define __MSP430__ 1 #define CC_CONF_INLINE -#define BV(x) (1 << x) #else /* __IAR_SYSTEMS_ICC__ */ @@ -59,6 +56,10 @@ #endif /* __IAR_SYSTEMS_ICC__ */ +#ifndef BV +#define BV(x) (1 << x) +#endif + #ifdef HAVE_STDINT_H #include #else