diff options
| author | hathach <[email protected]> | 2019-03-22 23:57:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-22 23:57:56 +0700 |
| commit | 43eb1a8b1631ed4b460db123717a7226c10c701f (patch) | |
| tree | fcab11b2fe90156262cd075aa4f9aab55eca32cb /src/device | |
| parent | ba1bea5d536d232cd5e535ff33ac372f7dd9a575 (diff) | |
added stub for dcd_stm32f3
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 95a187298..e73f24277 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -98,21 +98,6 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num); uint32_t dcd_get_frame_number(uint8_t rhport);
/*------------------------------------------------------------------*/
-/* Event Function
- * Called by DCD to notify USBD
- *------------------------------------------------------------------*/
-void dcd_event_handler(dcd_event_t const * event, bool in_isr);
-
-// helper to send bus signal event
-void dcd_event_bus_signal (uint8_t rhport, dcd_eventid_t eid, bool in_isr);
-
-// helper to send setup received
-void dcd_event_setup_received(uint8_t rhport, uint8_t const * setup, bool in_isr);
-
-// helper to send transfer complete event
-void dcd_event_xfer_complete (uint8_t rhport, uint8_t ep_addr, uint32_t xferred_bytes, uint8_t result, bool in_isr);
-
-/*------------------------------------------------------------------*/
/* Endpoint API
* - open : Configure endpoint's registers
* - xfer : Submit a transfer. When complete dcd_event_xfer_complete
@@ -130,6 +115,21 @@ void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr); void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr);
bool dcd_edpt_stalled (uint8_t rhport, uint8_t ep_addr);
+/*------------------------------------------------------------------*/
+/* Event Function
+ * Called by DCD to notify USBD
+ *------------------------------------------------------------------*/
+void dcd_event_handler(dcd_event_t const * event, bool in_isr);
+
+// helper to send bus signal event
+void dcd_event_bus_signal (uint8_t rhport, dcd_eventid_t eid, bool in_isr);
+
+// helper to send setup received
+void dcd_event_setup_received(uint8_t rhport, uint8_t const * setup, bool in_isr);
+
+// helper to send transfer complete event
+void dcd_event_xfer_complete (uint8_t rhport, uint8_t ep_addr, uint32_t xferred_bytes, uint8_t result, bool in_isr);
+
#ifdef __cplusplus
}
#endif
|
