First draft on spi code done. Added test folder with some libs for general
testing. Nothing form test folder should not be used in user code.
Startet work on basic nrf24 lib
Removed ce pin from spi lib. Added pin config to nrf24 lib.
removed unnecessary volatile keywords
Got spi to work. Started on actual nrf code.
Reading and writing register from nrf works. Added funcion to print all
register.
Flush tx and rx commands added.
Modified code so that it is able to handele multiple devices on one spi
port.
Basic transmitting and reciving works
Removed need for buffres from send and recive functions.
Made nrf library to work as state machine. Now it works more on interrups
and it is less blocking. Down side is that there is some blocking code in
interrupt now. Need to figure out how to remove it.
Removed delay from spiInterrupt fuction.
Added easier way to set one byte registers on nrf24.
Decreased buffer size in lib and added overflow limits.
Fixed interrut codes so it work more reliable. Also moved checking if spi
is free to spi driver, where it should be. No more flush before transmitting.
Added const declarations to funcion parameters. Cleaned a bit interrrupt
code.
Added state cheking to nrf functions.
Cleaned up test code.
Removed some unnecessary code from nrf lib.
Fixed bug that caused reciver to froze after reciving two packets.
Fixed bug where return value of status register was wrong after
transmitting.