This information is pretty widely available, e.g. on Wikipedia [1], no need to go off memory. Flight control is done by an FPGA, the main CPU is a Snapdragon 801 running Linux, and it uses Zigbee to communicate with the rover.
[1] https://en.wikipedia.org/wiki/Ingenuity_(helicopter)#Avionic...