SD Driver for the P2 (from Kye's P1 code)
Cluso99
Posts: 18,069
I have just started to run through Kye's pasm and spin code for the P1. Previously I split his code into the Spin and Pasm files, together with a couple of small mods to aid in using this as the basis for my PropOS.
I have posted the PASM2 which I have just started to work through. If anyone would like to volunteer to convert the SPI read and write routines (they use the PHSA/FRQA of the counter - I am just not sure of how to set this up in the P2) it would really help. Note I have just disabled the hub loading and rebooting code for now.
Any help to convert other pasm code blocks would also be appreciated.
Next is the SPIN code (referred to as the FAT2 file). I would like to ask for suggestions - do we use SPIN2 or do we rewrite in hub (hubexec) pasm ? While C might be a good/better choice, isn't the GCC for the P2 some time away???
_SD_PASM2.spin
_SD_FAT2.spin
I have posted the PASM2 which I have just started to work through. If anyone would like to volunteer to convert the SPI read and write routines (they use the PHSA/FRQA of the counter - I am just not sure of how to set this up in the P2) it would really help. Note I have just disabled the hub loading and rebooting code for now.
Any help to convert other pasm code blocks would also be appreciated.
Next is the SPIN code (referred to as the FAT2 file). I would like to ask for suggestions - do we use SPIN2 or do we rewrite in hub (hubexec) pasm ? While C might be a good/better choice, isn't the GCC for the P2 some time away???
_SD_PASM2.spin
_SD_FAT2.spin