Files
Scanning the repository...
Last update 5 years 6 months
by Kate Temkin
Filesfirmwareapollosrcboardsluna | |
---|---|
.. | |
apollo_board.h | |
board.mk | |
debug_spi.c | |
dfu.c | |
fpga.c | |
jtag.c | |
led.c | |
platform_jtag.h | |
selftest.c | |
selftest.h | |
spi.c | |
spi.h | |
tusb_config.h | |
uart.c | |
usb_descriptors.c |
apollo_board.h/** * Apollo board definitions for LUNA hardware. * This file is part of LUNA. */ #ifndef __APOLLO_BOARD_H__ #define __APOLLO_BOARD_H__ #include <sam.h> #include <hal/include/hal_gpio.h> #include <stdbool.h> // Indicate that this board features a configuration flash. #define _BOARD_HAS_CONFIG_FLASH_ /** * GPIO pins for each of the microcontroller LEDs. */ typedef enum { LED_A = PIN_PA18, // Blue LED_B = PIN_PA19, // Pink LED_C = PIN_PA20, // White LED_D = PIN_PA21, // Pink LED_E = PIN_PA22, // Blue LED_COUNT = 5 } led_t; /** * Pin locations for the debug SPI connection. * Used when using bitbang mode for the debug SPI. */ #if (_BOARD_REVISION_MAJOR_ == 0) && (_BOARD_REVISION_MINOR_ == 1) enum { PIN_SCK = PIN_PA00, PIN_SDI = PIN_PA12, PIN_SDO = PIN_PA14, PIN_FPGA_CS = PIN_PA01, PIN_FLASH_CS = PIN_PA04 }; #else enum { PIN_SCK = PIN_PA13, PIN_SDI = PIN_PA12, PIN_SDO = PIN_PA14, PIN_FPGA_CS = PIN_PA15, PIN_FLASH_CS = PIN_PA04 }; #endif /** * GPIO pin numbers for each of the JTAG pins. */ enum { TDO_GPIO = PIN_PA10, TDI_GPIO = PIN_PA08, TCK_GPIO = PIN_PA09, TMS_GPIO = PIN_PA11, }; #endif