Paparazzi UAS
v5.15_devel-230-gc96ce27
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)) |
Definition at line 54 of file led_hw.h.
Referenced by led_disable().
#define LED_INIT | ( | i | ) | gpio_setup_output(LED_GPIO(i), LED_GPIO_PIN(i)) |
Definition at line 50 of file led_hw.h.
Referenced by bluegiga_init(), init_bat_checker(), init_demo(), init_light(), and led_init().
#define LED_OFF | ( | i | ) | LED_GPIO_OFF(i)(LED_GPIO(i), LED_GPIO_PIN(i)) |
Definition at line 52 of file led_hw.h.
Referenced by baro_init(), bat_checker_periodic(), cam_periodic(), event_i2c_abuse_test(), fbw_datalink_periodic(), gec_dl_init(), gps_init(), init_bat_checker(), init_demo(), init_light(), led_init(), logger_uart_periodic(), main_event(), main_periodic(), opa_controller_init(), opa_controller_periodic(), periodic_light(), radio_control_periodic_task(), send_spektrum_bind(), srf08_receive(), stereocam_droplet_periodic(), stop_demo(), syslink_dl_periodic(), tunnel_event(), and usbActivity().
#define LED_ON | ( | i | ) | LED_GPIO_ON(i)(LED_GPIO(i), LED_GPIO_PIN(i)) |
Definition at line 51 of file led_hw.h.
Referenced by ahrs_aligner_run(), baro_board_calibrate(), baro_periodic(), bat_checker_periodic(), cam_periodic(), event_i2c_abuse_test(), fbw_datalink_event(), gec_dl_event(), gps_mtk_read_message(), gps_skytraq_read_message(), gps_ubx_msg(), gsm_init(), logger_uart_periodic(), main(), main_event(), main_periodic(), opa_controller_periodic(), parse_xsens_msg(), periodic_light(), radio_control_periodic_task(), send_spektrum_bind(), srf08_initiate_ranging(), start_demo(), stereocam_droplet_periodic(), superbitrf_event(), syslink_dl_periodic(), tunnel_event(), and usbActivity().
#define LED_PERIODIC | ( | ) | {} |
Definition at line 55 of file led_hw.h.
Referenced by handle_periodic_tasks_ap(), main_periodic(), and main_periodic_task().
#define LED_TOGGLE | ( | i | ) | gpio_toggle(LED_GPIO(i), LED_GPIO_PIN(i)) |
Definition at line 53 of file led_hw.h.
Referenced by ahrs_aligner_run(), baro_board_calibrate(), baro_event(), baro_periodic(), bat_checker_periodic(), bluegiga_receive(), bmp_baro_event(), dl_parse_msg(), event_i2c_abuse_test(), gps_mtk_read_message(), gps_skytraq_read_message(), gps_ubx_msg(), link_mcu_on_can_msg(), main(), main_event_task(), main_periodic(), main_periodic_task(), parse_ins_msg(), parse_mavpilot_msg(), parse_xsens700_msg(), parse_xsens_msg(), periodic_10Hz_demo(), periodic_1Hz_demo(), SPI1_ISR(), superbitrf_event(), sys_tick_handler(), sys_tick_irq_handler(), syslink_dl_periodic(), thd_startlog(), and TIMER0_ISR().