1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/usb: Add PID/VID check in macro

This commit is contained in:
MrKevinWeiss 2023-04-06 09:18:29 +02:00
parent afd8152800
commit 7f134c6c74
No known key found for this signature in database
GPG Key ID: 4B69974722CBEEAE

View File

@ -53,7 +53,15 @@ extern "C" {
#error Please configure your vendor and product IDs. For development, you may \
set USB_VID=${USB_VID_TESTING} USB_PID=${USB_PID_TESTING}.
#endif
#else
#if CONFIG_USB_VID == INTERNAL_PERIPHERAL_VID && \
CONFIG_USB_PID == INTERNAL_PERIPHERAL_PID
#error Please configure your vendor and product IDs differently than the \
INTERNAL_PERIPHERAL_* settings. For development, you may set \
USB_VID=${USB_VID_TESTING} \
USB_PID=${USB_PID_TESTING}.
#endif
#endif /* !(defined(CONFIG_USB_VID) && defined(CONFIG_USB_PID)) */
/**
* @brief USB peripheral device vendor ID