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:
- Put the pins in the right mux mode
- Turn on the clock to the ADC
- Set up the ‘steps’
- Start a conversion sequence
- Wait for the sequence to end
- 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.
Thanks in advance!