Marlin_Firmware/Marlin/src/inc/Version.h

123 lines
3.8 KiB
C
Raw Normal View History

2016-04-22 10:07:26 -05:00
/**
* Marlin 3D Printer Firmware
2020-02-03 08:00:57 -06:00
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
2016-04-22 10:07:26 -05:00
*
* Based on Sprinter and grbl.
2019-06-27 23:57:50 -05:00
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
2016-04-22 10:07:26 -05:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2020-07-22 22:20:14 -05:00
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2016-04-22 10:07:26 -05:00
*
*/
#pragma once
2016-04-22 10:07:26 -05:00
/**
* Release version. Leave the Marlin version or apply a custom scheme.
2016-04-22 10:07:26 -05:00
*/
#ifndef SHORT_BUILD_VERSION
2022-05-31 18:44:57 -05:00
#define SHORT_BUILD_VERSION "2.1"
#endif
/**
* Verbose version identifier containing a unique identifier, such as the
* vendor name, download location, GitHub account, etc.
*/
#ifndef DETAILED_BUILD_VERSION
2020-05-12 14:46:14 -05:00
#define DETAILED_BUILD_VERSION SHORT_BUILD_VERSION
#endif
2016-04-22 10:07:26 -05:00
/**
* The STRING_DISTRIBUTION_DATE represents when the binary file was built,
* here we define this default string as the date where the latest release
* version was tagged.
*/
#ifndef STRING_DISTRIBUTION_DATE
2022-06-04 00:23:43 -05:00
#define STRING_DISTRIBUTION_DATE "2022-06-04"
#endif
2016-04-22 10:07:26 -05:00
/**
* Minimum Configuration.h and Configuration_adv.h file versions.
* Set based on the release version number. Used to catch an attempt to use
* older configurations. Override these if using a custom versioning scheme
* to alert users to major changes.
*/
2016-04-22 10:07:26 -05:00
2022-05-31 18:44:57 -05:00
#define MARLIN_HEX_VERSION 02010000
#ifndef REQUIRED_CONFIGURATION_H_VERSION
#define REQUIRED_CONFIGURATION_H_VERSION MARLIN_HEX_VERSION
#endif
#ifndef REQUIRED_CONFIGURATION_ADV_H_VERSION
#define REQUIRED_CONFIGURATION_ADV_H_VERSION MARLIN_HEX_VERSION
#endif
/**
* The protocol for communication to the host. Protocol indicates communication
* standards such as the use of ASCII, "echo:" and "error:" line prefixes, etc.
* (Other behaviors are given by the firmware version and capabilities report.)
*/
#ifndef PROTOCOL_VERSION
2016-07-26 14:16:59 -05:00
#define PROTOCOL_VERSION "1.0"
#endif
2016-04-22 10:07:26 -05:00
/**
* Define a generic printer name to be output to the LCD after booting Marlin.
*/
#ifndef MACHINE_NAME
2016-07-26 14:16:59 -05:00
#define MACHINE_NAME "3D Printer"
#endif
2016-07-26 14:16:59 -05:00
/**
* Website where users can find Marlin source code for the binary installed on the
* device. Override this if you provide public source code download. (GPLv3 requires
* providing the source code to your customers.)
*/
#ifndef SOURCE_CODE_URL
2020-12-27 21:00:07 -06:00
#define SOURCE_CODE_URL "github.com/MarlinFirmware/Marlin"
#endif
2016-07-26 14:16:59 -05:00
/**
* Default generic printer UUID.
*/
#ifndef DEFAULT_MACHINE_UUID
2016-07-26 14:16:59 -05:00
#define DEFAULT_MACHINE_UUID "cede2a2f-41a2-4748-9b12-c55c62f367ff"
#endif
2016-07-26 14:16:59 -05:00
/**
* The WEBSITE_URL is the location where users can get more information such as
2019-08-25 19:07:13 -05:00
* documentation about a specific Marlin release. Displayed in the Info Menu.
2016-07-26 14:16:59 -05:00
*/
#ifndef WEBSITE_URL
2020-12-27 21:00:07 -06:00
#define WEBSITE_URL "marlinfw.org"
#endif
2016-07-26 14:16:59 -05:00
/**
* Set the vendor info the serial USB interface, if changable
* Currently only supported by DUE platform
*/
#ifndef USB_DEVICE_VENDOR_ID
2021-08-21 18:00:55 -05:00
#define USB_DEVICE_VENDOR_ID 0x03EB /* ATMEL VID */
#endif
#ifndef USB_DEVICE_PRODUCT_ID
2021-08-21 18:00:55 -05:00
#define USB_DEVICE_PRODUCT_ID 0x2424 /* MSC / CDC */
#endif
//! USB Device string definitions (Optional)
#ifndef USB_DEVICE_MANUFACTURE_NAME
2021-08-21 18:00:55 -05:00
#define USB_DEVICE_MANUFACTURE_NAME WEBSITE_URL
#endif
#ifdef CUSTOM_MACHINE_NAME
2021-08-21 18:00:55 -05:00
#define USB_DEVICE_PRODUCT_NAME CUSTOM_MACHINE_NAME
#else
2021-08-21 18:00:55 -05:00
#define USB_DEVICE_PRODUCT_NAME MACHINE_NAME
#endif
2021-08-21 18:00:55 -05:00
#define USB_DEVICE_SERIAL_NAME "123985739853"