aboutsummaryrefslogtreecommitdiff
path: root/02-usart/include/arch
diff options
context:
space:
mode:
Diffstat (limited to '02-usart/include/arch')
-rw-r--r--02-usart/include/arch/arm/arch.h3
-rw-r--r--02-usart/include/arch/x86_64/arch.h3
2 files changed, 6 insertions, 0 deletions
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 <stdint.h>
#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