Browse Source

whitespace

Scott Lahteine 4 years ago
parent
commit
54ccfcc705

+ 1
- 1
Marlin/src/HAL/STM32/HAL.cpp View File

63
 void HAL_init() {
63
 void HAL_init() {
64
   FastIO_init();
64
   FastIO_init();
65
 
65
 
66
-  // Ensure F_CPU is a constant expression. 
66
+  // Ensure F_CPU is a constant expression.
67
   // If the compiler breaks here, it means that delay code that should compute at compile time will not work.
67
   // If the compiler breaks here, it means that delay code that should compute at compile time will not work.
68
   // So better safe than sorry here.
68
   // So better safe than sorry here.
69
   constexpr int cpuFreq = F_CPU;
69
   constexpr int cpuFreq = F_CPU;

+ 2
- 2
buildroot/share/PlatformIO/scripts/common-cxxflags.py View File

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

+ 1
- 1
platformio.ini View File

1344
 extends           = env:BIGTREE_GTR_V1_0
1344
 extends           = env:BIGTREE_GTR_V1_0
1345
 platform_packages = ${stm32_flash_drive.platform_packages}
1345
 platform_packages = ${stm32_flash_drive.platform_packages}
1346
 build_unflags     = -DUSBCON -DUSBD_USE_CDC
1346
 build_unflags     = -DUSBCON -DUSBD_USE_CDC
1347
-build_flags       = ${stm32_flash_drive.build_flags} 
1347
+build_flags       = ${stm32_flash_drive.build_flags}
1348
   -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
1348
   -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
1349
 
1349
 
1350
 #
1350
 #

Loading…
Cancel
Save