Skip to content

Commit

Permalink
add support check for stm32h7
Browse files Browse the repository at this point in the history
  • Loading branch information
victorandrehc committed Apr 27, 2023
1 parent 64df8b9 commit 7fb32d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modm/platform/iwdg/stm32/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def init(module):
module.description = "Independent watchdog"

def prepare(module, options):
device = options[":target"]
target = device.identifier
if target["family"] in ["h7"]:
# STM32h75 is not yet supported with any IWDG implementation im modm
return False
return options[":target"].identifier.platform == "stm32"

def build(env):
Expand Down

0 comments on commit 7fb32d6

Please sign in to comment.