[LPCOpen] Bug in lcd_17xx_40xx.c

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[LPCOpen] Bug in lcd_17xx_40xx.c

619件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pgr on Mon Nov 10 01:37:59 MST 2014
Hy all,

I just found a bug in LPCOpen in the file lcd_17xx_40xx.c, function Chip_LCD_Init().
The clock divider is not computed the right way. The LCD controller use cclk as clock source and not pclk. So the code should be:

pcd = (Chip_Clock_GetSystemClockRate() / LCD_ConfigStruct->CLK) - 1;


instead of

pcd = (Chip_Clock_GetPeripheralClockRate() / LCD_ConfigStruct->CLK) - 1;


Best regards

PGR
ラベル(1)
0 件の賞賛
返信
0 返答(返信)