From 4d315288cfe151d4670b2d5b55eed83c60cff547 Mon Sep 17 00:00:00 2001 From: Ken Sarkies Date: Mon, 10 Aug 2015 15:38:56 +0930 Subject: [PATCH] stm32: pwr: Use consistent include guards. All STM32 family pwr.h must use LIBOPENCM3_PWR_H as include guard so that pwr_common.h can detect that it has been referenced by pwr.h for each family. F2 and F3 had the wrong include guard. Fixes Github issue #513 --- include/libopencm3/stm32/f2/pwr.h | 4 ++-- include/libopencm3/stm32/f3/pwr.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libopencm3/stm32/f2/pwr.h b/include/libopencm3/stm32/f2/pwr.h index f946f880..72b01d9f 100644 --- a/include/libopencm3/stm32/f2/pwr.h +++ b/include/libopencm3/stm32/f2/pwr.h @@ -30,8 +30,8 @@ LGPL License Terms @ref lgpl_license * along with this library. If not, see . */ -#ifndef LIBOPENCM3_PWR_F2_H -#define LIBOPENCM3_PWR_F2_H +#ifndef LIBOPENCM3_PWR_H +#define LIBOPENCM3_PWR_H #include diff --git a/include/libopencm3/stm32/f3/pwr.h b/include/libopencm3/stm32/f3/pwr.h index e30acb9d..3789b78b 100644 --- a/include/libopencm3/stm32/f3/pwr.h +++ b/include/libopencm3/stm32/f3/pwr.h @@ -38,8 +38,8 @@ * along with this library. If not, see . */ -#ifndef LIBOPENCM3_PWR_F3_H -#define LIBOPENCM3_PWR_F3_H +#ifndef LIBOPENCM3_PWR_H +#define LIBOPENCM3_PWR_H #include