blob: 6c1021329c632c1dc424e83b50c8795f3b3d96da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef ARCH_H_
#define ARCH_H_
#define ARCH_STM32L4
#define enable_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 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_ */
|