Skip to content

Commit 066ec6d

Browse files
committed
[BSP] remove display_controller.h/c from ls1cdev bsp
1 parent 402732e commit 066ec6d

File tree

7 files changed

+11
-341
lines changed

7 files changed

+11
-341
lines changed

bsp/ls1cdev/applications/application.c

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,18 @@
99
*
1010
* Change Logs:
1111
* Date Author Notes
12-
* 2010-06-25 Bernard first version
13-
* 2011-08-08 lgnq modified for Loongson LS1B
14-
* 2015-07-06 chinesebear modified for Loongson LS1C
12+
* 2010-06-25 Bernard first version
13+
* 2011-08-08 lgnq modified for Loongson LS1B
14+
* 2015-07-06 chinesebear modified for Loongson LS1C
1515
*/
1616

1717
#include <rtthread.h>
18-
#include <ls1c.h>
19-
20-
#ifdef RT_USING_COMPONENTS_INIT
2118
#include <components.h>
22-
#endif
23-
24-
#ifdef RT_USING_RTGUI
25-
#include <rtgui/rtgui.h>
26-
extern void rt_hw_dc_init(void);
27-
#endif
2819

2920
void rt_init_thread_entry(void *parameter)
3021
{
31-
#ifdef RT_USING_RTGUI
32-
{
33-
rt_device_t dc;
34-
35-
/* init Display Controller */
36-
rt_hw_dc_init();
37-
38-
/* find Display Controller device */
39-
dc = rt_device_find("dc");
40-
41-
/* set Display Controller device as rtgui graphic driver */
42-
rtgui_graphic_set_device(dc);
43-
}
44-
#endif
45-
46-
#ifdef RT_USING_COMPONENTS_INIT
4722
/* initialization RT-Thread Components */
4823
rt_components_init();
49-
#endif
5024
}
5125

5226
int rt_application_init(void)
@@ -56,11 +30,9 @@ int rt_application_init(void)
5630
/* create initialization thread */
5731
tid = rt_thread_create("init",
5832
rt_init_thread_entry, RT_NULL,
59-
4096, 8, 20);
33+
4096, RT_THREAD_PRIORITY_MAX/3, 20);
6034
if (tid != RT_NULL)
6135
rt_thread_startup(tid);
6236

6337
return 0;
6438
}
65-
66-

bsp/ls1cdev/applications/startup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ void rtthread_startup(void)
7777
/* init application */
7878
rt_application_init();
7979

80-
/* init finsh*/
81-
#ifdef RT_USING_FINSH
82-
finsh_system_init();
83-
finsh_set_device("uart2");
84-
#endif
85-
8680
/* start scheduler */
8781
rt_system_scheduler_start();
8882

bsp/ls1cdev/drivers/SConscript

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ from building import *
33
cwd = GetCurrentDir()
44
src = Glob('*.c')
55

6-
# remove no need file.
7-
if GetDepend('RT_USING_RTGUI') == False:
8-
SrcRemove(src, 'display_controller.c')
9-
106
CPPPATH = [cwd]
117

128
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

bsp/ls1cdev/drivers/board.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,3 @@ void rt_hw_console_output(const char *ptr)
110110
}
111111

112112
/*@}*/
113-
114-

bsp/ls1cdev/drivers/display_controller.c

Lines changed: 0 additions & 234 deletions
This file was deleted.

bsp/ls1cdev/drivers/display_controller.h

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)