Skip to content

Commit

Permalink
[sam] Fix SAMx7x systick frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-durand committed Mar 27, 2023
1 parent 740fd51 commit 589aea7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modm/platform/clock/systick/module.lb
Expand Up @@ -45,6 +45,11 @@ def build(env):
div = 1
# systick clock is too fast to run at 4 Hz, increase frequency
freq = 8
# SAMx7x: Prescaler not implemented
elif target.platform == "sam" and target.family == "e7x/s7x/v7x":
div = 1
# systick clock is too fast to run at 4 Hz, increase frequency
freq = 20
# SAMD2x: Prescaler not implemented
elif target.platform == "sam" and target.family == "d1x/d2x/dax":
div = 1
Expand Down

0 comments on commit 589aea7

Please sign in to comment.