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
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.
48class Stm32UsbCdc : public TinyUsbCdc
49{
50public:
51 Stm32UsbCdc(const char *name)
53 {
54 }
55};
56
57#endif // _FREERTOS_DRIVERS_ST_STM32CDCUSB_HXX_
const char * name
device name
Definition Devtab.hxx:266