Closed
Description
Describe the bug
If I run this on an rpi 1 or 2, then I see interrupts come in (the printf is invoked). On at least an rpi 3, I see no interrupts.
Steps to reproduce the behaviour
note that this example requires libpigpio-dev:
#include <pigpio.h>
#include <stdio.h>
#include <unistd.h>
void func(int gpio_n, int level, uint32_t tick, void *modemptr)
{
printf("%d %d %d\n", gpio_n, level, tick);
}
int main(int argc, char *argv[])
{
int gpio_n = 2;
gpioInitialise();
gpioSetMode(gpio_n, PI_INPUT);
gpioSetISRFuncEx(gpio_n, EITHER_EDGE, 0, func, NULL);
for(;;)
sleep(1);
return 0;
}
Device (s)
Raspberry Pi 4 Mod. B
System
Raspberry Pi reference 2022-01-28
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f01430c9d8f67a4b9719cc00e74a2079d3834d5d, stage2
Aug 9 2022 13:46:06
Copyright (c) 2012 Broadcom
version 273b410636cf8854ca35af91fd738a3d5f8b39b6 (clean) (release) (start)
5.15.56-v7+
Logs
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels