目前是用给一个core去维护两个硬核 难度应该不大 而且在注释掉其中任何一个硬核的代码后, 另一个硬核都可以正常工作
但是 但是 当两个硬核一起工作的时候,总是有一个收不到中断(两个我都用的accumulator来做的 所以都有中断)
BCP 用的是
eventId = 49;// + CSL_chipReadReg (CSL_CHIP_DNUM);
vectId = 8;
/* Register the ISR handle for this event */
EventCombiner_dispatchPlug (eventId, (EventCombiner_FuncPtr)Bcp_HiPriorityAccumISR, (UArg)NULL, TRUE);
EventCombiner_enableEvent(eventId);
/* Map the event id to hardware interrupt. */
Hwi_eventMap(vectId, eventId);
/* Enable interrupt. */
Hwi_enableInterrupt(vectId);
FFTC用的是
else if (instNum == CSL_FFTC_B)
{
*pAccChannelNum = 12;
*pAccRxQNum = 716;
else if (fftcInstNum == CSL_FFTC_B)
{
eventId = 51;
}
/* Register the FFTC driver's high priority ISR handle for this event */
EventCombiner_dispatchPlug (eventId, (EventCombiner_FuncPtr)Fftc_rxHiPriorityRxISR, (UArg)hRxObj, TRUE);
EventCombiner_enableEvent(eventId);
Int32 vectId;
vectId = 9;
/* Map the event id to hardware interrupt. */
Hwi_eventMap(vectId, eventId);
/* Enable interrupt. */
Hwi_enableInterrupt(vectId);
现在问题不知道处在了哪里,可能是我基本功太差,所以请求指导!
谢谢大家