diff --git a/ch32v003fun/ch32v003fun.mk b/ch32v003fun/ch32v003fun.mk
index c1334c2e205f033d9718c251eeef3ce324ea98d5..278b7361d74b728961d7fe4678ce8931aca58ee3 100644
--- a/ch32v003fun/ch32v003fun.mk
+++ b/ch32v003fun/ch32v003fun.mk
@@ -13,7 +13,6 @@ CFLAGS+= \
 	-I$(CH32V003FUN)/../extralibs \
 	-I$(CH32V003FUN) \
 	-nostdlib \
-	-DCH32V003 \
 	-I. -Wall $(EXTRA_CFLAGS)
 
 LINKER_SCRIPT?=$(CH32V003FUN)/ch32v003fun.ld
diff --git a/ch32v003fun/ch32v10xfun.mk b/ch32v003fun/ch32v10xfun.mk
index 35c51e43b11eaa91044994224a627f1399c3855d..afe095f089868f9aed856d3b1b4d8ad34401dadf 100644
--- a/ch32v003fun/ch32v10xfun.mk
+++ b/ch32v003fun/ch32v10xfun.mk
@@ -16,7 +16,6 @@ CFLAGS+= \
 	-I/usr/include/newlib \
 	-I$(CH32V003FUN) \
 	-nostdlib \
-    -DCH32V10x \
 	-I. -Wall
 
 LDFLAGS+=-T $(CH32V003FUN)/ch32v10xfun.ld -Wl,--gc-sections -L$(CH32V003FUN)/../misc -lgcc
diff --git a/ch32v003fun/ch32v20xfun.mk b/ch32v003fun/ch32v20xfun.mk
index c011e5bf041aa21ca3b06ea4c1be79fec67a9671..e4cb46dce090db27ad545818f181b30600e6a93c 100644
--- a/ch32v003fun/ch32v20xfun.mk
+++ b/ch32v003fun/ch32v20xfun.mk
@@ -16,7 +16,6 @@ CFLAGS+= \
 	-I/usr/include/newlib \
 	-I$(CH32V003FUN) \
 	-nostdlib \
-    -DCH32V20x \
 	-I. -Wall
 
 LDFLAGS+=-T $(CH32V003FUN)/ch32v20xfun.ld -Wl,--gc-sections -L$(CH32V003FUN)/../misc -lgcc
diff --git a/ch32v003fun/ch32v30xfun.mk b/ch32v003fun/ch32v30xfun.mk
index ed56f1b2c440909544befb2603f2328b3d02e9c3..5c1edfc33665537c332157d740f9077783442f9b 100644
--- a/ch32v003fun/ch32v30xfun.mk
+++ b/ch32v003fun/ch32v30xfun.mk
@@ -16,7 +16,6 @@ CFLAGS+= \
 	-I/usr/include/newlib \
 	-I$(CH32V003FUN) \
 	-nostdlib \
-    -DCH32V30x \
 	-I. -Wall
 
 LDFLAGS+=-T $(CH32V003FUN)/ch32v30xfun.ld -Wl,--gc-sections -L$(CH32V003FUN)/../misc -lgcc
diff --git a/examples_v10x/blink/funconfig.h b/examples_v10x/blink/funconfig.h
new file mode 100644
index 0000000000000000000000000000000000000000..89212b564e21e0572462652fa5af5f040111dd35
--- /dev/null
+++ b/examples_v10x/blink/funconfig.h
@@ -0,0 +1,7 @@
+#ifndef _FUNCONFIG_H
+#define _FUNCONFIG_H
+
+#define CH32V10x           1
+
+#endif
+
diff --git a/examples_v20x/blink/funconfig.h b/examples_v20x/blink/funconfig.h
new file mode 100644
index 0000000000000000000000000000000000000000..882bc02dbda74357280035f74d271e82e976f19d
--- /dev/null
+++ b/examples_v20x/blink/funconfig.h
@@ -0,0 +1,7 @@
+#ifndef _FUNCONFIG_H
+#define _FUNCONFIG_H
+
+#define CH32V20x           1
+
+#endif
+
diff --git a/examples_v30x/blink/funconfig.h b/examples_v30x/blink/funconfig.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3d634ab068c29936feb5988b3c0438a51c721db
--- /dev/null
+++ b/examples_v30x/blink/funconfig.h
@@ -0,0 +1,7 @@
+#ifndef _FUNCONFIG_H
+#define _FUNCONFIG_H
+
+#define CH32V30x           1
+
+#endif
+