mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Revert "Revert "examples/timer_gpio: fix initialization of timer notification""
This reverts commit 539b7363d0.
This commit is contained in:
parent
ec1c5f9273
commit
9368b659a7
1 changed files with 1 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ static int timer_gpio_daemon(int argc, char *argv[])
|
|||
notify.event.sigev_notify = SIGEV_SIGNAL;
|
||||
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_GPIO_SIGNO;
|
||||
notify.event.sigev_value.sival_ptr = NULL;
|
||||
notify.oneshot = false;
|
||||
|
||||
ret = ioctl(fd_timer, TCIOC_NOTIFICATION,
|
||||
(unsigned long)((uintptr_t)¬ify));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue