Usbcdc + en_timer32_1

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

Usbcdc + en_timer32_1

559 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Andre Schoeman on Tue Mar 29 20:16:19 MST 2011
[COLOR=#000000]Hi[/COLOR]


[COLOR=#000000]I have read that the USB ROM code uses a 32 timer as part of it's HID implementation.[/COLOR]
[COLOR=#000000]I am using the USBCDC example.[/COLOR]


[COLOR=#000000]I see in the start-up code before main,[/COLOR]


[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]/* Enable Timer32_1, IOCON, and USB blocks */[/SIZE][/FONT][/COLOR]
[LEFT][COLOR=#000000][FONT=Courier New, monospace][SIZE=2]LPC_SYSCON->SYSAHBCLKCTRL |= (EN_TIMER32_1 | EN_IOCON | EN_USBREG);[/SIZE][/FONT][/COLOR]


[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]USBIOClkConfig();[/SIZE][/FONT][/COLOR]


[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]VCOM_Init(); // VCOM [U]Initialization[/U][/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]USB_Init(); // USB [U]Initialization[/U][/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]USB_Connect(TRUE); // USB Connect[/SIZE][/FONT][/COLOR]


[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]while (!USB_Configuration); // wait until USB is configured[/SIZE][/FONT][/COLOR]




[COLOR=#000000]As far as I can see the example does not use this timer.[/COLOR]


[COLOR=#000000]In my code I have removed EN_TIMER32_1 without any apparent problems.[/COLOR]


[COLOR=#000000]Can somebody please confirm that this is in fact correct and that I have not disabled some underlying functionality.[/COLOR]

[COLOR=#000000]Thanks[/COLOR]
[COLOR=#000000]Andre [/COLOR]

[/LEFT]
0 Kudos
Reply
1 Reply

547 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Mar 29 22:11:43 MST 2011
Yes, this sample doesn't use timer.
0 Kudos
Reply