Define the BV macro if not already defined

ico
Niclas Finne 2012-01-11 08:46:16 +01:00
parent 1c6c4ba2f1
commit f26920ae9b
1 changed files with 4 additions and 3 deletions

View File

@ -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 <stdint.h>
#else