Skip to content

Commit 396716c

Browse files
committed
clean up
1 parent f33883c commit 396716c

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

examples/host/cdc_msc_hid/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ add_executable(${PROJECT})
1515
# Example source
1616
target_sources(${PROJECT} PUBLIC
1717
${CMAKE_CURRENT_SOURCE_DIR}/src/cdc_app.c
18-
${CMAKE_CURRENT_SOURCE_DIR}/src/main.c
1918
${CMAKE_CURRENT_SOURCE_DIR}/src/hid_app.c
19+
${CMAKE_CURRENT_SOURCE_DIR}/src/main.c
2020
${CMAKE_CURRENT_SOURCE_DIR}/src/msc_app.c
2121
)
2222

src/class/cdc/cdc.h

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@
4141
/** \defgroup ClassDriver_CDC_Common Common Definitions
4242
* @{ */
4343

44-
// TODO remove
45-
/// CDC Pipe ID, used to indicate which pipe the API is addressing to (Notification, Out, In)
46-
typedef enum
47-
{
48-
CDC_PIPE_NOTIFICATION , ///< Notification pipe
49-
CDC_PIPE_DATA_IN , ///< Data in pipe
50-
CDC_PIPE_DATA_OUT , ///< Data out pipe
51-
CDC_PIPE_ERROR , ///< Invalid Pipe ID
52-
}cdc_pipeid_t;
53-
5444
//--------------------------------------------------------------------+
5545
// CDC Communication Interface Class
5646
//--------------------------------------------------------------------+
@@ -223,13 +213,13 @@ typedef enum
223213
{
224214
CDC_NOTIF_NETWORK_CONNECTION = 0x00, ///< This notification allows the device to notify the host about network connection status.
225215
CDC_NOTIF_RESPONSE_AVAILABLE = 0x01, ///< This notification allows the device to notify the hostthat a response is available. This response can be retrieved with a subsequent \ref CDC_REQUEST_GET_ENCAPSULATED_RESPONSE request.
226-
CDC_NOTIF_AUX_JACK_HOOK_STATE = 0x08,///< CDC_NOTIF_AUX_JACK_HOOK_STATE
227-
CDC_NOTIF_RING_DETECT = 0x09,///< CDC_NOTIF_RING_DETECT
228-
CDC_NOTIF_SERIAL_STATE = 0x20,///< CDC_NOTIF_SERIAL_STATE
229-
CDC_NOTIF_CALL_STATE_CHANGE = 0x28,///< CDC_NOTIF_CALL_STATE_CHANGE
230-
CDC_NOTIF_LINE_STATE_CHANGE = 0x29,///< CDC_NOTIF_LINE_STATE_CHANGE
216+
CDC_NOTIF_AUX_JACK_HOOK_STATE = 0x08,
217+
CDC_NOTIF_RING_DETECT = 0x09,
218+
CDC_NOTIF_SERIAL_STATE = 0x20,
219+
CDC_NOTIF_CALL_STATE_CHANGE = 0x28,
220+
CDC_NOTIF_LINE_STATE_CHANGE = 0x29,
231221
CDC_NOTIF_CONNECTION_SPEED_CHANGE = 0x2A, ///< This notification allows the device to inform the host-networking driver that a change in either the upstream or the downstream bit rate of the connection has occurred
232-
CDC_NOTIF_MDLM_SEMANTIC_MODEL_NOTIFICATION = 0x40,///< CDC_NOTIF_MDLM_SEMANTIC_MODEL_NOTIFICATION
222+
CDC_NOTIF_MDLM_SEMANTIC_MODEL_NOTIFICATION = 0x40,
233223
}cdc_notification_request_t;
234224

235225
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)