“我的代码:
can_lld_stop(安培; CAND1);
SPCSetPeripheralClockMode(SPC5_FLEXCAN0_PCTL,SPC5_CAN_FLEXCAN0_STOP_PCTL);
can_lld_stop(安培; CAND2);
SPCSetPeripheralClockMode(SPC5_FLEXCAN1_PCTL,SPC5_CAN_FLEXCAN1_STOP_PCTL);
can_lld_stop(安培; CAND3);
SPCSetPeripheralClockMode(SPC5_FLEXCAN2_PCTL,SPC5_CAN_FLEXCAN2_STOP_PCTL);
pit_lld_stop(安培; PITD);
SPCSetPeripheralClockMode(SPC5_PIT_PCTL,SPC5_PIT_STOP_PCTL);
irqIsrDisable();
ME.DRUN.R =(0UL | SPC5_ME_MC_MVRON | SPC5_ME_MC_DFLAON_NORMAL | SPC5_ME_MC_CFLAON_NORMAL |(1 以下为原文
carannante.procolo
‌My code :
can_lld_stop(&CAND1);
SPCSetPeripheralClockMode(SPC5_FLEXCAN0_PCTL, SPC5_CAN_FLEXCAN0_STOP_PCTL);
can_lld_stop(&CAND2);
SPCSetPeripheralClockMode(SPC5_FLEXCAN1_PCTL, SPC5_CAN_FLEXCAN1_STOP_PCTL);
can_lld_stop(&CAND3);
SPCSetPeripheralClockMode(SPC5_FLEXCAN2_PCTL, SPC5_CAN_FLEXCAN2_STOP_PCTL);
pit_lld_stop(&PITD);
SPCSetPeripheralClockMode(SPC5_PIT_PCTL, SPC5_PIT_STOP_PCTL);
irqIsrDisable();
ME.DRUN.R = (0UL | SPC5_ME_MC_MVRON | SPC5_ME_MC_DFLAON_NORMAL | SPC5_ME_MC_CFLAON_NORMAL | (1<<4) | (0));
ME.RUN[0].R=(0UL | SPC5_ME_MC_MVRON | SPC5_ME_MC_DFLAON_NORMAL | SPC5_ME_MC_CFLAON_NORMAL | (1<<4) | (0));
SPCSetRunMode(SPC5_RUNMODE_DRUN);
(*(AppFunctionType)(JMP_ADDRESS+8))(); // jump to app and should not back
Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level