I'm using mbolivar's example project (https://github.com/mbolivar/example-libmaple-project) as a base for my own project for the Maple Mini.
However, I only wish to use libmaple. I don't want to include anything Wirish related. I can't use C++, only C.
So after digging around I copied some of the init() code from Wirish, and I came up with this: https://gist.github.com/cesarandreu/a8573b55aee8304ea4f3 (initialize.c) and https://gist.github.com/cesarandreu/6e5b5d77db45562b27e0 (initialize.h).
But I'm not really sure of what everything does. And I'm not sure if I'm initializing everything as I should. If this were for a personal project, I'd simply use the Wirish init(), but I'm doing this for a college project, and my professor set some restrictions.
Has anyone created an init() function for the maple mini only using libmaple without Wirish as a dependency? If so, would you consider sharing it? Or creating one all together? Or maybe fixing anything that might need fixing in what I linked?
I should also note I lack much prior experience with C, so I'd definitely be open to feedback on how to improve.