AnsweredAssumed Answered

BSP twrk60n512 bug?

Question asked by Teckna Teckna on Nov 7, 2011
Latest reply on Nov 8, 2011 by Martin Kojtal

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

 

Outcomes