cthreads.extra
来自「tinyos-2.x.rar」· EXTRA 代码 · 共 26 行
EXTRA
26 行
# Extra threads Makefile target to enable thread support for tinyos
# Kevin Klues May 16th, 2008
#Get all the normal include directories for a threads build
$(call TOSMake_include,threads.extra)
PFLAGS += -DCTHREADS
#Include directories required specifically for cthreads builds
THREADS_CSYSTEM_DIR = $(TOS_THREADS_DIR)/csystem
CFLAGS += -I$(THREADS_CSYSTEM_DIR)
#Setup flag to pass to storage volume allocator to indicate threads are being used
VOLUME_ALLOCATOR_FLAGS = -t
#Set up extra c file to compile functions for thread manipulation
#Also define the top level nesC component as the TinyOSEntryPointC component
COMPONENT=$(THREADS_CSYSTEM_DIR)/TinyOSEntryPointC
TOSTHREAD_MAIN_PATH=$(shell pwd)/$(TOSTHREAD_MAIN)
ifdef TOSTHREAD_MAIN
ifndef MAKE_DYNTHREADS
ifneq ($(wildcard $(TOSTHREAD_MAIN_PATH)), )
CFLAGS += -DMAIN_APP=\"$(TOSTHREAD_MAIN_PATH)\"
endif
endif
endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?