下面贴出main.c的代码
#include "wblib.h"
#include "n3290x.h"
int main(void)
{
sysSetSystemClock(eSYS_UPLL, //E_SYS_SRC_CLK eSrcClk,
192000, //UINT32 u32PllKHz,
192000, //UINT32 u32SysKHz,
192000, //UINT32 u32CpuKHz,
96000, //UINT32 u32HclkKHz,
48000); //UINT32 u32ApbKHz
//PB3~PB6设为输出
GPIOB->OMD |= 0x0F<<3;
//PB3~PB6输出高电平
GPIOB->DOUT |= 0x0F<<3;
//PB3~PB6输出低电平
GPIOB->DOUT &= ~(0x0F<<3);
while(1)
{
}
}
|