← Back to Pull requests

fix(CMSIS,PeriphDrivers): MSDK-1343: Add missing BTLE clock enable support for MAX32655, MAX32657, and MAX32680 #1616

Closed
unknown closed this pull request without merging on Sep 07, 2026 15:13 UTC
View on GitHub
unknown unknown commented on Sep 03, 2026 17:24 UTC
Author

Description

Add the missing MXC_SYS_PERIPH_CLOCK_BTLE enumeration value to mxc_sys_periph_clock_t for MAX32655, MAX32657, and MAX32680, allowing callers to use MXC_SYS_ClockEnable/MXC_SYS_ClockDisable to control the Bluetooth clock on these parts.

The MXC_F_GCR_PCLKDIS1_BTLE_POS (bit 0 of PCLKDIS1) hardware register bit was already present in the gcr_regs.h for MAX32655 and MAX32680, but was missing entirely for MAX32657. The corresponding MXC_SYS_PERIPH_CLOCK_BTLE enum value was absent from all three parts' mxc_sys.h files. The BTLE bitfield at bit 0 of PCLKDIS1 was also missing from max32657.svd and gcr_me30.svd.

This fix is consistent with the existing implementation for MAX32665 and MAX32690, and is documented in the MAX32655, MAX32665/MAX32666, and MAX32680 user guides (GCR_PERCKCN1/GCR_PCLKDIS1 bit 0).

Files changed:

  • Libraries/CMSIS/Device/Maxim/MAX32657/Include/gcr_regs.h – add MXC_F_GCR_PCLKDIS1_BTLE_POS and mask

  • Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.svd – add BTLE field at bit 0 of PCLKDIS1

  • Libraries/PeriphDrivers/Include/MAX32655/mxc_sys.h – add MXC_SYS_PERIPH_CLOCK_BTLE

  • Libraries/PeriphDrivers/Include/MAX32657/mxc_sys.h – add MXC_SYS_PERIPH_CLOCK_BTLE

  • Libraries/PeriphDrivers/Include/MAX32680/mxc_sys.h – add MXC_SYS_PERIPH_CLOCK_BTLE

  • Libraries/PeriphDrivers/Source/SYS/SVD/gcr_me30.svd – add BTLE field at bit 0 of PCLKDIS1
  • Checklist Before Requesting Review

  • PR Title follows correct guidelines.

  • Description of changes and all other relevant information.

  • Link to Jira ticket: https://jira.analog.com/browse/MSDK-1343
  • Diff: 206 lines (+154 / -52) across 2 files Reviewer: ttmut Review duration: 5629m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 206 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1616"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.4% · Safe to merge
    14.4%