examples/timer: fix timer notification asignment

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2022-03-16 12:01:44 +01:00 committed by Xiang Xiao
parent 7d10751037
commit b207387d48
2 changed files with 5 additions and 2 deletions

View File

@ -217,7 +217,8 @@ int main(int argc, FAR char *argv[])
printf("Attach timer handler\n");
notify.pid = getpid();
notify.pid = getpid();
notify.periodic = true;
notify.event.sigev_notify = SIGEV_SIGNAL;
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_SIGNO;

View File

@ -176,7 +176,9 @@ static int timer_gpio_daemon(int argc, char *argv[])
printf("Configure the timer notification.\n");
notify.pid = getpid();
notify.pid = getpid();
notify.periodic = true;
notify.event.sigev_notify = SIGEV_SIGNAL;
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_GPIO_SIGNO;
notify.event.sigev_value.sival_ptr = NULL;