examples/tests/analog_comparator/main.c
static void analog_comparator_callback (__attribute__ ((unused)) int arg0,
                                        __attribute__ ((unused)) int arg1,
                                        __attribute__ ((unused)) int arg2,
                                        __attribute__ ((unused)) void* userdata) {
  callback_channel   = arg0;
  *((bool*)userdata) = 1;
}
// Callback for AC interrupts. Channel on which the interrupt is generated is
// passed through here.
Callback for AC interrupts. Channel on which the interrupt is generated is
passed through here.
Callback for AC interrupts . Channel on which the interrupt is generated is passed through here .
static void analog_comparator_callback (__attribute__ ((unused)) int arg0,
                                        __attribute__ ((unused)) int arg1,
                                        __attribute__ ((unused)) int arg2,
                                        __attribute__ ((unused)) void* userdata) {
  callback_channel   = arg0;
  *((bool*)userdata) = 1;
}
static void analog_comparator_callback ( __attribute__ ( ( unused ) ) int arg0 , __attribute__ ( ( unused ) ) int arg1 , __attribute__ ( ( unused ) ) int arg2 , __attribute__ ( ( unused ) ) void * userdata ) { callback_channel = arg0 ; * ( ( bool * ) userdata ) = 1 ; }
Callback for AC interrupts.
Callback for AC interrupts .