Skip to content

Commit 4b03562

Browse files
committed
1. Modify the file indention
2. Modify the license head
1 parent c0947d4 commit 4b03562

File tree

11 files changed

+1043
-1053
lines changed

11 files changed

+1043
-1053
lines changed

bsp/mini2440/applications/main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
int main(void)
1313
{
14-
rt_device_t device;
14+
rt_device_t device;
1515

16-
printf("hello rt-thread\n");
16+
printf("hello rt-thread\n");
1717

1818
#ifdef PKG_USING_GUIENGINE
19-
device = rt_device_find("lcd");
20-
if (device)
21-
{
22-
rtgui_graphic_set_device(device);
23-
}
19+
device = rt_device_find("lcd");
20+
if (device)
21+
{
22+
rtgui_graphic_set_device(device);
23+
}
2424
#endif
2525

2626

bsp/mini2440/applications/mnt.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66

77
int mnt_init(void)
88
{
9-
rt_uint32_t tryCnt = 5;
10-
rt_device_t dev;
9+
rt_uint32_t tryCnt = 5;
10+
rt_device_t dev;
1111

12-
while(tryCnt--)
13-
{
14-
dev = rt_device_find("sd0");
15-
if(dev != RT_NULL)
16-
{
17-
break;
18-
}
19-
rt_thread_mdelay(500);
20-
}
12+
while(tryCnt--)
13+
{
14+
dev = rt_device_find("sd0");
15+
if(dev != RT_NULL)
16+
{
17+
break;
18+
}
19+
rt_thread_mdelay(500);
20+
}
2121

22-
if(dfs_mount("sd0", "/", "elm", 0, 0) == 0)
23-
{
24-
rt_kprintf("File System initialized!\n");
25-
}
26-
else
27-
{
28-
rt_kprintf("File System initialzation failed!\n");
29-
}
22+
if(dfs_mount("sd0", "/", "elm", 0, 0) == 0)
23+
{
24+
rt_kprintf("File System initialized!\n");
25+
}
26+
else
27+
{
28+
rt_kprintf("File System initialzation failed!\n");
29+
}
3030

31-
return RT_EOK;
31+
return RT_EOK;
3232
}
3333
INIT_ENV_EXPORT(mnt_init);
3434
#endif

bsp/mini2440/drivers/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if GetDepend('RT_MINI2440_LCD_X35'):
2727
src += ['lcd_x35.c']
2828

2929
if GetDepend('PKG_USING_GUIENGINE'):
30-
src += ['touch.c']
30+
src += ['touch.c']
3131

3232
if GetDepend('RT_USING_SDIO'):
3333
src += ['s3cmci.c']

0 commit comments

Comments
 (0)