From a922e19f41e25a4b9c77e95c6b5d736609dfb9f5 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 21 Nov 2020 23:09:31 -0700 Subject: Add the spi headers that define the SPI structure. --- 02-usart/include/arch/arm/arch.h | 3 +++ 02-usart/include/arch/x86_64/arch.h | 3 +++ 2 files changed, 6 insertions(+) (limited to '02-usart/include/arch') diff --git a/02-usart/include/arch/arm/arch.h b/02-usart/include/arch/arm/arch.h index f140c97..42b33bb 100644 --- a/02-usart/include/arch/arm/arch.h +++ b/02-usart/include/arch/arm/arch.h @@ -28,6 +28,9 @@ #define NVIC_BASE (0xE000E004) #define RCC_BASE (0x40021000) +#define SPI1_BASE (0x40013000) +#define SPI3_BASE (0x40003C00) + #include #ifndef DRY_RUN _Static_assert(sizeof(void*) == sizeof(uint32_t), "Pointers must be 32 bits"); diff --git a/02-usart/include/arch/x86_64/arch.h b/02-usart/include/arch/x86_64/arch.h index e87559b..5e1217c 100644 --- a/02-usart/include/arch/x86_64/arch.h +++ b/02-usart/include/arch/x86_64/arch.h @@ -24,6 +24,9 @@ #define SYSTEM_CONFIG_BLOCK_BASE (load_fake_scb__()) #define NVIC_BASE (load_fake_nvic__()) +#define SPI1_BASE (load_fake_spi1__()) +#define SPI3_BASE (load_fake_spi3__()) + // Pretend there's a data segement at the start of SRAM1 for more accurate // testing. #define GHOST_DATA_SEGMENT_SIZE 1234 -- cgit