aboutsummaryrefslogtreecommitdiff
path: root/02-usart/include/arch/arm
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-24 13:46:41 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-24 13:46:41 -0700
commit93b063fedfcf7409a67df035170ea5670cad22e1 (patch)
treea23321a7465d966b1ccf196ca00e65a70c9f9110 /02-usart/include/arch/arm
parentb040195d31df6ad759f16ea3456471897f55daa1 (diff)
downloadstm32l4-93b063fedfcf7409a67df035170ea5670cad22e1.tar.gz
stm32l4-93b063fedfcf7409a67df035170ea5670cad22e1.tar.bz2
stm32l4-93b063fedfcf7409a67df035170ea5670cad22e1.zip
Moved action to top level.
Removed old iterations of the project and moved the files from 02-usart to the root directory since that's the sole place where the action is and that subproject has outgrown its initial title.
Diffstat (limited to '02-usart/include/arch/arm')
-rw-r--r--02-usart/include/arch/arm/arch.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/02-usart/include/arch/arm/arch.h b/02-usart/include/arch/arm/arch.h
deleted file mode 100644
index 22d0987..0000000
--- a/02-usart/include/arch/arm/arch.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef ARCH_H_
-#define ARCH_H_
-
-#ifndef ARCH_STM32L4
-#define ARCH_STM32L4
-#endif
-
-#define CORTEX_M4
-
-#define enable_all_interrupts() \
- asm volatile(" cpsie i ")
-
-
-#define DMA1_BASE (0x40020000)
-#define DMA2_BASE (0x40020400)
-
-#define USART1_BASE (0x40013800)
-#define USART2_BASE (0x40004400)
-
-#define GPIOA_BASE (0x48000000)
-#define GPIOB_BASE (0x48000400)
-#define GPIOC_BASE (0x48000800)
-#define GPIOH_BASE (0x48001C00)
-
-#define SRAM1_BASE (0x20000000)
-#define SRAM2_BASE (0x2000C000)
-
-#define SYSTEM_CONFIG_BLOCK_BASE (0xE000E008)
-#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");
-#endif
-
-extern uint32_t DATA_SEGMENT_START;
-extern uint32_t DATA_SEGMENT_STOP;
-
-#endif /* ARCH_H_ */