I am newbie in embedded Linux stuff. I am doing a task to interface one 24-bit ADC name HX711. Which uses custom protocol. Where it uses two pins. In which One pin used as clock and 2nd one is used as Data out line.
For this purpose I am using GPIO9_12(SCK) and GPIO9_15(Dout) of BeagleBone Black rev C.
I have set the direction of these 2 pins after going under /sys/class/gpio/gpioxx/direction as OUT and IN as per requirements.
But I am not able to get data from HX711. So I debug and Find out that I am taking one time than required. Typically my SCK pin must remain high1-2 mico Seconds but I am taking 5-6 mico Seconds. Which is not desirable. All this Code is in C language.
Now I need Your suggestions that How can I speed up my GPIO pin reading and Writing Time.
I have seen some example where writers trying to Show the GPIO configuration. using mmap(). But no one talking about the GPIO speed.