forked from xuos/xiuos
Ubiquitous/RT-Thread_Fusion_XiUOS/aiit_board/xidatong-riscv64/applications/:Update the main function and add the dependency macro of lcd_test.c in SConscript
This commit is contained in:
parent
6a9b9fba1a
commit
a70a31d282
|
@ -1,9 +1,18 @@
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = [
|
||||||
|
'main.c'
|
||||||
|
]
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
|
## 设置 lcd_test.c 的依赖宏
|
||||||
|
if GetDepend('BSP_USING_LCD'):
|
||||||
|
src += ['lcd_test.c']
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define LED_G 12
|
//#define LED_G 12
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
rt_pin_mode(LED_G, PIN_MODE_OUTPUT);
|
//rt_pin_mode(LED_G, PIN_MODE_OUTPUT);
|
||||||
rt_thread_mdelay(100);
|
rt_thread_mdelay(100);
|
||||||
char info1[25] ={0};
|
char info1[25] ={0};
|
||||||
char info2[25] ={0};
|
char info2[25] ={0};
|
||||||
|
@ -39,10 +39,10 @@ int main(void)
|
||||||
#endif
|
#endif
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED_G, PIN_HIGH);
|
//rt_pin_write(LED_G, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
|
||||||
rt_pin_write(LED_G, PIN_LOW);
|
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
|
//rt_pin_write(LED_G, PIN_LOW);
|
||||||
|
//rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue