libtock/gpio_async.c
static void gpio_async_upcall(__attribute__ ((unused)) int callback_type,
                              __attribute__ ((unused)) int value,
                              __attribute__ ((unused)) int unused,
                              void* ud) {
  struct gpio_async_data* myresult = (struct gpio_async_data*) ud;
  myresult->callback_type = callback_type;
  myresult->value         = value;
  myresult->fired         = true;
}
// Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
static void gpio_async_upcall(__attribute__ ((unused)) int callback_type,
                              __attribute__ ((unused)) int value,
                              __attribute__ ((unused)) int unused,
                              void* ud) {
  struct gpio_async_data* myresult = (struct gpio_async_data*) ud;
  myresult->callback_type = callback_type;
  myresult->value         = value;
  myresult->fired         = true;
}
static void gpio_async_upcall ( __attribute__ ( ( unused ) ) int callback_type , __attribute__ ( ( unused ) ) int value , __attribute__ ( ( unused ) ) int unused , void * ud ) { struct gpio_async_data * myresult = ( struct gpio_async_data * ) ud ; myresult -> callback_type = callback_type ; myresult -> value = value ; myresult -> fired = true ; }
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads