[stm32] Use common memorymap include for consistency
Most peripheral headers simply include <libopencm3/stm32/memorymap.h> which, like the rest of libopencm3 requires the correct compiler define flag to be set. A few peripherals were directly including the platform include, libopencm3/stm32/xx/memorymap.h, and in some of those cases it wasn't even correctly including the correct platform. (Likely the result of copy/paste errors) These direct includes have been eliminated
This commit is contained in:
parent
e4c0a50286
commit
7afc13930f
@ -34,7 +34,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/f2/memorymap.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_f13.h>
|
||||
|
||||
#endif
|
||||
|
@ -34,7 +34,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/f2/memorymap.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef LIBOPENCM3_RNG_F2_H
|
||||
#define LIBOPENCM3_RNG_F2_H
|
||||
|
||||
#include <libopencm3/stm32/f2/memorymap.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/rng_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -36,7 +36,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_ADC_H
|
||||
#define LIBOPENCM3_ADC_H
|
||||
|
||||
#include <libopencm3/stm32/f4/memorymap.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/* --- Convenience macros -------------------------------------------------- */
|
||||
|
@ -34,7 +34,7 @@ LGPL License Terms @ref lgpl_license
|
||||
#ifndef LIBOPENCM3_DMA_H
|
||||
#define LIBOPENCM3_DMA_H
|
||||
|
||||
#include <libopencm3/stm32/f2/memorymap.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/dma_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifndef LIBOPENCM3_RNG_F4_H
|
||||
#define LIBOPENCM3_RNG_F4_H
|
||||
|
||||
#include <libopencm3/stm32/f4/memorymap.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
#include <libopencm3/stm32/common/rng_common_f24.h>
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user