|
|
@ -75,14 +75,14 @@ void usb_task_idle(void) {
|
|
|
|
bool usb_task_msc_isenabled(void) { return main_b_msc_enable; }
|
|
|
|
bool usb_task_msc_isenabled(void) { return main_b_msc_enable; }
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
bool usb_task_cdc_enable(const uint8_t port) { return ((main_b_cdc_enable = true)); }
|
|
|
|
bool usb_task_cdc_enable(const uint8_t port) { UNUSED(port); return ((main_b_cdc_enable = true)); }
|
|
|
|
void usb_task_cdc_disable(const uint8_t port) { main_b_cdc_enable = false; main_b_dtr_active = false; }
|
|
|
|
void usb_task_cdc_disable(const uint8_t port) { UNUSED(port); main_b_cdc_enable = false; main_b_dtr_active = false; }
|
|
|
|
bool usb_task_cdc_isenabled(void) { return main_b_cdc_enable; }
|
|
|
|
bool usb_task_cdc_isenabled(void) { return main_b_cdc_enable; }
|
|
|
|
|
|
|
|
|
|
|
|
/*! \brief Called by CDC interface
|
|
|
|
/*! \brief Called by CDC interface
|
|
|
|
* Callback running when CDC device have received data
|
|
|
|
* Callback running when CDC device have received data
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void usb_task_cdc_rx_notify(const uint8_t port) { }
|
|
|
|
void usb_task_cdc_rx_notify(const uint8_t port) { UNUSED(port); }
|
|
|
|
|
|
|
|
|
|
|
|
/*! \brief Configures communication line
|
|
|
|
/*! \brief Configures communication line
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -90,13 +90,13 @@ void usb_task_cdc_rx_notify(const uint8_t port) { }
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static uint16_t dwDTERate = 0;
|
|
|
|
static uint16_t dwDTERate = 0;
|
|
|
|
void usb_task_cdc_config(const uint8_t port, usb_cdc_line_coding_t *cfg) {
|
|
|
|
void usb_task_cdc_config(const uint8_t port, usb_cdc_line_coding_t *cfg) {
|
|
|
|
// Store last DTE rate
|
|
|
|
UNUSED(port);
|
|
|
|
dwDTERate = cfg->dwDTERate;
|
|
|
|
// Store last DTE rate
|
|
|
|
|
|
|
|
dwDTERate = cfg->dwDTERate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void usb_task_cdc_set_dtr(const uint8_t port, const bool b_enable) {
|
|
|
|
void usb_task_cdc_set_dtr(const uint8_t port, const bool b_enable) {
|
|
|
|
|
|
|
|
UNUSED(port);
|
|
|
|
// Keep DTR status
|
|
|
|
// Keep DTR status
|
|
|
|
main_b_dtr_active = b_enable;
|
|
|
|
main_b_dtr_active = b_enable;
|
|
|
|
|
|
|
|
|
|
|
|