File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,6 @@ extern USBDevice_SAMD21G18x usbd;
4242
4343extern USBDeviceClass USBDevice;
4444
45- typedef struct {
46- uint32_t dwDTERate;
47- uint8_t bCharFormat;
48- uint8_t bParityType;
49- uint8_t bDataBits;
50- uint8_t lineState;
51- } LineInfo;
52-
53- static volatile LineInfo _usbLineInfo = {
54- 115200 , // dWDTERate
55- 0x00 , // bCharFormat
56- 0x00 , // bParityType
57- 0x08 , // bDataBits
58- 0x00 // lineState
59- };
60-
6145static volatile int32_t breakValue = -1 ;
6246
6347// CDC
Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ typedef struct
7373 EndpointDescriptor out ;
7474} CDCDescriptor ;
7575
76+ typedef struct {
77+ uint32_t dwDTERate ;
78+ uint8_t bCharFormat ;
79+ uint8_t bParityType ;
80+ uint8_t bDataBits ;
81+ uint8_t lineState ;
82+ } LineInfo ;
83+
7684
7785#endif
7886#endif
Original file line number Diff line number Diff line change @@ -176,6 +176,14 @@ friend USBDeviceClass;
176176 bool stalled;
177177 unsigned int epType[3 ];
178178
179+ volatile LineInfo _usbLineInfo = {
180+ 115200 , // dWDTERate
181+ 0x00 , // bCharFormat
182+ 0x00 , // bParityType
183+ 0x08 , // bDataBits
184+ 0x00 // lineState
185+ };
186+
179187};
180188extern Serial_ SerialUSB;
181189
You can’t perform that action at this time.
0 commit comments