aux_serial: Renamed usbuart_set_line_coding() -> aux_serial_set_encoding()
This commit is contained in:
parent
487bcf029d
commit
2da8b44c1d
|
@ -32,7 +32,7 @@
|
||||||
#include "usbuart.h"
|
#include "usbuart.h"
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
|
|
||||||
void usbuart_set_line_coding(struct usb_cdc_line_coding *coding)
|
void aux_serial_set_encoding(struct usb_cdc_line_coding *coding)
|
||||||
{
|
{
|
||||||
usart_set_baudrate(USBUSART, coding->dwDTERate);
|
usart_set_baudrate(USBUSART, coding->dwDTERate);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Black Sphere Technologies Ltd.
|
* Copyright (C) 2011 Black Sphere Technologies Ltd.
|
||||||
* Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
* Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
||||||
|
* Copyright (C) 2022 1BitSquared <info@1bitsquared.com>
|
||||||
|
* Written by Rachel Mant <git@dragonmux.network>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -106,7 +108,7 @@ static enum usbd_request_return_codes debug_uart_control_request(usbd_device *de
|
||||||
case USB_CDC_REQ_SET_LINE_CODING:
|
case USB_CDC_REQ_SET_LINE_CODING:
|
||||||
if (*len < sizeof(struct usb_cdc_line_coding))
|
if (*len < sizeof(struct usb_cdc_line_coding))
|
||||||
return USBD_REQ_NOTSUPP;
|
return USBD_REQ_NOTSUPP;
|
||||||
usbuart_set_line_coding((struct usb_cdc_line_coding *)*buf);
|
aux_serial_set_encoding((struct usb_cdc_line_coding *)*buf);
|
||||||
return USBD_REQ_HANDLED;
|
return USBD_REQ_HANDLED;
|
||||||
}
|
}
|
||||||
return USBD_REQ_NOTSUPP;
|
return USBD_REQ_NOTSUPP;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
void aux_serial_init(void);
|
void aux_serial_init(void);
|
||||||
|
|
||||||
void usbuart_set_line_coding(struct usb_cdc_line_coding *coding);
|
void aux_serial_set_encoding(struct usb_cdc_line_coding *coding);
|
||||||
void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep);
|
void usbuart_usb_out_cb(usbd_device *dev, uint8_t ep);
|
||||||
void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep);
|
void usbuart_usb_in_cb(usbd_device *dev, uint8_t ep);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue