refactor: move CHERRYUSB_VERSION and CHERRYUSB_VERSION_STR into usb_version.h

This commit is contained in:
sakumisu
2024-08-16 14:16:45 +08:00
parent b171b28a75
commit 143a5ce3fd
10 changed files with 23 additions and 21 deletions

21
common/usb_version.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_VERSION_H
#define USB_VERSION_H
#ifdef CHERRYUSB_VERSION
#warning "Please do not define CHERRYUSB_VERSION in usb_config.h"
#undef CHERRYUSB_VERSION
#endif
#ifdef CHERRYUSB_VERSION_STR
#warning "Please do not define CHERRYUSB_VERSION_STR in usb_config.h"
#undef CHERRYUSB_VERSION_STR
#endif
#define CHERRYUSB_VERSION 0x010301
#define CHERRYUSB_VERSION_STR "v1.3.1"
#endif