/hpm-pintool-helper:hpm-clock-configfrom hpm-pintool-helper
查询 HPM 微控制器时钟树,按目标频率规划 PLL、源时钟和功能时钟,生成时钟配置 C 代码或 Mermaid 信号路径图。用于配置 CPU/外设时钟、查看时钟来源或分析分频。
Ships in hpm-pintool-helper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
先读取远程会话与目标选择,确定 SDK/SoC。
get_clock_detail。从返回数据确定实际 clock ID、可用来源、PLL 版本、参数范围及频率公式。按当前芯片公式计算,不能把示例 ID、分频定义或 PLL 参数套用到其他芯片。缺少必要输入频率或约束时,标明缺口后询问。generate_clock_code,按需传入:
pllClocks: [{ pllClkId, params }]srcClocks: [{ srcClkId, divider? }]funcClocks: [{ funcClkId, from, divider? }] 这里的源时钟 ID 与功能时钟 from 应各自来自元数据,不能仅凭名称相似替换。get_clock_signal_flow,传 clockId。用与方案一致的 pllParams、srcclkDivider、funcclkDivider、funcclkSource 和 PLL version 覆盖默认值。v1 参数与 v2 的 mfi/mfn/mfd 不混用。结果包含 pathNodes 和 mermaidFlowchart;后者可能已带 Mermaid 代码围栏,展示时避免重复嵌套。交付输入源假设、所选路径、计算频率/误差及生成代码或图。比较返回路径与所选配置;发现默认值或来源不一致时先修正再交付。图展示的是配置计算路径,不是板卡测量结果。若将片段写入现有工程,保留用户已有的无关时钟配置。
完整工程导出使用 HPMPC 工作流;其配置字段使用 divFactor 等工程结构,不能直接复制本工具的输入数组。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hpmicro/hpmicro-ai-tools --plugin hpm-pintool-helper4 skills in this plugin
/hpm-hpmpc-project读取 HPM .hpmpc 本地工程生成引脚/时钟源码,或把完整 ProjectEntity 配置校验封装为 .hpmpc;也用于修改工程后重新生成完整性校验值。用于工程导入导出与源码转换,不负责构建或烧录。/hpm-pinmux-config查询 HPM 芯片的引脚与信号,规划外设引脚分配、PAD 参数和 TRGM/GPIOM 路由,并生成 pinmux C 代码。用于选引脚、检查复用冲突或配置触发路由;不负责固件烧录。/hpm-pla-config查询 HPM PLA 模块和可选参数,把滤波、AND/OR 门及 CFF 逻辑需求转换为通道配置,生成初始化 C 代码或 Mermaid 流程图。用于可编程逻辑阵列配置与信号逻辑可视化。