@ -61,7 +61,8 @@ enum class ExpansionBoard : unsigned {
enumclassSpiMemorySize:unsigned{
enumclassSpiMemorySize:unsigned{
NO_MEMORY=0,///< default, indicates no SPI memory installed
NO_MEMORY=0,///< default, indicates no SPI memory installed
MEM_1M,///< indicates 1Mbit memory is installed
MEM_1M,///< indicates 1Mbit memory is installed
MEM_4M///< indicates 4Mbit memory is installed
MEM_4M,///< indicates 4Mbit memory is installed
MEM_64M///< indicates 64Mbit memory is installed
};
};
constexprunsignedNUM_MEM_SLOTS=2;///< The TGA Pro has two SPI ports for memory
constexprunsignedNUM_MEM_SLOTS=2;///< The TGA Pro has two SPI ports for memory
@ -81,6 +82,12 @@ struct SpiMemoryDefinition {
size_tDIE_BOUNDARY;
size_tDIE_BOUNDARY;
};
};
/// Settings for 64Mbit SPI MEM
constexprSpiMemoryDefinitionSPI_MEMORY_64M={
.MEM_SIZE_BYTES=8388608,
.DIE_BOUNDARY=0
};
/// Settings for 4Mbit SPI MEM
/// Settings for 4Mbit SPI MEM
constexprSpiMemoryDefinitionSPI_MEMORY_4M={
constexprSpiMemoryDefinitionSPI_MEMORY_4M={
.MEM_SIZE_BYTES=524288,
.MEM_SIZE_BYTES=524288,
@ -202,9 +209,11 @@ extern BAHardware BAHardwareConfig; ///< external definition of global configura
#define TGA_PRO_EXPAND_REV3(x) BALibrary::BAHardwareConfig.setExpansionBoard(ExpansionBoard::REV_3) ///< Macro for specifying REV 2 of the Expansion Board
#define TGA_PRO_EXPAND_REV3(x) BALibrary::BAHardwareConfig.setExpansionBoard(ExpansionBoard::REV_3) ///< Macro for specifying REV 2 of the Expansion Board
#define SPI_MEM0_1M(x) BALibrary::BAHardwareConfig.set(MEM0, SPI_MEMORY_1M) ///< Macro for specifying MEM0 is 1Mbit
#define SPI_MEM0_1M(x) BALibrary::BAHardwareConfig.set(MEM0, SPI_MEMORY_1M) ///< Macro for specifying MEM0 is 1Mbit
#define SPI_MEM0_4M(x) BALibrary::BAHardwareConfig.set(MEM0, SPI_MEMORY_4M) ///< Macro for specifying MEM1 is 4Mbit
#define SPI_MEM0_4M(x) BALibrary::BAHardwareConfig.set(MEM0, SPI_MEMORY_4M) ///< Macro for specifying MEM0 is 4Mbit
#define SPI_MEM1_1M(x) BALibrary::BAHardwareConfig.set(MEM1, SPI_MEMORY_1M) ///< Macro for specifying MEM0 is 1Mbit
#define SPI_MEM0_64M(x) BALibrary::BAHardwareConfig.set(MEM0, SPI_MEMORY_64M) ///< Macro for specifying MEM0 is 64Mbit
#define SPI_MEM1_4M(x) BALibrary::BAHardwareConfig.set(MEM1, SPI_MEMORY_4M) ///< Macro for specifying MEM1 is 1Mbit
#define SPI_MEM1_1M(x) BALibrary::BAHardwareConfig.set(MEM1, SPI_MEMORY_1M) ///< Macro for specifying MEM1 is 1Mbit
#define SPI_MEM1_4M(x) BALibrary::BAHardwareConfig.set(MEM1, SPI_MEMORY_4M) ///< Macro for specifying MEM1 is 4Mbit
#define SPI_MEM1_64M(x) BALibrary::BAHardwareConfig.set(MEM1, SPI_MEMORY_64M) ///< Macro for specifying MEM1 is 64Mbit
externuint8_tUSR_LED_ID;///< Teensy IO number for the user LED.
externuint8_tUSR_LED_ID;///< Teensy IO number for the user LED.