📄 cthreads.extra
字号:
# 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -