Re: [PATCH] usb: gadget: lpc32xx_udc: Port to new start/stop interface

Roland Stigge
2012-08-19T12:48:37Z

On 17/08/12 13:39, Sebastian Andrzej Siewior wrote:
>> .lep = 0,
>> .eptype = EP_CTL_TYPE,
>> },
>> .ep[1] = {
>> .ep = {
>> .name = "ep1-int",
>> .ops =&lpc32xx_ep_ops,
>> },
>> .udc =&controller,
>> .maxpacket = 64,
>> .hwep_num_base = 2,
>> .hwep_num = 0, /* 2 or 3, will be set later */
>
> Why not now?

It's assigned dynamically at runtime, depending on RX or TX.

>> .lep = 1,
>> .eptype = EP_INT_TYPE,
>
> Do you have any restrictions on these endpoints? I mean can you pick
> any endpoints for BULK/INT/ISO or have they been pre-defined by HW?

The latter, see LPC32xx user manual, 14.1.2.

Roland