Skip to content

Commit

Permalink
stm32f1: Implemented control over when the GigaDevice parts support i…
Browse files Browse the repository at this point in the history
…s built
  • Loading branch information
dragonmux committed Oct 18, 2024
1 parent 4b16553 commit 60cb733
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/target/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ target_stm = declare_dependency(
dependencies: [target_cortexm, target_stm_common, target_stm32f1],
)

target_gd32 = declare_dependency(
dependencies: target_stm32f1,
compile_args: ['-DCONFIG_GD32=1'],
)

target_mm32 = declare_dependency(
dependencies: target_stm32f1,
compile_args: ['-DCONFIG_MM32=1'],
Expand Down Expand Up @@ -367,6 +372,7 @@ libbmd_target_deps = [
target_ch32,
target_ch579,
target_efm,
target_gd32,
target_hc32,
target_lpc,
target_mm32,
Expand Down
2 changes: 2 additions & 0 deletions src/target/stm32f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ static bool stm32f1_configure_dbgmcu(target_s *const target, const target_addr32
return true;
}

#ifdef CONFIG_GD32
/* Identify GD32F1, GD32F2, GD32F3, GD32E230 and GD32E5 chips */
bool gd32f1_probe(target_s *target)
{
Expand Down Expand Up @@ -361,6 +362,7 @@ static void gd32vf1_detach(target_s *const target)
riscv_detach(target);
}
#endif
#endif

static bool at32f40_is_dual_bank(const uint16_t part_id)
{
Expand Down

0 comments on commit 60cb733

Please sign in to comment.