|
@@ -75,14 +75,14 @@ void usb_task_idle(void) {
|
75
|
75
|
bool usb_task_msc_isenabled(void) { return main_b_msc_enable; }
|
76
|
76
|
#endif
|
77
|
77
|
|
78
|
|
-bool usb_task_cdc_enable(const uint8_t port) { return ((main_b_cdc_enable = true)); }
|
79
|
|
-void usb_task_cdc_disable(const uint8_t port) { main_b_cdc_enable = false; main_b_dtr_active = false; }
|
|
78
|
+bool usb_task_cdc_enable(const uint8_t port) { UNUSED(port); return ((main_b_cdc_enable = true)); }
|
|
79
|
+void usb_task_cdc_disable(const uint8_t port) { UNUSED(port); main_b_cdc_enable = false; main_b_dtr_active = false; }
|
80
|
80
|
bool usb_task_cdc_isenabled(void) { return main_b_cdc_enable; }
|
81
|
81
|
|
82
|
82
|
/*! \brief Called by CDC interface
|
83
|
83
|
* Callback running when CDC device have received data
|
84
|
84
|
*/
|
85
|
|
-void usb_task_cdc_rx_notify(const uint8_t port) { }
|
|
85
|
+void usb_task_cdc_rx_notify(const uint8_t port) { UNUSED(port); }
|
86
|
86
|
|
87
|
87
|
/*! \brief Configures communication line
|
88
|
88
|
*
|
|
@@ -90,13 +90,13 @@ void usb_task_cdc_rx_notify(const uint8_t port) { }
|
90
|
90
|
*/
|
91
|
91
|
static uint16_t dwDTERate = 0;
|
92
|
92
|
void usb_task_cdc_config(const uint8_t port, usb_cdc_line_coding_t *cfg) {
|
93
|
|
- // Store last DTE rate
|
94
|
|
- dwDTERate = cfg->dwDTERate;
|
|
93
|
+ UNUSED(port);
|
|
94
|
+ // Store last DTE rate
|
|
95
|
+ dwDTERate = cfg->dwDTERate;
|
95
|
96
|
}
|
96
|
97
|
|
97
|
|
-
|
98
|
98
|
void usb_task_cdc_set_dtr(const uint8_t port, const bool b_enable) {
|
99
|
|
-
|
|
99
|
+ UNUSED(port);
|
100
|
100
|
// Keep DTR status
|
101
|
101
|
main_b_dtr_active = b_enable;
|
102
|
102
|
|