NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <platform.h>
#include "common/utils.h"
#include "gpio.h"
#include "light_led.h"
Macros | |
#define | LED0_TOGGLE do {} while(0) |
#define | LED0_OFF do {} while(0) |
#define | LED0_ON do {} while(0) |
#define | LED1_TOGGLE do {} while(0) |
#define | LED1_OFF do {} while(0) |
#define | LED1_ON do {} while(0) |
#define | LED2_TOGGLE do {} while(0) |
#define | LED2_OFF do {} while(0) |
#define | LED2_ON do {} while(0) |
Functions | |
void | led_toggle (int id) |
void | led_on (int id) |
void | led_off (int id) |
void | led_init (bool alternative_led) |
Variables | |
struct { | |
GPIO_TypeDef * gpio | |
uint16_t pin | |
} | led_config [3] |
#define LED0_OFF do {} while(0) |
#define LED0_ON do {} while(0) |
#define LED0_TOGGLE do {} while(0) |
#define LED1_OFF do {} while(0) |
#define LED1_ON do {} while(0) |
#define LED1_TOGGLE do {} while(0) |
#define LED2_OFF do {} while(0) |
#define LED2_ON do {} while(0) |
#define LED2_TOGGLE do {} while(0) |
void led_init | ( | bool | alternative_led | ) |
void led_toggle | ( | int | id | ) |
GPIO_TypeDef* gpio |
struct { ... } led_config[3] |
uint16_t pin |