Dtynin
Dtynin
Failed to Add GPIO Callback on AVR32UC Microcontroller
hey @Sterling I had fixed the issue, I made sure to define and initialize the struct gpio_callback my_cb before using it in gpio_init_callback. I also added some error handling for functions like device_get_binding, gpio_pin_interrupt_configure, and gpio_add_callback. These adjustments helped to correctly set up the GPIO interrupt, so now the callback function triggers as expected when the GPIO pin detects an edge. thanks buddy
5 replies