Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
Stm32UsbCdc.hxx
Go to the documentation of this file.
1
34
#ifndef _FREERTOS_DRIVERS_ST_STM32CDCUSB_HXX_
35
#define _FREERTOS_DRIVERS_ST_STM32CDCUSB_HXX_
36
37
#include "
freertos_drivers/tinyusb/TinyUsbCdc.hxx
"
38
39
// Usage:
40
//
41
// Define an instance in HwInit.cxx.
42
// `Stm32UsbCdc serialUsb("/dev/serialusb");`
43
// in `hw_postinit()`, call `serialUsb.hw_postinit();`
44
//
45
// Make sure that the USB clock is set up in `hw_preinit()`. Use the Clock
46
// Recovery System if there is no crystal. Set up the USB pin map in
47
// hw_preinit.
48
class
Stm32UsbCdc
:
public
TinyUsbCdc
49
{
50
public
:
51
Stm32UsbCdc
(
const
char
*
name
)
52
:
TinyUsbCdc
(
name
)
53
{
54
}
55
};
56
57
#endif
// _FREERTOS_DRIVERS_ST_STM32CDCUSB_HXX_
TinyUsbCdc.hxx
FileIO::name
const char * name
device name
Definition
Devtab.hxx:266
Stm32UsbCdc
Definition
Stm32UsbCdc.hxx:49
TinyUsbCdc
Definition
TinyUsbCdc.hxx:42
src
freertos_drivers
st
Stm32UsbCdc.hxx
Generated on Sun Feb 2 2025 21:18:13 for Open Model Railroad Network (OpenMRN) by
1.9.8