CAN Packet fix, CAN benchmark
This commit is contained in:
@@ -25,7 +25,7 @@ set(CMAKE_C_STANDARD 11)
|
||||
|
||||
#Uncomment for software floating point
|
||||
#add_compile_options(-mfloat-abi=soft)
|
||||
#
|
||||
|
||||
#add_compile_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork)
|
||||
#add_compile_options(-ffunction-sections -fdata-sections -fno-common -fmessage-length=0)
|
||||
|
||||
@@ -53,6 +53,7 @@ else ()
|
||||
add_compile_options(-Og -g)
|
||||
endif ()
|
||||
|
||||
#include_directories()
|
||||
include_directories(
|
||||
Core/Inc
|
||||
|
||||
@@ -71,12 +72,14 @@ include_directories(
|
||||
USB_DEVICE/Target
|
||||
)
|
||||
|
||||
#add_definitions()
|
||||
add_definitions(-DDEBUG -DUSE_HAL_DRIVER -DSTM32F107xC)
|
||||
|
||||
|
||||
file(GLOB_RECURSE SOURCES "startup/*.*" "USB_DEVICE/*.*" "Middlewares/*.*" "Drivers/*.*" "Core/*.*")
|
||||
|
||||
#set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/)
|
||||
#
|
||||
|
||||
#add_link_options(-Wl,-gc-sections,--print-memory-usage,-Map=${PROJECT_BINARY_DIR}/${PROJECT_NAME}.map)
|
||||
#add_link_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork)
|
||||
#add_link_options(-T ${LINKER_SCRIPT})
|
||||
|
||||
Reference in New Issue
Block a user