All SPI stuff moved to rp_spi.c
Added speed computation.
Modified program exit behavior.
Added preprocessor to prevent redefinition.
Added reading of irc_index position.
Attemp to solve bug. ADC channels association should be pwm1-ch0 pwm2-ch1 pwm3-ch2 (according to schema). In fact it is pwm1-ch1 pwm2-ch2 pwm3-ch0. Cant find the mistake.
Sending unique measured current value was replaced by current accumulator. Now multiple summarised values are sent alongside with its count.
Current measurment bits transferring via SPI from FPGA to RPi extended from 12 to 24 bits. This is preparation for transferring sum of currents.
Added testing SW in folder test_sw.