Hello! I trying to use the bcm2835_gpio_eds_multi() function to detect an low-level change on five inputs in a high-speed loop. Yes. I have init the ports with fsel(), pud() and len() functions earlier.
This eds_multi() just returning zero. Do I miss something? The bcm-header talked about some "Device tree"...I have activated it (I don't know what that doing...).'
The code is
#define INT_PINS (1<<portA | 1<<portB | 1<<portC | 1<<portD | 1<<portE)
while(1)
{
if( ret = bcm2835_gpio_eds_multi(INT_PINS)
{
printf("%08x", ret);
bcm2835_gpio_set_eds_multi( INT_PINS );
}
}
This "ret" should return something if I take the pin LOW.
I see one thing. Should the #define include a cast to a unsigned long int? I think so...
I would appreciate a hint...
(If it seems ok, I think it is the hardware...it's new)
Rgds
Swedland




