lkml.org 
[lkml]   [2012]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: gadget: lpc32xx_udc: Port to new start/stop interface
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


\
 
 \ /
  Last update: 2012-08-19 15:21    [W:0.037 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site