From c0e1b4cdf20c55f2cbbdf3a5889f447974135fd8 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 16 Nov 2020 21:02:48 -0700 Subject: Got the DMA to send a simple message through UART2. --- 02-usart/include/arch/arm/arch.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '02-usart/include/arch/arm/arch.h') diff --git a/02-usart/include/arch/arm/arch.h b/02-usart/include/arch/arm/arch.h index 904cbdb..6c10213 100644 --- a/02-usart/include/arch/arm/arch.h +++ b/02-usart/include/arch/arm/arch.h @@ -7,6 +7,7 @@ #define enable_interrupts() \ asm volatile(" cpsie i ") + #define DMA1_BASE (0x40020000) #define DMA2_BASE (0x40020400) @@ -17,4 +18,10 @@ #define GPIOB_BASE (0x48000400) #define GPIOC_BASE (0x48000800) +#define SRAM1_BASE (0x20000000) +#define SRAM2_BASE (0x2000C000) + +#include +_Static_assert(sizeof(void*) == sizeof(uint32_t), "Pointers must be 32 bits"); + #endif /* ARCH_H_ */ -- cgit