Hi
If you post your exported register settings, it will be easier to help you.
The while(!packetSemaphore) waits for a falling edge on GPIO2 to indicate that the entire packet has been sent and that the radio is ready for the next packet. The code assumes/requires that PKT_SYNC_RXTX signal (0x06) is outputted on GPIO2 for both the transmitter and receiver.