This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LC4357: two ISR for two sci rx interrupt

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Dear Sir, I am wondering how to write two separate ISR for RX interrupt of SCI4 and SCI2. There is only one scinotification() in HL_notifcation.c.

Thank you sir

deepak

  • Hello,
    SCI2 and SCI4 interrupt handlers are in HL_sci.c . In the SCI2 and SCI4 interrupt handlers the reasons for interrupt generating are determined and then sciNotification ( from HL_notification.c) is called. You could write your own notification functions for SCI2 and SCI4 that is called from corresponding interrupt handler. One for SCI2 and another one for SCI4. You could take an action in the handler as well with no calling any notification. Since interrupt handler generated by HALCoGen passes to sciNotification the SCI base address which is calling the notification, you can take a reaction according to which SCI interface is generating the interrupt in one notification function as well.

    Best regards,
    Miro