(XCore) CompletePacket

Files CCore/inc/CompletePacket.h CCore/src/CompletePacket.cpp

The function CompletePacket_int is XCore only. This function is required to complete a packet in the interrupt context. You cannot call complete() directly there, so the special high priority task — Complete Task , is running in the system to do this job. The function simply puts the packet into its input queue and gives the semaphore. This function can be called only in the interrupt context.


void CompletePacket_int(PacketHeader *packet);

template <class P>
void CompletePacket_int(P packet) { CompletePacket_int(GetPacketHeader(packet)); }