summaryrefslogtreecommitdiff
path: root/bsp/ti-tms320c6678/applications
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/ti-tms320c6678/applications')
-rw-r--r--bsp/ti-tms320c6678/applications/board.c37
-rw-r--r--bsp/ti-tms320c6678/applications/board.h20
-rw-r--r--bsp/ti-tms320c6678/applications/main.c79
3 files changed, 0 insertions, 136 deletions
diff --git a/bsp/ti-tms320c6678/applications/board.c b/bsp/ti-tms320c6678/applications/board.c
deleted file mode 100644
index bfa4057c1f..0000000000
--- a/bsp/ti-tms320c6678/applications/board.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2021, Shenzhen Academy of Aerospace Technology
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2021-11-16 Dystopia the first version
- */
-
-#include "board.h"
-#include "interrupt.h"
-#include "drv_timer.h"
-#include "common.h"
-
-#include <rtthread.h>
-
-/**
- * This function will initial board.
- */
-void rt_hw_board_init(void)
-{
- // initial CPU core
- keystone_cpu_init();
-
- // initial interrupt controller
- rt_hw_interrupt_init();
-
- // initial system timer
- rt_hw_system_timer_init();
-
- /* initialize memory system */
- rt_kprintf("heap: 0x%08x - 0x%08x\n", RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
- rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
-
- rt_hw_system_timer_start();
-}
diff --git a/bsp/ti-tms320c6678/applications/board.h b/bsp/ti-tms320c6678/applications/board.h
deleted file mode 100644
index 88e6e94e6e..0000000000
--- a/bsp/ti-tms320c6678/applications/board.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2021, Shenzhen Academy of Aerospace Technology
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2021-11-16 Dystopia the first version
- */
-
-#ifndef __BOARD_H__
-#define __BOARD_H__
-
-#define RT_HW_HEAP_BEGIN (void*)0x0C000000
-#define RT_HW_HEAP_END (void*)0x0C100000
-
-void rt_hw_board_init(void);
-
-#endif /* __BOARD_H__ */
-
diff --git a/bsp/ti-tms320c6678/applications/main.c b/bsp/ti-tms320c6678/applications/main.c
deleted file mode 100644
index aab374fa63..0000000000
--- a/bsp/ti-tms320c6678/applications/main.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (c) 2021, Shenzhen Academy of Aerospace Technology
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2021-11-16 Dystopia the first version
- */
-
-#include <rthw.h>
-#include <rtthread.h>
-
-#include "board.h"
-
-void rt_init_thread_entry(void *parameter)
-{
- rt_kprintf("hello rt-thread\n");
-}
-
-int rt_application_init(void)
-{
- rt_thread_t tid;
-
- tid = rt_thread_create("init", rt_init_thread_entry, RT_NULL, 4096, 3, 200);
- if (tid != RT_NULL)
- {
- rt_thread_startup(tid);
- } else {
- return -1;
- }
-
- return 0;
-}
-
-/**
- * This function will startup RT-Thread RTOS.
- */
-void rtthread_startup(void)
-{
- /* disable interrupt first */
- rt_hw_interrupt_disable();
-
- /* init board */
- rt_hw_board_init();
-
- /* show version */
- rt_show_version();
-
- /* init timer system */
- rt_system_timer_init();
-
- /* init scheduler system */
- rt_system_scheduler_init();
-
- /* init application */
- rt_application_init();
-
- /* init timer thread */
- rt_system_timer_thread_init();
-
- /* init idle thread */
- rt_thread_idle_init();
-
- /* start scheduler */
- rt_system_scheduler_start();
-
- /* never reach here */
- return ;
-}
-
-void main(void)
-{
- /* startup RT-Thread RTOS */
- rtthread_startup();
-
- for(;;){}
-}
-