Other Parts Discussed in Thread: 66AK2L06
Tool/software: Linux
Hi
I am using 66AK2L06 Evaluation modüle with arago linux distribution.
We try to determine pulse width -nearly 1us in length-
İs it possible ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
We try to read gpio with "gpio_read()" function (see below)
We call
this
function in the infine loop.
Is it possible to detect 1us pulse ?
int gpio_read(gpio_t *gpio, char *value) { char buf[2]; /* Read fd */ if (read(gpio->fd, buf, 2) < 0) return _gpio_error(gpio, GPIO_ERROR_IO, errno, "Reading GPIO 'value'"); /* Rewind */ if (lseek(gpio->fd, 0, SEEK_SET) < 0) return _gpio_error(gpio, GPIO_ERROR_IO, errno, "Rewinding GPIO 'value'"); if (buf[0] == '0') *value = 0; else if (buf[0] == '1') *value = 1; else return _gpio_error(gpio, GPIO_ERROR_IO, 0, "Unknown GPIO value"); return 0; }