cppcheck added
This commit is contained in:
parent
7cf36fe7c1
commit
f67dadf938
45
.cproject
45
.cproject
@ -224,6 +224,21 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
||||||
|
<storageModule moduleId="scannerConfiguration">
|
||||||
|
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
<scannerConfigBuildInfo instanceId="0.1571827594.174997613.1900689539">
|
||||||
|
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
</scannerConfigBuildInfo>
|
||||||
|
<scannerConfigBuildInfo instanceId="0.1571827594.174997613">
|
||||||
|
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
</scannerConfigBuildInfo>
|
||||||
|
<scannerConfigBuildInfo instanceId="0.1571827594">
|
||||||
|
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
</scannerConfigBuildInfo>
|
||||||
|
<scannerConfigBuildInfo instanceId="0.1571827594.174997613.1900689539.492450098">
|
||||||
|
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||||
|
</scannerConfigBuildInfo>
|
||||||
|
</storageModule>
|
||||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
|
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
|
||||||
<buildTargets>
|
<buildTargets>
|
||||||
<target name="msp430-ccrf example_radio_rx all" path="software/source/test" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="msp430-ccrf example_radio_rx all" path="software/source/test" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
@ -252,7 +267,6 @@
|
|||||||
</target>
|
</target>
|
||||||
<target name="all" path="software/source/test/firmware/kernel/list" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="all" path="software/source/test/firmware/kernel/list" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
|
||||||
<buildTarget>all</buildTarget>
|
<buildTarget>all</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>true</useDefaultCommand>
|
<useDefaultCommand>true</useDefaultCommand>
|
||||||
@ -260,7 +274,6 @@
|
|||||||
</target>
|
</target>
|
||||||
<target name="clean" path="software/source/test/firmware/kernel/list" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="clean" path="software/source/test/firmware/kernel/list" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
|
||||||
<buildTarget>clean</buildTarget>
|
<buildTarget>clean</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>true</useDefaultCommand>
|
<useDefaultCommand>true</useDefaultCommand>
|
||||||
@ -268,7 +281,6 @@
|
|||||||
</target>
|
</target>
|
||||||
<target name="all" path="software/test/firmware/kernel/list" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="all" path="software/test/firmware/kernel/list" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
|
||||||
<buildTarget>all</buildTarget>
|
<buildTarget>all</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>true</useDefaultCommand>
|
<useDefaultCommand>true</useDefaultCommand>
|
||||||
@ -276,7 +288,6 @@
|
|||||||
</target>
|
</target>
|
||||||
<target name="all" path="software/source/test/firmware/kernel/ringbuffer" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="all" path="software/source/test/firmware/kernel/ringbuffer" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
|
||||||
<buildTarget>all</buildTarget>
|
<buildTarget>all</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>true</useDefaultCommand>
|
<useDefaultCommand>true</useDefaultCommand>
|
||||||
@ -284,7 +295,6 @@
|
|||||||
</target>
|
</target>
|
||||||
<target name="clean" path="software/source/test/firmware/kernel/ringbuffer" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="clean" path="software/source/test/firmware/kernel/ringbuffer" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
|
||||||
<buildTarget>clean</buildTarget>
|
<buildTarget>clean</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>true</useDefaultCommand>
|
<useDefaultCommand>true</useDefaultCommand>
|
||||||
@ -292,7 +302,6 @@
|
|||||||
</target>
|
</target>
|
||||||
<target name="distclean" path="source" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="distclean" path="source" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
<buildArguments/>
|
|
||||||
<buildTarget>distclean</buildTarget>
|
<buildTarget>distclean</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>false</useDefaultCommand>
|
<useDefaultCommand>false</useDefaultCommand>
|
||||||
@ -338,8 +347,17 @@
|
|||||||
<useDefaultCommand>false</useDefaultCommand>
|
<useDefaultCommand>false</useDefaultCommand>
|
||||||
<runAllBuilders>true</runAllBuilders>
|
<runAllBuilders>true</runAllBuilders>
|
||||||
</target>
|
</target>
|
||||||
|
<target name="test check" path="source" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
|
<buildCommand>make</buildCommand>
|
||||||
|
<buildArguments> APP=test BOARD=stm32f4-discovery DEBUG=y</buildArguments>
|
||||||
|
<buildTarget>check</buildTarget>
|
||||||
|
<stopOnError>true</stopOnError>
|
||||||
|
<useDefaultCommand>false</useDefaultCommand>
|
||||||
|
<runAllBuilders>true</runAllBuilders>
|
||||||
|
</target>
|
||||||
<target name="distclean" path="software/source" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
<target name="distclean" path="software/source" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
|
||||||
<buildCommand>make</buildCommand>
|
<buildCommand>make</buildCommand>
|
||||||
|
<buildArguments/>
|
||||||
<buildTarget>distclean</buildTarget>
|
<buildTarget>distclean</buildTarget>
|
||||||
<stopOnError>true</stopOnError>
|
<stopOnError>true</stopOnError>
|
||||||
<useDefaultCommand>false</useDefaultCommand>
|
<useDefaultCommand>false</useDefaultCommand>
|
||||||
@ -387,19 +405,4 @@
|
|||||||
</target>
|
</target>
|
||||||
</buildTargets>
|
</buildTargets>
|
||||||
</storageModule>
|
</storageModule>
|
||||||
<storageModule moduleId="scannerConfiguration">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
<scannerConfigBuildInfo instanceId="0.1571827594.174997613.1900689539">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
<scannerConfigBuildInfo instanceId="0.1571827594.174997613">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
<scannerConfigBuildInfo instanceId="0.1571827594">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
<scannerConfigBuildInfo instanceId="0.1571827594.174997613.1900689539.492450098">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
</storageModule>
|
|
||||||
</cproject>
|
</cproject>
|
||||||
|
@ -12,6 +12,7 @@ SIZEFILE = $(SIZE_DIR)/$(APP)$(SIZE_EXT)
|
|||||||
INCLUDES += $(SRC_DIR)
|
INCLUDES += $(SRC_DIR)
|
||||||
|
|
||||||
SUB_FOLDER :=
|
SUB_FOLDER :=
|
||||||
|
CHECK_FOLDER :=
|
||||||
SOURCES := $(wildcard $(SRC_DIR)/*.c)
|
SOURCES := $(wildcard $(SRC_DIR)/*.c)
|
||||||
ASM_SOURCES := $(wildcard $(SRC_DIR)/*.s)
|
ASM_SOURCES := $(wildcard $(SRC_DIR)/*.s)
|
||||||
|
|
||||||
@ -24,10 +25,15 @@ include application/application.mk
|
|||||||
include firmware/firmware.mk
|
include firmware/firmware.mk
|
||||||
|
|
||||||
SOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c))
|
SOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c))
|
||||||
|
CHECKSOURCES += $(foreach folder, $(CHECK_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.c))
|
||||||
ASMSOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.s))
|
ASMSOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(SRC_DIR)/$(folder)/*.s))
|
||||||
|
|
||||||
all: $(MAINFILE)
|
all: $(MAINFILE)
|
||||||
|
|
||||||
|
check:
|
||||||
|
$(CPPCHECK) $(CPPCHECK_FLAGS) $(CHECKSOURCES)
|
||||||
|
|
||||||
|
|
||||||
$(MAINFILE): $(OBJECTS) $(ASM_OBJECTS)
|
$(MAINFILE): $(OBJECTS) $(ASM_OBJECTS)
|
||||||
@$(MKDIR) $(EXE_DIR)
|
@$(MKDIR) $(EXE_DIR)
|
||||||
@$(MKDIR) $(MAP_DIR)
|
@$(MKDIR) $(MAP_DIR)
|
||||||
@ -45,7 +51,6 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
|
|||||||
@$(MKDIR) $(OBJ_DIR)
|
@$(MKDIR) $(OBJ_DIR)
|
||||||
@$(foreach folder, $(SUB_FOLDER), $(shell mkdir -p $(OBJ_DIR)/$(folder)))
|
@$(foreach folder, $(SUB_FOLDER), $(shell mkdir -p $(OBJ_DIR)/$(folder)))
|
||||||
$(call makedep,$<,$@,$(subst .o,.d,$@))
|
$(call makedep,$<,$@,$(subst .o,.d,$@))
|
||||||
$(CPPCHECK) $(CPPCHECK_FLAGS) $<
|
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.s
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.s
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += application/example_semaphore
|
||||||
|
SUB_FOLDER += application/example_semaphore
|
||||||
INCLUDES += application/example_semaphore
|
INCLUDES += application/example_semaphore
|
||||||
DOC_SRC += application/example_semaphore
|
DOC_SRC += application/example_semaphore
|
||||||
SUB_FOLDER += application/example_semaphore
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += application/test
|
||||||
|
SUB_FOLDER += application/test
|
||||||
INCLUDES += application/test
|
INCLUDES += application/test
|
||||||
DOC_SRC += application/test
|
DOC_SRC += application/test
|
||||||
SUB_FOLDER += application/test
|
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
||||||
SUB_FOLDER += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
SUB_FOLDER += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
||||||
INCLUDES += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
INCLUDES += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
||||||
DOC_SRC += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
DOC_SRC += firmware/arch/stm32f4xx/board/stm32f4-discovery
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/arch/stm32f4xx/driver/gpio
|
||||||
SUB_FOLDER += firmware/arch/stm32f4xx/driver/gpio
|
SUB_FOLDER += firmware/arch/stm32f4xx/driver/gpio
|
||||||
INCLUDES += firmware/arch/stm32f4xx/driver/gpio
|
INCLUDES += firmware/arch/stm32f4xx/driver/gpio
|
||||||
DOC_SRC += firmware/arch/stm32f4xx/driver/gpio
|
DOC_SRC += firmware/arch/stm32f4xx/driver/gpio
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/arch/stm32f4xx/driver/timer
|
||||||
SUB_FOLDER += firmware/arch/stm32f4xx/driver/timer
|
SUB_FOLDER += firmware/arch/stm32f4xx/driver/timer
|
||||||
INCLUDES += firmware/arch/stm32f4xx/driver/timer
|
INCLUDES += firmware/arch/stm32f4xx/driver/timer
|
||||||
DOC_SRC += firmware/arch/stm32f4xx/driver/timer
|
DOC_SRC += firmware/arch/stm32f4xx/driver/timer
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/arch/stm32f4xx/driver/usb_vport
|
||||||
SUB_FOLDER += firmware/arch/stm32f4xx/driver/usb_vport
|
SUB_FOLDER += firmware/arch/stm32f4xx/driver/usb_vport
|
||||||
INCLUDES += firmware/arch/stm32f4xx/driver/usb_vport
|
INCLUDES += firmware/arch/stm32f4xx/driver/usb_vport
|
||||||
DOC_SRC += firmware/arch/stm32f4xx/driver/usb_vport
|
DOC_SRC += firmware/arch/stm32f4xx/driver/usb_vport
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/arch/stm32f4xx
|
||||||
SUB_FOLDER += firmware/arch/stm32f4xx
|
SUB_FOLDER += firmware/arch/stm32f4xx
|
||||||
INCLUDES += firmware/arch/stm32f4xx
|
INCLUDES += firmware/arch/stm32f4xx
|
||||||
DOC_SRC += firmware/arch/stm32f4xx
|
DOC_SRC += firmware/arch/stm32f4xx
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
#undef errno
|
#undef errno
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
|
||||||
|
/* cppcheck-suppress unusedFunction */
|
||||||
int _kill(int pid, int sig)
|
int _kill(int pid, int sig)
|
||||||
{
|
{
|
||||||
pid = pid; sig = sig; /* avoid warnings */
|
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/kernel/driver
|
||||||
SUB_FOLDER += firmware/kernel/driver
|
SUB_FOLDER += firmware/kernel/driver
|
||||||
INCLUDES += firmware/kernel/driver
|
INCLUDES += firmware/kernel/driver
|
||||||
DOC_SRC += firmware/kernel/driver
|
DOC_SRC += firmware/kernel/driver
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
CHECK_FOLDER += firmware/kernel
|
||||||
SUB_FOLDER += firmware/kernel
|
SUB_FOLDER += firmware/kernel
|
||||||
INCLUDES += firmware/kernel
|
INCLUDES += firmware/kernel
|
||||||
DOC_SRC += firmware/kernel
|
DOC_SRC += firmware/kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user