aboutsummaryrefslogtreecommitdiff
path: root/02-usart/include/core/rcc.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-21 01:25:26 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-21 01:25:26 -0700
commit14a651cda0bd8dfb992d2a6a1544300c39492ca3 (patch)
treea3f4b148fe64736f7bb73784498871009faf1fe0 /02-usart/include/core/rcc.h
parentfd763486d875968941c77386e23936e817856c8e (diff)
downloadstm32l4-14a651cda0bd8dfb992d2a6a1544300c39492ca3.tar.gz
stm32l4-14a651cda0bd8dfb992d2a6a1544300c39492ca3.tar.bz2
stm32l4-14a651cda0bd8dfb992d2a6a1544300c39492ca3.zip
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.
Diffstat (limited to '02-usart/include/core/rcc.h')
-rw-r--r--02-usart/include/core/rcc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/02-usart/include/core/rcc.h b/02-usart/include/core/rcc.h
index 9c82501..45f64b5 100644
--- a/02-usart/include/core/rcc.h
+++ b/02-usart/include/core/rcc.h
@@ -1,11 +1,10 @@
#ifndef H__RCC_
#define H__RCC_
+#include "arch.h"
#include "common.h"
#include <stdint.h>
-#define RCC_BASE ((uint32_t)0x40021000)
-
typedef struct {
__IO uint32_t c_r; /* Clock control register. 0x00 */
__IO uint32_t icsc_r; /* Internal clock srcs calibration register. 0x04 */