Skip to content

Commit a52f357

Browse files
wiktorkwiatkowskikasjer
authored andcommitted
hw/mcu/atmel: add CPU_CLOCK_FREQ_MHZ definition for SAMD21
Adds a new syscfg definition that allows users to select the CPU clock frequency (in MHz) for SAMD21-based targets.
1 parent 69fdf9b commit a52f357

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hw/mcu/atmel/samd21xx/ext/pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pkg.type: sdk
2323

2424
repository.atmel-samd21xx:
2525
type: github
26-
vers: c24381e11d1b494684b84f80536afe95aeec376a-commit
26+
vers: 08b4c2fdadfaac4b40811b9561a1cfd6b99c1c34-commit
2727
branch: master
2828
user: runtimeco
2929
repo: mynewt_arduino_zero

hw/mcu/atmel/samd21xx/syscfg.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ syscfg.defs:
2323
Used internally by the newt tool.
2424
value: 1
2525

26+
CPU_CLOCK_FREQ_MHZ:
27+
description: "CPU clock frequency in MHz"
28+
value: 48
29+
range: 1, 3, 6, 8, 12, 24, 48
30+
2631
SPI_0:
2732
description: 'Whether to enable SPI0'
2833
value: 0

0 commit comments

Comments
 (0)