[mw_shl_code=c,true] RCC->AHB1ENR=1<<5;
GPIOF->MODER &=~(1<<16|1<<18|1<<20);
GPIOF->MODER = 1<<16|1<<18|1<<20;
GPIOF->OTYPER &=~(1<<8|1<<9|1<<10);
GPIOF->OTYPER = 1<<8|1<<9|1<<10;
GPIOF->OSPEEDR &= ~(3<<16|3<<18|3<<20);
GPIOF->OSPEEDR=3<<16|3<<18|3<<20;
GPIOF->

UPDR &= ~(2<<16|1<<18|1<<20);
GPIOF->

UPDR = 2<<16|1<<18|1<<20;
// PFout(8)=1;
// GPIOF->BSRRH = 1<<9;
// GPIOF->BSRRH = 1<<10;
while(1)
{
// PFout(8)=1;
GPIOF->BSRRL = 1<<8;
GPIOF->BSRRH = 1<<9;
GPIOF->BSRRH = 1<<10;[/mw_shl_code]
不知道嘛回事了(⊙o⊙)…
控制蜂鸣器的三极管高电平导通
led低电平点亮
一周热门 更多>