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/TMDSCNCD28M36: ive seen Initlpcdriver_C28() function

Part Number: TMDSCNCD28M36

Tool/software: Code Composer Studio

there's some codes like downside
====================================================

void    InitIpcDriver_C28()
{
// Step 3. Clear all interrupts and initialize PIE vector table:
// Disable CPU interrupts
DINT;

// Interrupts that are used in this example are re-mapped to
// ISR functions found within this file.
EALLOW; // This is needed to write to EALLOW protected registers
PieVectTable.MTOCIPC_INT3 = &MtoCIPC3IntHandler;
PieVectTable.MTOCIPC_INT1 = &MtoCIPC1IntHandler;
// PieVectTable.MTOCIPC_INT2 = &MtoCIPC2IntHandler;
// PieVectTable.MTOCIPC_INT4 = &MtoCIPC4IntHandler;

EDIS; // This is needed to disable write to EALLOW protected registers

// Step 4. Initialize the Device Peripherals:
// IPCCInitialize (&g_sIpcController1, IPC_INT1, IPC_INT1);
// IPCCInitialize (&g_sIpcController2, IPC_INT2, IPC_INT2);

// Step 5. User specific code, enable interrupts:

// Enable CPU INT1 which is connected to MTOCIPC INT1-4:
IER |= M_INT11;

// Enable MTOCIPC INTn in the PIE: Group 11 interrupts
PieCtrlRegs.PIEIER11.bit.INTx3 = 1; // MTOCIPC INT3
PieCtrlRegs.PIEIER11.bit.INTx1 = 1; // MTOCIPC INT1
// PieCtrlRegs.PIEIER11.bit.INTx2 = 1; // MTOCIPC INT2
// PieCtrlRegs.PIEIER11.bit.INTx4 = 1; // MTOCIPC INT4


// Enable global Interrupts and higher priority real-time debug events:
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM

// Spin here until M3 has written variable addresses to pulMsgRam
while (CtoMIpcRegs.MTOCIPCSTS.bit.IPC17 != 1)
{
}
}
====================================================
so we can find like DINT which detect disable interrupts and blabal yea..
but where i can see the library which contains explains about these words?
  • Your post has been assigned to an expert. On a different note, if you insert a code snippet in your post, always paste it using the “Syntax Highlighter” option. That makes the code easier to read.

  • SungJin Kim said:
    so we can find like DINT which detect disable interrupts and blabal yea..
    but where i can see the library which contains explains about these words?

    Perform a search of the project source code and you will find the definition in the _Device.h file.

    #define  EINT            __asm(" clrc INTM")
    #define  DINT            __asm(" setc INTM")
    #define  ERTM            __asm(" clrc DBGM")
    #define  DRTM            __asm(" setc DBGM")
    #define  EALLOW          __asm(" EALLOW")
    #define  EDIS            __asm(" EDIS")
    #define  ESTOP0          __asm(" ESTOP0")

    These are inline assembly statements for C28x instructions.  The C28x instructions are documented in http://www.ti.com/lit/spru430

    I hope this helped.  If my response answered your question, please press the green "verified answer" button. 

    Regards

    Lori

  • Hi,

    I haven’t heard from you for a few days, so I’m assuming you were able to resolve your issue.

    If this is the case, please press the "verified answer" button to close the thread. 

    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information. If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

    Regards,
    Lori