BSP twrk60n512 bug?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BSP twrk60n512 bug?

Jump to solution
451 Views
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 Kudos
1 Solution
262 Views
c0170
Senior Contributor III

Hi teckna,

 

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

 

Regards,

MartinK

View solution in original post

0 Kudos
1 Reply
263 Views
c0170
Senior Contributor III

Hi teckna,

 

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

 

Regards,

MartinK

0 Kudos