Bug in SCG_SetHsrunClockControl in SDK 0.8.4 EAR

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

Bug in SCG_SetHsrunClockControl in SDK 0.8.4 EAR

1,092件の閲覧回数
justinsheng
Contributor II

There is an obvious bug in function SCG_SetHsrunClockControl in scg_hw_access.h. Hope NXP can fix it in the next SDK release:

static inline void SCG_SetHsrunClockControl(SCG_Type * base, uint32_t source, uint32_t coreDivider, uint32_t busDivider, uint32_t slowDivider)
{
uint32_t value = (uint32_t)(((source << SCG_HCCR_SCS_SHIFT) & SCG_HCCR_SCS_MASK) |
((coreDivider << SCG_HCCR_DIVCORE_SHIFT) & SCG_HCCR_DIVCORE_MASK) |
((busDivider << /*SCG_HCCR_DIVSLOW_SHIFT*/SCG_HCCR_DIVBUS_SHIFT) & SCG_HCCR_DIVBUS_MASK) |
((slowDivider << SCG_HCCR_DIVSLOW_SHIFT) & SCG_HCCR_DIVSLOW_MASK) );

base->HCCR = value;
}

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

854件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

This is fixed in the next release SDK 0.8.5 EAR.

Regards,

Daniel

0 件の賞賛