mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
usb.c: Removed FIXME comment
MITM does not support two interface settings. The comment mixed up interface configurations and alternative interface settings.
This commit is contained in:
@@ -616,8 +616,6 @@ void USBDDriverCallbacks_ConfigurationChanged(uint8_t cfgnum)
|
|||||||
static void _ConfigureUsbClock(void)
|
static void _ConfigureUsbClock(void)
|
||||||
{
|
{
|
||||||
/* Enable PLLB for USB */
|
/* Enable PLLB for USB */
|
||||||
// FIXME: are these the dividers I actually need?
|
|
||||||
// FIXME: I could just use PLLA, since it has a frequ of 48Mhz anyways?
|
|
||||||
PMC->CKGR_PLLBR = CKGR_PLLBR_DIVB(5)
|
PMC->CKGR_PLLBR = CKGR_PLLBR_DIVB(5)
|
||||||
| CKGR_PLLBR_MULB(0xc) /* MULT+1=0xd*/
|
| CKGR_PLLBR_MULB(0xc) /* MULT+1=0xd*/
|
||||||
| CKGR_PLLBR_PLLBCOUNT_Msk;
|
| CKGR_PLLBR_PLLBCOUNT_Msk;
|
||||||
@@ -639,11 +637,8 @@ void SIMtrace_USB_Initialize( void )
|
|||||||
// Initialize standard USB driver
|
// Initialize standard USB driver
|
||||||
USBDDriver_Initialize(pUsbd,
|
USBDDriver_Initialize(pUsbd,
|
||||||
&driverDescriptors,
|
&driverDescriptors,
|
||||||
// FIXME: 2 interface settings supported in MITM mode
|
|
||||||
0); // Multiple interface settings not supported
|
0); // Multiple interface settings not supported
|
||||||
|
|
||||||
USBD_Init();
|
USBD_Init();
|
||||||
|
|
||||||
USBD_Connect();
|
USBD_Connect();
|
||||||
|
|
||||||
NVIC_EnableIRQ( UDP_IRQn );
|
NVIC_EnableIRQ( UDP_IRQn );
|
||||||
|
|||||||
Reference in New Issue
Block a user