|
OK6410-A上照著飛凌提供的LED驅(qū)動(dòng)程序改了一下:
//GPP0-3
tmp =readl(s3c64xx_GPPPUD);
tmp &=(~0xff);
tmp |=0xaa;
writel(tmp,s3c64xx_GPPUD);
//GPP0-3
tmp =readl(s3c64xx_GPPCON);
tmp &=(~0xff);
tmp |=0xaa;
writel(tmp,s3c64xx_GPPCON);
//GPP0-3
tmp =_raw_readl(s3c64xx_GPPDAT);
tmp= 0x00;
writel(tmp,s3c64xx_GPPDAT);
光盤(pán)提供的程序下載進(jìn)去運(yùn)行沒(méi)問(wèn)題,但我修改后對(duì)于GPPDAT不管怎么設(shè)置GPP1 都是輸出1.63V
數(shù)據(jù)手冊(cè)上面寫(xiě)了還有GPPCONSLP GPPPUDSLP 這兩個(gè)需要設(shè)置嗎? |
|