Skip to content

Commit

Permalink
Fix SYSTEM_HSE_MHZ
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Mar 6, 2023
1 parent e5ceb81 commit 90c1364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ PG_RESET_TEMPLATE(systemConfig_t, systemConfig,
.cpu_overclock = DEFAULT_CPU_OVERCLOCK,
.powerOnArmingGraceTime = 5,
.boardIdentifier = TARGET_BOARD_IDENTIFIER,
.hseMhz = SYSTEM_HSE_VALUE, // Only used for F4 and G4 targets
.hseMhz = SYSTEM_HSE_MHZ, // Only used for F4 and G4 targets
.configurationState = CONFIGURATION_STATE_DEFAULTS_BARE,
.enableStickArming = false,
);
Expand Down
2 changes: 2 additions & 0 deletions src/main/target/common_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@
// Should be set to zero for generic targets to ensure USB is working
// when unconfigured for targets with non-standard crystal.
// Can be set at runtime with with CLI parameter 'system_hse_value'.
#ifndef SYSTEM_HSE_VALUE
#define SYSTEM_HSE_VALUE 0
#endif

// Number of pins that needs pre-init
#ifdef USE_SPI
Expand Down

0 comments on commit 90c1364

Please sign in to comment.