Define the BV macro if not already defined
This commit is contained in:
parent
1c6c4ba2f1
commit
f26920ae9b
|
@ -25,8 +25,6 @@
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* 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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* @(#)$Id: msp430def.h,v 1.5 2010/03/19 14:50:07 joxe Exp $
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MSP430DEF_H
|
#ifndef MSP430DEF_H
|
||||||
|
@ -40,7 +38,6 @@
|
||||||
#define eint() __enable_interrupt()
|
#define eint() __enable_interrupt()
|
||||||
#define __MSP430__ 1
|
#define __MSP430__ 1
|
||||||
#define CC_CONF_INLINE
|
#define CC_CONF_INLINE
|
||||||
#define BV(x) (1 << x)
|
|
||||||
|
|
||||||
#else /* __IAR_SYSTEMS_ICC__ */
|
#else /* __IAR_SYSTEMS_ICC__ */
|
||||||
|
|
||||||
|
@ -59,6 +56,10 @@
|
||||||
|
|
||||||
#endif /* __IAR_SYSTEMS_ICC__ */
|
#endif /* __IAR_SYSTEMS_ICC__ */
|
||||||
|
|
||||||
|
#ifndef BV
|
||||||
|
#define BV(x) (1 << x)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue