I want to read the BBB ADC inputs using the QNX operating system. As no driver is provided in the QNX BSP, I need to write low-level C code to do this. I figure I need to do the following steps:
1. Put the pins in the right mux mode
2. Turn on the clock to the ADC
3. Set up the 'steps'
4. Start a conversion sequence
5. Wait for the sequence to end
6. Read the sampled values
I have not found any low-level code that does this. It would be greatly appreciated if anybody could provide example register-level code to do this.