|
Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include <stdio.h>#include <caml/mlvalues.h>#include <caml/memory.h>#include <caml/callback.h>
Include dependency graph for led_hw.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | LED_INIT(i) { } |
| #define | LED_ON(i) { if (leds_closure) callback2(*leds_closure, Val_int(i), Val_int(1)); } |
| #define | LED_OFF(i) { if (leds_closure) callback2(*leds_closure, Val_int(i), Val_int(0)); } |
| #define | LED_TOGGLE(i) { if (leds_closure) callback2(*leds_closure, Val_int(i), Val_int(2)); } |
| #define | LED_PERIODIC() {} |
Variables | |
| value * | leds_closure |
| #define LED_OFF | ( | i | ) | { if (leds_closure) callback2(*leds_closure, Val_int(i), Val_int(0)); } |
| #define LED_ON | ( | i | ) | { if (leds_closure) callback2(*leds_closure, Val_int(i), Val_int(1)); } |
| #define LED_TOGGLE | ( | i | ) | { if (leds_closure) callback2(*leds_closure, Val_int(i), Val_int(2)); } |
| value* leds_closure |
Definition at line 3 of file led_hw.c.
Referenced by register_leds_cb().