Coldfire (MCF5235) Interrupt Problem

Cudmore, Alan P. (GSFC-5820) alan.p.cudmore at nasa.gov
Fri May 11 17:29:08 UTC 2012


In the macro below you use "_level" but in the rtems_interrupt_enable call you use "level" without the underscore.

Could that be a problem?

Alan

On May 11, 2012, at 11:55 AM, Ivica Eftimovski wrote:

#define TPUInterruptSetHandler(_level,_vector,_old_handler)  \
     do {                                                     \
           rtems_interrupt_disable(_level);                     \
           MCF5235_INTC0_IMRL &= ~(MCF5235_INTC0_IMRL_INT4 |    \
                     MCF5235_INTC0_IMRL_MASKALL);                 \
           handle_status = rtems_interrupt_catch(TPUInterruptHandler, \
                     TPU_INT_VECTOR, &old_handler); \
           rtems_interrupt_enable(level);                       \
     } while(0)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120511/5281e772/attachment-0001.html>


More information about the users mailing list