3 Replies Latest reply on Nov 12, 2015 1:06 PM by Intel_Peter

    ISR on PWM Class

    dunex_1

      I want to implement an ISR on a PWM pin using a PWM class and I tried something like this

       

      mraa_gpio_edge_t edge = MRAA_GPIO_EDGE_BOTH;

      mraa_gpio_isr(x, edge, &interrupt, NULL);


      I get this error " Cannot convert 'mraa::pwm*' to mraa_gpio_context{aka_gpio*}' for argument '1' to 'mraa_result_t mraa_gpio_isr(mraa_gpio_context, mraa_gpio_edge_t, void(*)(void*), void*)"


      Any help or pointing me to the right direction will be greatly appreciated.


      Thank you in Advance.