SPI RAM interface functions

Topics related to the API, programming discussions & questions, coding tips, bugs, etc. should go here.
User avatar
D3thAdd3r
Posts: 3221
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: SPI RAM interface functions

Post by D3thAdd3r »

Interesting, this could be particularly useful to me on a couple things. I might try and take a look what it would entail to implement the idea.
User avatar
D3thAdd3r
Posts: 3221
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: SPI RAM interface functions

Post by D3thAdd3r »

Could we get a small standard detection routine in here? It seems to me that any game that is going to use SPI ram will first check for it's presence, either to not do feature or not operate at all(presumably with some message to the user). It seems something universally useful, and no particular advantages to doing such a thing in C per each program.
User avatar
Jubatian
Posts: 1561
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Re: SPI RAM interface functions

Post by Jubatian »

D3thAdd3r wrote: Sun Dec 10, 2017 7:37 pm Could we get a small standard detection routine in here? It seems to me that any game that is going to use SPI ram will first check for it's presence, either to not do feature or not operate at all(presumably with some message to the user). It seems something universally useful, and no particular advantages to doing such a thing in C per each program.
I added it, it is in Master. SpiRamInit() now has a return value telling whether the SPI RAM is there.
User avatar
D3thAdd3r
Posts: 3221
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: SPI RAM interface functions

Post by D3thAdd3r »

You rock, thank you
Post Reply