Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
led_hw.h File Reference
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include <BOARD_CONFIG>
#include "std.h"
+ Include dependency graph for led_hw.h:

Go to the source code of this file.

Macros

#define _LED_GPIO_CLK(i)   i
 
#define _LED_GPIO(i)   i
 
#define _LED_GPIO_PIN(i)   i
 
#define _LED_GPIO_ON(i)   i
 
#define _LED_GPIO_OFF(i)   i
 
#define _LED_AFIO_REMAP(i)   i
 
#define LED_GPIO_CLK(i)   _LED_GPIO_CLK(LED_ ## i ## _GPIO_CLK)
 
#define LED_GPIO(i)   _LED_GPIO(LED_ ## i ## _GPIO)
 
#define LED_GPIO_PIN(i)   _LED_GPIO_PIN(LED_ ## i ## _GPIO_PIN)
 
#define LED_GPIO_ON(i)   _LED_GPIO_ON(LED_ ## i ## _GPIO_ON)
 
#define LED_GPIO_OFF(i)   _LED_GPIO_OFF(LED_ ## i ## _GPIO_OFF)
 
#define LED_AFIO_REMAP(i)   _LED_AFIO_REMAP(LED_ ## i ## _AFIO_REMAP)
 
#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_PERIODIC()   {}
 

Macro Definition Documentation

#define _LED_AFIO_REMAP (   i)    i

Definition at line 44 of file led_hw.h.

#define _LED_GPIO (   i)    i

Definition at line 40 of file led_hw.h.

#define _LED_GPIO_CLK (   i)    i

Definition at line 39 of file led_hw.h.

#define _LED_GPIO_OFF (   i)    i

Definition at line 43 of file led_hw.h.

#define _LED_GPIO_ON (   i)    i

Definition at line 42 of file led_hw.h.

#define _LED_GPIO_PIN (   i)    i

Definition at line 41 of file led_hw.h.

#define LED_AFIO_REMAP (   i)    _LED_AFIO_REMAP(LED_ ## i ## _AFIO_REMAP)

Definition at line 51 of file led_hw.h.

#define LED_GPIO (   i)    _LED_GPIO(LED_ ## i ## _GPIO)

Definition at line 47 of file led_hw.h.

#define LED_GPIO_CLK (   i)    _LED_GPIO_CLK(LED_ ## i ## _GPIO_CLK)

Definition at line 46 of file led_hw.h.

#define LED_GPIO_OFF (   i)    _LED_GPIO_OFF(LED_ ## i ## _GPIO_OFF)

Definition at line 50 of file led_hw.h.

#define LED_GPIO_ON (   i)    _LED_GPIO_ON(LED_ ## i ## _GPIO_ON)

Definition at line 49 of file led_hw.h.

#define LED_GPIO_PIN (   i)    _LED_GPIO_PIN(LED_ ## i ## _GPIO_PIN)

Definition at line 48 of file led_hw.h.

#define LED_OFF (   i)    LED_GPIO_OFF(i)(LED_GPIO(i), LED_GPIO_PIN(i))

Definition at line 77 of file led_hw.h.

#define LED_ON (   i)    LED_GPIO_ON(i)(LED_GPIO(i), LED_GPIO_PIN(i))

Definition at line 76 of file led_hw.h.

#define LED_PERIODIC ( )    {}

Definition at line 80 of file led_hw.h.

#define LED_TOGGLE (   i)    gpio_toggle(LED_GPIO(i), LED_GPIO_PIN(i))

Definition at line 78 of file led_hw.h.