diff options
| author | xuzhuoyi <[email protected]> | 2018-11-24 17:41:55 +0800 |
|---|---|---|
| committer | xuzhuoyi <[email protected]> | 2018-11-24 17:41:55 +0800 |
| commit | 6c081947b5c68819cc5ba9fd058e7bd29e9ca62a (patch) | |
| tree | d87dc94f35f1d0417306368864e9351c3b579342 | |
| parent | 17301e463cb282cf96ec6874779e7aff4ec01920 (diff) | |
[bsp][tms320f28379d] Classify c28x into ti-dsp
| -rw-r--r-- | bsp/tms320f28379d/.config | 3 | ||||
| -rw-r--r-- | bsp/tms320f28379d/.project | 8 | ||||
| -rw-r--r-- | bsp/tms320f28379d/.settings/org.eclipse.core.resources.prefs | 6 | ||||
| -rw-r--r-- | bsp/tms320f28379d/Kconfig | 2 | ||||
| -rw-r--r-- | bsp/tms320f28379d/rtconfig.h | 3 | ||||
| -rw-r--r-- | libcpu/Kconfig | 6 | ||||
| -rw-r--r-- | libcpu/ti-dsp/c28x/context.s (renamed from libcpu/c28x/context.s) | 0 | ||||
| -rw-r--r-- | libcpu/ti-dsp/c28x/cpuport.c (renamed from libcpu/c28x/cpuport.c) | 0 |
8 files changed, 16 insertions, 12 deletions
diff --git a/bsp/tms320f28379d/.config b/bsp/tms320f28379d/.config index 5337bc7be1..ddc9fd302e 100644 --- a/bsp/tms320f28379d/.config +++ b/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 # diff --git a/bsp/tms320f28379d/.project b/bsp/tms320f28379d/.project index 6d19540441..bab120e2b9 100644 --- a/bsp/tms320f28379d/.project +++ b/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> diff --git a/bsp/tms320f28379d/.settings/org.eclipse.core.resources.prefs b/bsp/tms320f28379d/.settings/org.eclipse.core.resources.prefs index f5eae4d90c..288ca292c6 100644 --- a/bsp/tms320f28379d/.settings/org.eclipse.core.resources.prefs +++ b/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 diff --git a/bsp/tms320f28379d/Kconfig b/bsp/tms320f28379d/Kconfig index 38b1a5b179..de11cb4d79 100644 --- a/bsp/tms320f28379d/Kconfig +++ b/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" diff --git a/bsp/tms320f28379d/rtconfig.h b/bsp/tms320f28379d/rtconfig.h index f0c62c21d2..f74783569c 100644 --- a/bsp/tms320f28379d/rtconfig.h +++ b/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 */ diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 72e6470b6a..22b4a6336a 100644 --- a/libcpu/Kconfig +++ b/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 diff --git a/libcpu/c28x/context.s b/libcpu/ti-dsp/c28x/context.s index 019b5def13..019b5def13 100644 --- a/libcpu/c28x/context.s +++ b/libcpu/ti-dsp/c28x/context.s diff --git a/libcpu/c28x/cpuport.c b/libcpu/ti-dsp/c28x/cpuport.c index 8885f647a9..8885f647a9 100644 --- a/libcpu/c28x/cpuport.c +++ b/libcpu/ti-dsp/c28x/cpuport.c |
