mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
+5
-20
@@ -1,23 +1,8 @@
|
||||
Import('env')
|
||||
Import('RTT_ROOT')
|
||||
Import('projects')
|
||||
from building import *
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src_local = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [RTT_ROOT + '/include']
|
||||
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
# group definitions
|
||||
group = {}
|
||||
group['name'] = 'Kernel'
|
||||
group['src'] = File(src_local)
|
||||
group['CCFLAGS'] = ''
|
||||
group['CPPPATH'] = [RTT_ROOT + '/include']
|
||||
group['CPPDEFINES'] = ''
|
||||
group['LINKFLAGS'] = ''
|
||||
|
||||
# add group to project list
|
||||
projects.append(group)
|
||||
|
||||
env.Append(CPPPATH = group['CPPPATH'])
|
||||
obj = env.Object(group['src'])
|
||||
|
||||
Return('obj')
|
||||
Return('group')
|
||||
|
||||
@@ -453,7 +453,11 @@ rt_err_t rt_sem_control(rt_sem_t sem, rt_uint8_t cmd, void* arg)
|
||||
RT_ASSERT(sem != RT_NULL);
|
||||
|
||||
if (cmd == RT_IPC_CMD_RESET)
|
||||
{
|
||||
{
|
||||
rt_uint32_t value;
|
||||
|
||||
/* get value */
|
||||
value = (rt_uint32_t)arg;
|
||||
/* disable interrupt */
|
||||
level = rt_hw_interrupt_disable();
|
||||
|
||||
@@ -461,7 +465,7 @@ rt_err_t rt_sem_control(rt_sem_t sem, rt_uint8_t cmd, void* arg)
|
||||
rt_ipc_object_resume_all(&sem->parent);
|
||||
|
||||
/* set new value */
|
||||
sem->value = (rt_uint16_t)arg;
|
||||
sem->value = (rt_uint16_t)value;
|
||||
|
||||
/* enable interrupt */
|
||||
rt_hw_interrupt_enable(level);
|
||||
|
||||
Reference in New Issue
Block a user