BSP twrk60n512 bug?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
945件の閲覧回数
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 解決策
756件の閲覧回数
c0170
Senior Contributor III

Hi teckna,

 

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

 

Regards,

MartinK

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
757件の閲覧回数
c0170
Senior Contributor III

Hi teckna,

 

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

 

Regards,

MartinK

0 件の賞賛
返信