stm32: centralize additionnal iwdg window register definition into iwdg-v2.
stm32f0, l3, l4 are currently sharing the same duplicated header, and stm32l0 uses the same peripheral. Stop copy-pasting stuff and centralize definitions into a iwdg_common_v2.h header.
This commit is contained in:
committed by
Karl Palsson
parent
f63090d9b6
commit
207eb07d4c
@@ -32,21 +32,6 @@
|
||||
#ifndef LIBOPENCM3_IWDG_H
|
||||
#define LIBOPENCM3_IWDG_H
|
||||
|
||||
#include <libopencm3/stm32/common/iwdg_common_all.h>
|
||||
|
||||
/* --- IWDG registers ------------------------------------------------------ */
|
||||
|
||||
/* Window register (IWDG_WINR) */
|
||||
#define IWDG_WINR MMIO32(IWDG_BASE + 0x10)
|
||||
|
||||
/* --- IWDG_SR values ------------------------------------------------------ */
|
||||
|
||||
/* WVU: Watchdog counter window value update */
|
||||
#define IWDG_SR_WVU (1 << 2)
|
||||
|
||||
/* --- IWDG_WIN values ----------------------------------------------------- */
|
||||
|
||||
/* Bits 11:0 WIN[11:0]: Watchdog counter window value */
|
||||
#include <libopencm3/stm32/common/iwdg_common_v2.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user