refactoring
This commit is contained in:
parent
3a2e1c9990
commit
810916fa34
|
@ -46,7 +46,7 @@ void usb_serial_start(void) {
|
||||||
/*
|
/*
|
||||||
* Activates the serial driver 2 using the driver default configuration.
|
* Activates the serial driver 2 using the driver default configuration.
|
||||||
*/
|
*/
|
||||||
sdStart(&SD2, NULL);
|
sdStart(&USB_SERIAL_DRIVER, NULL);
|
||||||
#endif /* HAL_USE_SERIAL */
|
#endif /* HAL_USE_SERIAL */
|
||||||
|
|
||||||
isUsbSerialInitialized = true;
|
isUsbSerialInitialized = true;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#ifndef USBCONSOLE_H_
|
#ifndef USBCONSOLE_H_
|
||||||
#define USBCONSOLE_H_
|
#define USBCONSOLE_H_
|
||||||
|
|
||||||
|
#define USB_SERIAL_DRIVER SD2
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue