Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Ads

Discussion Groups

Discussion Groups | MSP430 | Converting IAR to Code Composer problem

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

Converting IAR to Code Composer problem - twincircuits - Sep 10 11:43:26 2008

I'm trying to convert the 2480 Sensor software over from IAR
workbench to Code Composer. This has been a real learning experiance
for me in that it almost fully converted without issue, and I think I
have the problem area tracked down to these two lines.

--Original lines found in hal_board.h
#define HAL_ENABLE_INTERRUPTS() asm("eint")
#define HAL_DISABLE_INTERRUPTS() st( asm("dint"); asm("nop"); )
Code composer is OK with the "eint" line but it throws a fit on
the "dint" and "nop" line and will not link the program. I have
tried to change the lines to the code you see below. It does not
throw an error with these lines in place, but it also does not work.

#define HAL_ENABLE_INTERRUPTS() __enable_interrupt()

#define HAL_DISABLE_INTERRUPTS() st( __disable_interrupt();
__no_operation(); )
Does anyone have a suggestion of the asm equivilant that code
composer will be happy with?

Thanks

Joe J.

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )