rm5248 opened a new issue, #11005:
URL: https://github.com/apache/nuttx/issues/11005

   When compiling the STM32 USB driver, I get a compile error:
   
   ```
   CC:  chip/stm32_otghsdev.c chip/stm32_otghsdev.c: In function 
'stm32_ep_allocbuffer':
   chip/stm32_otghsdev.c:4367:33: error: 'privep' undeclared (first use in this 
function); did you mean 'pipe2'?
      usbtrace(TRACE_EPALLOCBUFFER, privep->epphy);
                                    ^~~~~~
                                    pipe2
   chip/stm32_otghsdev.c:4367:33: note: each undeclared identifier is reported 
only once for each function it appears in
   chip/stm32_otghsdev.c: In function 'stm32_ep_freebuffer':
   chip/stm32_otghsdev.c:4388:32: error: 'privep' undeclared (first use in this 
function); did you mean 'pipe2'?
      usbtrace(TRACE_EPFREEBUFFER, privep->epphy);
                                   ^~~~~~
                                   pipe2
   ```
   code: 
https://github.com/apache/nuttx/blob/master/arch/arm/src/stm32/stm32_otghsdev.c#L4367
   
   Changing `privep` to `ep` does not fix the compile error.  I'm not sure what 
this is supposed to be in the first place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to