From 14a651cda0bd8dfb992d2a6a1544300c39492ca3 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 21 Nov 2020 01:25:26 -0700 Subject: Implemented DMA abstraction in the peri/dma.c source file. This abstraction makes it much more intuitive to use the DMA features on the STM32L4 boards. --- 02-usart/include/arch/arm/arch.h | 1 + 02-usart/include/arch/x86_64/arch.h | 2 ++ 2 files changed, 3 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 175c984..569ca77 100644 --- a/02-usart/include/arch/arm/arch.h +++ b/02-usart/include/arch/arm/arch.h @@ -26,6 +26,7 @@ #define SYSTEM_CONFIG_BLOCK_BASE (0xE000E008) #define NVIC_BASE (0xE000E004) +#define RCC_BASE (0x40021000) #include #ifndef DRY_RUN diff --git a/02-usart/include/arch/x86_64/arch.h b/02-usart/include/arch/x86_64/arch.h index a93425d..258214e 100644 --- a/02-usart/include/arch/x86_64/arch.h +++ b/02-usart/include/arch/x86_64/arch.h @@ -6,6 +6,8 @@ #define ARCH_PC #define enable_all_interrupts() do {} while(0) +#define RCC_BASE (load_fake_rcc__()) + #define DMA1_BASE (load_fake_ahb1__() + 0x0) #define DMA2_BASE (load_fake_ahb1__() + 0x400) -- cgit