Yeah that's true I must have added the methods later on as cleanup. I'll fix that and recommit :)

Regards, manuel

On Jan 17, 2013, at 9:01 PM, Marti Bolivar <notifications@github.com> wrote:

> In libmaple/usb/stm32f1/usb_reg_map.c:
> 
> > @@ -58,6 +58,26 @@ void usb_copy_from_pma(uint8 *buf, uint16 len, uint16 pma_offset) {
> >      }
> >  }
> >  
> > +void usb_set_ep_rx_buf0_count(uint8 ep, uint16 count) {
> > +    uint32 *rxc = usb_ep_tx_count_ptr(ep);
> Hi Manuel,
> 
> I see that double-buffered endpoints have two count and address pointers per BTABLE entry (as shown in fig. 220 of ST RM0008). I just meant that it's less readable to refer to the RX count 0 register as the TX count register, even though they have the same address in the packet memory area, given that you already went to the trouble of adding this to usb_reg_map.h:
> 
> static inline uint32* usb_ep_rx_buf0_count_ptr(uint8 ep) {
> return usb_ep_tx_count_ptr(ep);
> }
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>