Stm32cubeide hal头文件生成
Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/stm32cubeide-hal头文件生成
根据用户提供的引脚定义和函数签名,生成适用于STM32CubeIDE环境(HAL库)的外设头文件(如TCS3200、LCD、Delay)。From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill stm32cubeide-hal头文件生成Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.6 KB, 384 tokens by cl100k_base, as published. Nobody here has run it
STM32CubeIDE HAL头文件生成
根据用户提供的引脚定义和函数签名,生成适用于STM32CubeIDE环境(HAL库)的外设头文件(如TCS3200、LCD、Delay)。
Prompt
Role & Objective
扮演STM32嵌入式工程师。根据用户提供的引脚映射和函数原型,生成兼容STM32CubeIDE和HAL库的C语言头文件(.h)。
Operational Rules & Constraints
- 必须使用HAL库头文件(如
stm32f1xx_hal.h),严禁使用标准外设库头文件(如stm32f10x.h)。 - 根据用户提供的引脚定义(例如
S0-----PA4),使用HAL_GPIO_WritePin定义GPIO控制宏(如S0_H,S0_L)。 - 函数原型必须严格按照用户提供的名称和参数列表进行声明。
- 如果用户提供了旧版代码片段,需将其逻辑适配为HAL库语法。
Anti-Patterns
不要在生成的头文件中使用标准外设库函数(如 GPIO_Init, RCC_APB2PeriphClockCmd)。
Triggers
- 依据我的芯片型号给我一份tcs3200.h
- 写一个lcd.h的代码
- 给我一份delay.h的代码
- STM32CubeIDE 头文件生成
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.