Skip to content

Commit

Permalink
IWDG for F3, F7 and L4
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelrevak committed Feb 22, 2018
1 parent 3601430 commit cc7a822
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
27 changes: 27 additions & 0 deletions reg/stm32/f3/iwdg.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Peripheral Definition File
*
* IWDG - Independent watchdog
*
* MCUs containing this peripheral:
* - STM32F3xx
*/

#pragma once

#include <cstdint>
#include <cstddef>

#include "io/reg/stm32/_common/iwdg_v2.hpp"

namespace io {

namespace base {

static constexpr size_t IWDG = 0x40003000;

}

static Iwdg &IWDG = *reinterpret_cast<Iwdg *>(base::IWDG);

}
27 changes: 27 additions & 0 deletions reg/stm32/f7/iwdg.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Peripheral Definition File
*
* IWDG - Independent watchdog
*
* MCUs containing this peripheral:
* - STM32F7xx
*/

#pragma once

#include <cstdint>
#include <cstddef>

#include "io/reg/stm32/_common/iwdg_v2.hpp"

namespace io {

namespace base {

static constexpr size_t IWDG = 0x40003000;

}

static Iwdg &IWDG = *reinterpret_cast<Iwdg *>(base::IWDG);

}
27 changes: 27 additions & 0 deletions reg/stm32/l4/iwdg.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Peripheral Definition File
*
* IWDG - Independent watchdog
*
* MCUs containing this peripheral:
* - STM32L4xx
*/

#pragma once

#include <cstdint>
#include <cstddef>

#include "io/reg/stm32/_common/iwdg_v2.hpp"

namespace io {

namespace base {

static constexpr size_t IWDG = 0x40003000;

}

static Iwdg &IWDG = *reinterpret_cast<Iwdg *>(base::IWDG);

}

0 comments on commit cc7a822

Please sign in to comment.