This is an automated email from the ASF dual-hosted git repository.

kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 6e5cca39a2d30183fa2bf8ded481091defefaec3
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Thu Oct 8 08:43:28 2026 +0200

    tinyusb/nrf5x: Enable nrfx CLOCK driver required by TinyUSB
    
    TinyUSB nRF5x device driver (dcd_nrf5x.c) includes nrfx_clock.h
    unconditionally and nrfx refuses that header unless its CLOCK or
    POWER driver is enabled:
    
      nrfx_power_clock.h:57:6: error: #error "This code is not supposed
      to be compiled when neither POWER nor CLOCK is enabled."
    
    nRF5340 MCU package enables NRFX_CLOCK by default so nrf53 port was
    not affected, nRF52 packages do not.  Enable it from the USB port
    package so every nRF52 target with USB builds without touching its
    own syscfg.
    
    Assisted-by: Claude:claude-fable-5-1
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 hw/usb/tinyusb/nrf5x/syscfg.yml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/hw/usb/tinyusb/nrf5x/syscfg.yml b/hw/usb/tinyusb/nrf5x/syscfg.yml
new file mode 100644
index 000000000..ee962854d
--- /dev/null
+++ b/hw/usb/tinyusb/nrf5x/syscfg.yml
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# TinyUSB nRF5x device driver includes nrfx_clock.h, which nrfx accepts
+# only when its CLOCK (or POWER) driver is enabled.
+syscfg.vals:
+    NRFX_CLOCK_ENABLED: 1

Reply via email to