Skip to content

Commit

Permalink
hc32l110: Simplified the target->driver logic a little
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux authored and esden committed Jul 17, 2023
1 parent e461521 commit c4b988b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/target/hc32l110.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,16 @@ bool hc32l110_probe(target_s *target)

switch (flash_size) {
case 16384:
target->driver = "HC32L110A";
target_add_ram(target, 0x2000000, 2048);
break;
case 32768:
target->driver = "HC32L110B";
target_add_ram(target, 0x2000000, 4096);
break;
default:
return false;
}

target->driver = "HC32L110";
target->enter_flash_mode = hc32l110_enter_flash_mode;
target->mass_erase = hc32l110_mass_erase;

Expand Down

0 comments on commit c4b988b

Please sign in to comment.