more typos
This commit is contained in:
@@ -182,7 +182,7 @@ static inline bool tud_hid_gamepad_report(uint8_t report_id, int8_t x, int8_t y
|
||||
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
|
||||
/* Report ID if any */\
|
||||
__VA_ARGS__ \
|
||||
/* 8 bits Modifier Keys (Shfit, Control, Alt) */ \
|
||||
/* 8 bits Modifier Keys (Shift, Control, Alt) */ \
|
||||
HID_USAGE_PAGE ( HID_USAGE_PAGE_KEYBOARD ) ,\
|
||||
HID_USAGE_MIN ( 224 ) ,\
|
||||
HID_USAGE_MAX ( 231 ) ,\
|
||||
|
@@ -599,7 +599,7 @@ bool usbtmcd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request
|
||||
|
||||
// At this point, a transfer MAY be in progress. Based on USB spec, when clearing bulk EP HALT,
|
||||
// the EP transfer buffer needs to be cleared and DTOG needs to be reset, even if
|
||||
// the EP is not halted. The only USBD API interface to do this is to stall and then unstall the EP.
|
||||
// the EP is not halted. The only USBD API interface to do this is to stall and then un-stall the EP.
|
||||
if(ep_addr == usbtmc_state.ep_bulk_out)
|
||||
{
|
||||
criticalEnter();
|
||||
|
@@ -243,7 +243,7 @@ static struct
|
||||
|
||||
// Converts xfer pointer to epnum (0,1,2,3) regardless of xfer direction
|
||||
#define XFER_EPNUM(xfer) ((xfer - &_dcd.xfer_status[0][0]) >> 1)
|
||||
// Converts xfer pinter to EPx_REGS pointer (returns same pointer for IN and OUT with same endpoint number)
|
||||
// Converts xfer pointer to EPx_REGS pointer (returns same pointer for IN and OUT with same endpoint number)
|
||||
#define XFER_REGS(xfer) ep_regs[XFER_EPNUM(xfer)]
|
||||
// Converts epnum (0,1,2,3) to EPx_REGS pointer
|
||||
#define EPNUM_REGS(epnum) ep_regs[epnum]
|
||||
|
@@ -170,7 +170,7 @@ static void xact_out_dma(uint8_t epnum)
|
||||
uint32_t xact_len;
|
||||
|
||||
// DMA can't be active during read of SIZE.EPOUT or SIZE.ISOOUT, so try to lock,
|
||||
// If already running deffer call regardless if it was called from ISR or task,
|
||||
// If already running defer call regardless if it was called from ISR or task,
|
||||
if ( atomic_flag_test_and_set(&_dcd.dma_running) )
|
||||
{
|
||||
usbd_defer_func((osal_task_func_t)xact_out_dma_wrapper, (void *)(uint32_t)epnum, is_in_isr());
|
||||
|
@@ -600,7 +600,7 @@ uint32_t hcd_frame_number(uint8_t rhport)
|
||||
bool hcd_port_connect_status(uint8_t rhport)
|
||||
{
|
||||
(void)rhport;
|
||||
return USB0.INTSTS1.BIT.ATTCH ? true: false;
|
||||
return USB0.INTSTS1.BIT.ATTCH ? true : false;
|
||||
}
|
||||
|
||||
void hcd_port_reset(uint8_t rhport)
|
||||
|
@@ -465,7 +465,7 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
|
||||
enable = 1;
|
||||
usb_out_ctrl_write((0 << CSR_USB_OUT_CTRL_STALL_OFFSET) | (enable << CSR_USB_OUT_CTRL_ENABLE_OFFSET) | tu_edpt_number(ep_addr));
|
||||
}
|
||||
// IN endpoints will get unstalled when more data is written.
|
||||
// IN endpoints will get un-stalled when more data is written.
|
||||
}
|
||||
|
||||
bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t* buffer, uint16_t total_bytes)
|
||||
|
Reference in New Issue
Block a user