BSP twrk60n512 bug?

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

BSP twrk60n512 bug?

跳至解决方案
891 次查看
Teckna
Contributor V

Hi everybody,

 

I'm working on developing a new bsp for my custom board, starting from the twrk60n512 one. I think there is a bug on _bsp_usb_io_init function in the init_gpio.c file. At line 606 there is the instruction:

 

SIM_CLKDIV2_REG(SIM_BASE_PTR) &= SIM_CLKDIV2_USBFRAC_MASK | SIM_CLKDIV2_USBDIV_MASK;

 

I think it would be:

 

SIM_CLKDIV2_REG(SIM_BASE_PTR) &= ~( SIM_CLKDIV2_USBFRAC_MASK | SIM_CLKDIV2_USBDIV_MASK );

 

Is it right or am I wrong?

 

Many thanks

 

0 项奖励
回复
1 解答
702 次查看
c0170
Senior Contributor III

Hi teckna,

 

You are right , tilda is missing there . It was in 3.7 MQX.

 

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
回复
1 回复
703 次查看
c0170
Senior Contributor III

Hi teckna,

 

You are right , tilda is missing there . It was in 3.7 MQX.

 

Regards,

MartinK

0 项奖励
回复