Hello,
I would like to know it there is a way to specify baud rate for the SerialUSB?
Like the Serial1.begin(9600).
Regards,
Xavier
Hello,
I would like to know it there is a way to specify baud rate for the SerialUSB?
Like the Serial1.begin(9600).
Regards,
Xavier
Baud rate is meaningless when only USB is involved, the USB CDC drivers on host and device will emulate a serial communication (aka virtual COM) as fast as they can, as USB is packet based.
The baud rate setting in the USB CDC descriptor merely gives a hint at what baud rates any hardware UARTs downstream of the USB connection may be running at.
If it's the latter you're looking after, this seems to be hardcoded to 115200 in libmaple and cannot be changed from the API.
the parameter of interest seems to be dwDTERate in ./libmaple/libmaple/usb/stm32f1/usb_cdcacm.c
thx! it's clearer now, i'll then use Serial1 to send MIDI data! I came across that lib that will facilitate me the job (i guess) https://github.com/pteichman/MapleMidi/
You must log in to post.