diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-16 21:02:48 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-16 21:02:48 -0700 |
commit | c0e1b4cdf20c55f2cbbdf3a5889f447974135fd8 (patch) | |
tree | 003c27f4551f02de304da28cc60314a4516c40ed /02-usart/include/arch/arm/arch.h | |
parent | cd115ba47253ce8d2680178248116d251abacb23 (diff) | |
download | stm32l4-c0e1b4cdf20c55f2cbbdf3a5889f447974135fd8.tar.gz stm32l4-c0e1b4cdf20c55f2cbbdf3a5889f447974135fd8.tar.bz2 stm32l4-c0e1b4cdf20c55f2cbbdf3a5889f447974135fd8.zip |
Got the DMA to send a simple message through UART2.
Diffstat (limited to '02-usart/include/arch/arm/arch.h')
-rw-r--r-- | 02-usart/include/arch/arm/arch.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdint.h> +_Static_assert(sizeof(void*) == sizeof(uint32_t), "Pointers must be 32 bits"); + #endif /* ARCH_H_ */ |