Skip to content

Commit

Permalink
Deprecate variable bcdDevice in usb.h (commaai#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
briskspirit authored Jul 14, 2021
1 parent b98e3de commit 1c498c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions board/drivers/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ uint8_t device_desc[] = {
0xFF, 0xFF, 0xFF, 0x40, // Class, Subclass, Protocol, Max Packet Size
TOUSBORDER(USB_VID), // idVendor
TOUSBORDER(USB_PID), // idProduct
#ifdef STM32F4
0x00, 0x23, // bcdDevice
#else
0x00, 0x22, // bcdDevice
#endif
0x01, 0x02, // Manufacturer, Product
0x03, 0x01 // Serial Number, Num Configurations
};
Expand Down
6 changes: 3 additions & 3 deletions board/stm32fx/stm32fx_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define APB1_FREQ CORE_FREQ/2U
#define APB2_FREQ CORE_FREQ/1U

#define BOOTLOADER_ADDRESS 0x1FFF0004
#define BOOTLOADER_ADDRESS 0x1FFF0004U

// Around (1Mbps / 8 bits/byte / 12 bytes per message)
#define CAN_INTERRUPT_RATE 12000U
Expand All @@ -35,8 +35,8 @@
#define INTERRUPT_TIMER_IRQ TIM6_DAC_IRQn
#define INTERRUPT_TIMER TIM6

#define PROVISION_CHUNK_ADDRESS 0x1FFF79E0
#define DEVICE_SERIAL_NUMBER_ADDRESS 0x1FFF79C0
#define PROVISION_CHUNK_ADDRESS 0x1FFF79E0U
#define DEVICE_SERIAL_NUMBER_ADDRESS 0x1FFF79C0U

#ifndef BOOTSTUB
#ifdef PANDA
Expand Down

0 comments on commit 1c498c9

Please sign in to comment.