From 8118b987e545906362ebac73abb389bdc15ea98f Mon Sep 17 00:00:00 2001 From: ALTracer Date: Tue, 2 Jan 2024 22:15:28 +0300 Subject: [PATCH] stm32f1: gd32f1_probe: Update comments --- src/target/stm32f1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/target/stm32f1.c b/src/target/stm32f1.c index 1dca3098ccc..42f0ec341c0 100644 --- a/src/target/stm32f1.c +++ b/src/target/stm32f1.c @@ -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;