Thanks for the functions, Hugo. I'm sure there's many that I have yet to find, and I think these ones will provide to be useful.
Actually the problem I had was that I was incorrectly calling certain UART special registers, and in the case where an interrupt happened between those calls , it would crash the app. I used the attribute((critical)) modifier to make the compiler handle that work though. Best regards, --------------------------------------- Sergio Campamá sergiocamp...@gmail.com On Nov 29, 2011, at 9:23 PM, Hugo A. G. V. Rosa wrote: > Sergio, > > If I correctly understand your code is a interrupt function. > I am not sure, but I think MSP430 save and restore SR register when > executing a interruption. > If you need to change a flag and keep it changed, you should try these > functions: > > __bic_SR_register_on_exit(FLAGS); > > __bis_SR_register_on_exit(FLAGS); > > I use these to set LPM at the end of interruption. > > -- > "Aqui deveria ter uma tagline." > Hugo A. G. V. Rosa > Engenheiro / quase Matemático / Curioso > http://friendfeed.com/hugoxrosa > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users