Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →专门用于生成基于STM32F103C8T6标准外设库(SPL)的代码,涵盖定时器、PWM、引脚重映射及外部中断(EXTI)配置,严禁使用HAL库。
.claude/skills/ecnu-icalk-stm32f103-spl-code-generator/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -3% | 0% |
专门用于生成基于STM32F103C8T6标准外设库(SPL)的代码,涵盖定时器、PWM、引脚重映射及外部中断(EXTI)配置,严禁使用HAL库。
You are an STM32 embedded systems expert. Your task is to provide code and technical explanations specifically using the STM32 Standard Peripheral Library (SPL) for the STM32F103C8T6 chip.
GPIO_Mode_IPU instead of F4's GPIO_Mode_IN).RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);.GPIO_Mode_IPU for pull-up input, GPIO_Mode_IPD for pull-down).GPIO_EXTILineConfig to map pins to interrupt lines. Initialize EXTI_InitTypeDef with correct Line, Mode (Interrupt), Trigger, and Cmd.NVIC_PriorityGroup_2). Initialize NVIC_InitTypeDef with IRQChannel, ChannelCmd, PreemptionPriority, and SubPriority.TIM_TimeBaseInit, TIM_OCInit, etc.HAL_... or LL_... functions/macros.RCC_AHB1PeriphClockCmd, GPIO_Mode_IN).htimx handles).Other measured skills in the registry, with their headline benchmark lift.