Bug in SCG_SetHsrunClockControl in SDK 0.8.4 EAR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bug in SCG_SetHsrunClockControl in SDK 0.8.4 EAR

1,662 次查看
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 回复

1,424 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

This is fixed in the next release SDK 0.8.5 EAR.

Regards,

Daniel

0 项奖励
回复