mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Follow up the kernel signal-related change in:
examples/oneshot/oneshot_main.c: examples/alarm/alarm_main.c: examples/ajoystick/ajoy_main.c examples/djoystick/djoy_main.c examples/buttons/buttons_main.c examples/zerocross/zerocross_main.c graphics/traveler/src/trv_input.c graphics/ft80x/
This commit is contained in:
parent
2771205bc3
commit
ff54c47e64
10 changed files with 38 additions and 18 deletions
|
|
@ -209,9 +209,11 @@ int timer_main(int argc, char *argv[])
|
|||
|
||||
printf("Attach timer handler\n");
|
||||
|
||||
notify.arg = NULL;
|
||||
notify.pid = getpid();
|
||||
notify.signo = CONFIG_EXAMPLES_TIMER_SIGNO;
|
||||
|
||||
notify.event.sigev_notify = SIGEV_SIGNAL;
|
||||
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_SIGNO;
|
||||
notify.event.sigev_value.sival_ptr = NULL;
|
||||
|
||||
ret = ioctl(fd, TCIOC_NOTIFICATION, (unsigned long)((uintptr_t)¬ify));
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue