Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Led macro implementation for ChibiOS arch. More...
Go to the source code of this file.
Macros | |
#define | _LED_EVAL(i) i |
#define | LED_GPIO(i) _LED_EVAL(LED_ ## i ## _GPIO) |
#define | LED_GPIO_PIN(i) _LED_EVAL(LED_ ## i ## _GPIO_PIN) |
#define | LED_GPIO_ON(i) _LED_EVAL(LED_ ## i ## _GPIO_ON) |
#define | LED_GPIO_OFF(i) _LED_EVAL(LED_ ## i ## _GPIO_OFF) |
#define | LED_INIT(i) gpio_setup_output(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define | LED_ON(i) LED_GPIO_ON(i)(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define | LED_OFF(i) LED_GPIO_OFF(i)(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define | LED_TOGGLE(i) gpio_toggle(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define | LED_DISABLE(i) gpio_setup_input(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define | LED_PERIODIC() {} |
Led macro implementation for ChibiOS arch.
Definition in file led_hw.h.
#define LED_DISABLE | ( | i | ) | gpio_setup_input(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define LED_INIT | ( | i | ) | gpio_setup_output(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define LED_OFF | ( | i | ) | LED_GPIO_OFF(i)(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define LED_ON | ( | i | ) | LED_GPIO_ON(i)(LED_GPIO(i), LED_GPIO_PIN(i)) |
#define LED_TOGGLE | ( | i | ) | gpio_toggle(LED_GPIO(i), LED_GPIO_PIN(i)) |