Пример #1
0
int32_t HAL_USB_USART_LineCoding_BitRate_Handler(void (*handler)(uint32_t bitRate), void* reserved)
{
    // Enable Serial by default
    HAL_USB_USART_Begin(HAL_USB_USART_SERIAL, 9600, NULL);
    LineCoding_BitRate_Handler = handler;
    return 0;
}
void USBSerial::begin(long speed)
{
    HAL_USB_USART_Begin(_serial, speed, NULL);
}