From: Tilman Sauerbeck Date: Sun, 7 Jul 2019 10:12:13 +0000 (+0200) Subject: common: Initialize the usb_serial module with an USB VID and PID pair. X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=commitdiff_plain;h=1364963a63e0f2ed2c46eebbb7afcd3997258c78 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. --- 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(); }