Skip to content

Commit 6ddf810

Browse files
committed
Bump software version to 2.4; remove crc pragma
Update software version symbol and value: rename SOFTWARE_VERSION to kSoftwareVersion and bump value to "2.4" in firmware-template header, and update usages in gd32_dmx_usb_pro and gd32_rdm_responder mains. Also remove the "-fprefetch-loop-arrays" optimization pragma from lib-clib/src/crc32/crc32.cpp as a minor cleanup.
1 parent bc856f0 commit 6ddf810

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

firmware-template-gd32/include/software_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
#ifndef SOFTWARE_VERSION_H_
2727
#define SOFTWARE_VERSION_H_
2828

29-
constexpr char SOFTWARE_VERSION[] = "2.3";
29+
constexpr char kSoftwareVersion[] = "2.4";
3030

3131
#endif // SOFTWARE_VERSION_H_

gd32_dmx_usb_pro/firmware/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ int main() // NOLINT
7373
const auto kWidgetMode = widget_params.GetMode();
7474

7575
uint8_t hw_text_length;
76-
printf("[V%s] %s Compiled on %s at %s\n", SOFTWARE_VERSION, hal::BoardName(hw_text_length), __DATE__, __TIME__);
76+
printf("[V%s] %s Compiled on %s at %s\n", kSoftwareVersion, hal::BoardName(hw_text_length), __DATE__, __TIME__);
7777
printf("RDM Controller with USB [Compatible with Enttec USB Pro protocol], Widget mode : %d (%s)\n", kWidgetMode, kWidgetModeNames[static_cast<uint32_t>(kWidgetMode)]);
7878
printf("Device UUID : %.2x%.2x:%.2x%.2x%.2x%.2x, ", uid[0], uid[1], uid[2], uid[3], uid[4], uid[5]);
7979
printf("Label : %.*s\n", static_cast<int>(label.length), reinterpret_cast<const char*>(label.data));

gd32_rdm_responder/firmware/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int main() // NOLINT
6363
#if !defined(NO_EMAC)
6464
network::Init();
6565
#endif
66-
FirmwareVersion fw(SOFTWARE_VERSION, __DATE__, __TIME__);
66+
FirmwareVersion fw(kSoftwareVersion, __DATE__, __TIME__);
6767

6868
const auto kIsConfigMode = IsConfigMode();
6969

lib-clib/src/crc32/crc32.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#pragma GCC push_options
1212
#pragma GCC optimize ("O2")
1313
#pragma GCC optimize ("-funroll-loops")
14-
#pragma GCC optimize ("-fprefetch-loop-arrays")
1514

1615
#include <cstdint>
1716
#include <cstddef>

0 commit comments

Comments
 (0)