From 1364963a63e0f2ed2c46eebbb7afcd3997258c78 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 7 Jul 2019 12:12:13 +0200 Subject: [PATCH] common: Initialize the usb_serial module with an USB VID and PID pair. No change in behaviour yet, as the IDs are not yet forwarded to the USB system proper. --- src/bootloader/main.rs | 2 +- src/common/usb_serial.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index d83702e..88a9a0b 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -44,7 +44,7 @@ pub unsafe extern fn main() { clock::configure(); if true { - usb_serial::init(); + usb_serial::init(0x1fc9, 0x0094); let mut b = bootloader::Bootloader::new(); diff --git a/src/common/usb_serial.rs b/src/common/usb_serial.rs index c9de0d4..6f28e52 100644 --- a/src/common/usb_serial.rs +++ b/src/common/usb_serial.rs @@ -28,7 +28,7 @@ extern { fn USB_VcomInit(); } -pub unsafe fn init() { +pub unsafe fn init(vid: u16, pid: u16) { USB_VcomInit(); } -- 2.30.2