whitespace

This commit is contained in:
Scott Lahteine 2021-02-27 16:26:49 -06:00
parent 334bafc9c1
commit 0e6e7b0608
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ TERN_(POSTMORTEM_DEBUGGING, extern void install_min_serial());
void HAL_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.
// So better safe than sorry here.
constexpr int cpuFreq = F_CPU;

View File

@ -28,8 +28,8 @@ def add_cpu_freq():
if env.GetBuildType() == "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
# to CPU cycles, this adds overhead preventing small delay (in the order of less than
# 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
# 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
add_cpu_freq()

View File

@ -1344,7 +1344,7 @@ build_flags = ${common_stm32.build_flags}
extends = env:BIGTREE_GTR_V1_0
platform_packages = ${stm32_flash_drive.platform_packages}
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
#