I have a Model B Revision 1.0 + ECN0001 that I am making a program in C to read and control a HCTL-2022 Quadrature Decoder using the GPIOs by way of sysfs. It's working great, but now I would like to provide the a clock using one of the GPIOs alt functions, specifically GPIO4 (GPCLK0).
Is it possible to configure the pin in this way using sysfs?
I see that I can use the
SET_GPIO_ALT(g,a) Macro, but I recently moved away from this in favor of sysfs in hopes of making the code a little more portable, but perhaps that was a mistake.