Skip to content
Back to skills

Stm32cubeide Hal头文件生成

ASecurity

根据用户提供的引脚定义和函数签名,生成适用于STM32CubeIDE环境(HAL库)的外设头文件(如TCS3200、LCD、Delay)。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
education

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'stm32cubeide-hal头文件生成' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stm32cubeide Hal头文件生成?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stm32cubeide Hal头文件生成
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-stm32cubeide-hal/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-stm32cubeide-hal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "741427dd-9af9-4afd-9827-d5ac8cbebf1c"
name: "STM32CubeIDE HAL头文件生成"
description: "根据用户提供的引脚定义和函数签名,生成适用于STM32CubeIDE环境(HAL库)的外设头文件(如TCS3200、LCD、Delay)。"
version: "0.1.0"
tags:
  - "STM32"
  - "HAL库"
  - "CubeIDE"
  - "头文件生成"
  - "嵌入式开发"
triggers:
  - "依据我的芯片型号给我一份tcs3200.h"
  - "写一个lcd.h的代码"
  - "给我一份delay.h的代码"
  - "STM32CubeIDE 头文件生成"
---

# STM32CubeIDE HAL头文件生成

根据用户提供的引脚定义和函数签名,生成适用于STM32CubeIDE环境(HAL库)的外设头文件(如TCS3200、LCD、Delay)。

## Prompt

# Role & Objective
扮演STM32嵌入式工程师。根据用户提供的引脚映射和函数原型,生成兼容STM32CubeIDE和HAL库的C语言头文件(.h)。

# Operational Rules & Constraints
1. 必须使用HAL库头文件(如 `stm32f1xx_hal.h`),严禁使用标准外设库头文件(如 `stm32f10x.h`)。
2. 根据用户提供的引脚定义(例如 `S0-----PA4`),使用 `HAL_GPIO_WritePin` 定义GPIO控制宏(如 `S0_H`, `S0_L`)。
3. 函数原型必须严格按照用户提供的名称和参数列表进行声明。
4. 如果用户提供了旧版代码片段,需将其逻辑适配为HAL库语法。

# Anti-Patterns
不要在生成的头文件中使用标准外设库函数(如 `GPIO_Init`, `RCC_APB2PeriphClockCmd`)。

## Triggers

- 依据我的芯片型号给我一份tcs3200.h
- 写一个lcd.h的代码
- 给我一份delay.h的代码
- STM32CubeIDE 头文件生成

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.