I am pleased to report that my code for SPI is working fine and I have tested it.
Here is the video that Michael sir shot while testing the code:https://plus.google.com/+MichaelWelling79/posts/aYer2fZ17TZ
I am working on the I2C firmware, which I expect to complete in a day or two. Progress has been slow because I fell sick with fever on Sunday.
I am confident of completing the driver before the 15 of this month.