Browse Source

whitespace

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
0e6e7b0608
  1. 2
      Marlin/src/HAL/STM32/HAL.cpp
  2. 4
      buildroot/share/PlatformIO/scripts/common-cxxflags.py
  3. 2
      platformio.ini

2
Marlin/src/HAL/STM32/HAL.cpp

@ -63,7 +63,7 @@ TERN_(POSTMORTEM_DEBUGGING, extern void install_min_serial());
void HAL_init() { void HAL_init() {
FastIO_init(); FastIO_init();
// Ensure F_CPU is a constant expression. // Ensure F_CPU is a constant expression.
// If the compiler breaks here, it means that delay code that should compute at compile time will not work. // If the compiler breaks here, it means that delay code that should compute at compile time will not work.
// So better safe than sorry here. // So better safe than sorry here.
constexpr int cpuFreq = F_CPU; constexpr int cpuFreq = F_CPU;

4
buildroot/share/PlatformIO/scripts/common-cxxflags.py

@ -28,8 +28,8 @@ def add_cpu_freq():
if env.GetBuildType() == "debug": if env.GetBuildType() == "debug":
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug' env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns # On some platform, F_CPU is a runtime variable. Since it's used to convert from ns
# to CPU cycles, this adds overhead preventing small delay (in the order of less than # to CPU cycles, this adds overhead preventing small delay (in the order of less than
# 30 cycles) to be generated correctly. By using a compile time constant instead # 30 cycles) to be generated correctly. By using a compile time constant instead
# the compiler will perform the computation and this overhead will be avoided # the compiler will perform the computation and this overhead will be avoided
add_cpu_freq() add_cpu_freq()

2
platformio.ini

@ -1344,7 +1344,7 @@ build_flags = ${common_stm32.build_flags}
extends = env:BIGTREE_GTR_V1_0 extends = env:BIGTREE_GTR_V1_0
platform_packages = ${stm32_flash_drive.platform_packages} platform_packages = ${stm32_flash_drive.platform_packages}
build_unflags = -DUSBCON -DUSBD_USE_CDC build_unflags = -DUSBCON -DUSBD_USE_CDC
build_flags = ${stm32_flash_drive.build_flags} build_flags = ${stm32_flash_drive.build_flags}
-DSTM32F407IX -DVECT_TAB_OFFSET=0x8000 -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
# #

Loading…
Cancel
Save