Files
-
hardware / rev0 / debug_control_connections.sch
-
hardware / rev0 / fpga_configuration.sch
-
hardware / rev0 / host_side.sch
-
hardware / rev0 / luna_rev0.kicad_pcb
-
hardware / rev0 / luna_rev0.sch
-
hardware / rev0 / power_supplies.sch
-
hardware / rev0 / ram_section.sch
-
hardware / rev0 / right_side_indicators.sch
-
hardware / rev0 / sideband_side.sch
-
hardware / rev0 / target_side.sch
Last update 5 years 4 months
by Kate Temkin
Filesfirmwareapollosrc | |
---|---|
.. | |
boards | |
console.c | |
console.h | |
debug_spi.c | |
debug_spi.h | |
fpga.h | |
jtag.c | |
jtag.h | |
jtag_tap.c | |
led.h | |
main.c | |
uart.h | |
vendor.c |
led.h/* * LED control abstraciton code. * This file is part of LUNA. */ #ifndef __LED_H__ #define __LED_H__ #include <apollo_board.h> /** * Different blink patterns with different semantic meanings. */ typedef enum { BLINK_IDLE = 500, BLINK_JTAG_CONNECTED = 150, BLINK_JTAG_UPLOADING = 50, BLINK_FLASH_CONNECTED = 130, } blink_pattern_t; /** * Sets the active LED blink pattern. */ void led_set_blink_pattern(blink_pattern_t pattern); /** * Sets up each of the LEDs for use. */ void led_init(void); /** * Turns the provided LED on. */ void led_on(led_t led); /** * Turns the provided LED off. */ void led_off(led_t led); /** * Turns off all of the device's LEDs. */ void leds_off(void); /** * Toggles the provided LED. */ void led_toggle(led_t led); /** * Sets whether a given led is on. */ void led_set(led_t led, bool on); /** * Task that handles blinking the heartbeat LED. */ void heartbeat_task(void); #endif