其他分享
首页 > 其他分享> > 调试代码步骤

调试代码步骤

作者:互联网

DIO_SET_LED_OFF();    /*add by lbj*/

       Dio_Ipw_WriteChannel(ChannelId, Level);

 SchM_Enter_Dio_DIO_EXCLUSIVE_AREA_01();

    if(0UL == reentry_guard_01)

       msr_01 = Dio_schm_read_msr();  /*read MSR (to store interrupts state)*/

    __asm volatile("mfmsr %0" : "=r" (result) :);

    return result;

       if (ISR_ON(msr_01)) /*if MSR[EE] = 0, skip calling Suspend/Resume AllInterrupts*/

    reentry_guard_01++;

    REG_WRITE8(SIUL2_GPDO_ADDR32(ChannelId), Level);

    SchM_Exit_Dio_DIO_EXCLUSIVE_AREA_01();

 

标签:Dio,步骤,代码,DIO,msr,MSR,guard,01,调试
来源: https://www.cnblogs.com/vv06160/p/15125163.html