Quellcode durchsuchen

[bsp][tms320f28379d] Classify c28x into ti-dsp

xuzhuoyi vor 6 Jahren
Ursprung
Commit
6c081947b5

+ 2 - 1
bsp/tms320f28379d/.config

@@ -62,7 +62,8 @@ CONFIG_RT_USING_DEVICE=y
 CONFIG_RT_USING_CONSOLE=y
 CONFIG_RT_CONSOLEBUF_SIZE=128
 CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
-CONFIG_ARCH_C28X=y
+CONFIG_ARCH_TIDSP=y
+CONFIG_ARCH_TIDSP_C28X=y
 CONFIG_ARCH_CPU_STACK_GROWS_UPWARD=y
 
 #

+ 4 - 4
bsp/tms320f28379d/.project

@@ -26,14 +26,14 @@
 	</natures>
 	<linkedResources>
 		<link>
-			<name>C28X</name>
+			<name>Kernel</name>
 			<type>2</type>
-			<locationURI>PARENT-2-PROJECT_LOC/libcpu/c28x</locationURI>
+			<locationURI>PARENT-2-PROJECT_LOC/src</locationURI>
 		</link>
 		<link>
-			<name>Kernel</name>
+			<name>c28x</name>
 			<type>2</type>
-			<locationURI>PARENT-2-PROJECT_LOC/src</locationURI>
+			<locationURI>PARENT-2-PROJECT_LOC/libcpu/ti-dsp/c28x</locationURI>
 		</link>
 	</linkedResources>
 </projectDescription>

+ 2 - 4
bsp/tms320f28379d/.settings/org.eclipse.core.resources.prefs

@@ -1,10 +1,10 @@
 eclipse.preferences.version=1
-encoding//Debug/C28X/subdir_rules.mk=UTF-8
-encoding//Debug/C28X/subdir_vars.mk=UTF-8
 encoding//Debug/Kernel/subdir_rules.mk=UTF-8
 encoding//Debug/Kernel/subdir_vars.mk=UTF-8
 encoding//Debug/applications/subdir_rules.mk=UTF-8
 encoding//Debug/applications/subdir_vars.mk=UTF-8
+encoding//Debug/c28x/subdir_rules.mk=UTF-8
+encoding//Debug/c28x/subdir_vars.mk=UTF-8
 encoding//Debug/drivers/subdir_rules.mk=UTF-8
 encoding//Debug/drivers/subdir_vars.mk=UTF-8
 encoding//Debug/libraries/common/source/subdir_rules.mk=UTF-8
@@ -13,8 +13,6 @@ encoding//Debug/libraries/headers/cmd/subdir_rules.mk=UTF-8
 encoding//Debug/libraries/headers/cmd/subdir_vars.mk=UTF-8
 encoding//Debug/libraries/headers/source/subdir_rules.mk=UTF-8
 encoding//Debug/libraries/headers/source/subdir_vars.mk=UTF-8
-encoding//Debug/libraries/subdir_rules.mk=UTF-8
-encoding//Debug/libraries/subdir_vars.mk=UTF-8
 encoding//Debug/makefile=UTF-8
 encoding//Debug/objects.mk=UTF-8
 encoding//Debug/sources.mk=UTF-8

+ 1 - 1
bsp/tms320f28379d/Kconfig

@@ -20,7 +20,7 @@ config $PKGS_DIR
 
 config SOC_TMS320F28X
     bool
-    select ARCH_C28X
+    select ARCH_TIDSP_C28X
     default y
 
 source "$RTT_DIR/Kconfig"

+ 2 - 1
bsp/tms320f28379d/rtconfig.h

@@ -40,7 +40,8 @@
 #define RT_USING_CONSOLE
 #define RT_CONSOLEBUF_SIZE 128
 #define RT_CONSOLE_DEVICE_NAME "uart"
-#define ARCH_C28X
+#define ARCH_TIDSP
+#define ARCH_TIDSP_C28X
 #define ARCH_CPU_STACK_GROWS_UPWARD
 
 /* RT-Thread Components */

+ 5 - 1
libcpu/Kconfig

@@ -86,8 +86,12 @@ config ARCH_RISCV
 config ARCH_IA32
     bool
 
-config ARCH_C28X
+config ARCH_TIDSP
     bool
+
+config ARCH_TIDSP_C28X
+    bool
+    select ARCH_TIDSP
     select ARCH_CPU_STACK_GROWS_UPWARD
 
 config ARCH_HOST_SIMULATOR

+ 0 - 0
libcpu/c28x/context.s → libcpu/ti-dsp/c28x/context.s


+ 0 - 0
libcpu/c28x/cpuport.c → libcpu/ti-dsp/c28x/cpuport.c