This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new a52f35795 hw/mcu/atmel: add CPU_CLOCK_FREQ_MHZ definition for SAMD21
a52f35795 is described below
commit a52f35795c5a51bc0ae5ca1395510e34e9e57cc7
Author: Wiktor Kwiatkowski <[email protected]>
AuthorDate: Mon Oct 27 10:54:23 2025 +0100
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.
---
hw/mcu/atmel/samd21xx/ext/pkg.yml | 2 +-
hw/mcu/atmel/samd21xx/syscfg.yml | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/mcu/atmel/samd21xx/ext/pkg.yml
b/hw/mcu/atmel/samd21xx/ext/pkg.yml
index b415a2d6a..680f1d50a 100644
--- a/hw/mcu/atmel/samd21xx/ext/pkg.yml
+++ b/hw/mcu/atmel/samd21xx/ext/pkg.yml
@@ -23,7 +23,7 @@ pkg.type: sdk
repository.atmel-samd21xx:
type: github
- vers: c24381e11d1b494684b84f80536afe95aeec376a-commit
+ vers: 08b4c2fdadfaac4b40811b9561a1cfd6b99c1c34-commit
branch: master
user: runtimeco
repo: mynewt_arduino_zero
diff --git a/hw/mcu/atmel/samd21xx/syscfg.yml b/hw/mcu/atmel/samd21xx/syscfg.yml
index 766290a5d..d5e749b19 100644
--- a/hw/mcu/atmel/samd21xx/syscfg.yml
+++ b/hw/mcu/atmel/samd21xx/syscfg.yml
@@ -23,6 +23,11 @@ syscfg.defs:
Used internally by the newt tool.
value: 1
+ CPU_CLOCK_FREQ_MHZ:
+ description: "CPU clock frequency in MHz"
+ value: 48
+ range: 1, 3, 6, 8, 12, 24, 48
+
SPI_0:
description: 'Whether to enable SPI0'
value: 0