Skip to content

Commit

Permalink
stm32f1: gd32f1_probe: Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer authored and dragonmux committed Jan 9, 2024
1 parent c6c4b92 commit 8118b98
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/target/stm32f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,25 +146,25 @@ bool gd32f1_probe(target_s *target)
size_t block_size = 0x400;

switch (device_id) {
case 0x414U: /* Gigadevice gd32f303 */
case 0x430U: /* XL-density */
case 0x414U: /* GD32F30x_HD, High density */
case 0x430U: /* GD32F30x_XD, XL-density */
target->driver = "GD32F3";
block_size = 0x800;
break;
case 0x418U:
case 0x418U: /* Connectivity Line */
target->driver = "GD32F2";
block_size = 0x800;
break;
case 0x410U: /* Gigadevice gd32f103, gd32e230 */
case 0x410U: /* Medium density */
if ((target->cpuid & CORTEX_CPUID_PARTNO_MASK) == CORTEX_M23)
target->driver = "GD32E230";
target->driver = "GD32E230"; /* GD32E230, 64 KiB max in 1 KiB pages */
else if ((target->cpuid & CORTEX_CPUID_PARTNO_MASK) == CORTEX_M4) {
target->driver = "GD32F3";
block_size = 0x800;
} else
target->driver = "GD32F1";
target->driver = "GD32F1"; /* GD32F103, 1 KiB pages */
break;
case 0x444U: /* Gigadevice gd32e50x */
case 0x444U: /* GD32E50x_CL, 512 KiB max in 8 KiB pages */
target->driver = "GD32E5";
block_size = 0x2000;
break;
Expand Down

0 comments on commit 8118b98

Please sign in to comment.