aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/common/iwdg_common_all.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libopencm3/stm32/common/iwdg_common_all.h')
-rw-r--r--include/libopencm3/stm32/common/iwdg_common_all.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libopencm3/stm32/common/iwdg_common_all.h b/include/libopencm3/stm32/common/iwdg_common_all.h
index b75e4d1..eed4cdb 100644
--- a/include/libopencm3/stm32/common/iwdg_common_all.h
+++ b/include/libopencm3/stm32/common/iwdg_common_all.h
@@ -22,8 +22,11 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY, BUT ONLY VIA IWDG.H */
+/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY, BUT ONLY VIA IWDG.H
+The order of header inclusion is important. iwdg.h includes the device
+specific memorymap.h header before including this header file.*/
+#ifdef LIBOPENCM3_IWDG_H
#ifndef LIBOPENCM3_IWDG_COMMON_ALL_H
#define LIBOPENCM3_IWDG_COMMON_ALL_H
@@ -109,5 +112,8 @@ void iwdg_reset(void);
END_DECLS
#endif
+#else
+#warning "iwdg_common_all.h should not be included explicitly, only via iwdg.h"
+#endif
/**@}*/