<commit_before>cmake_minimum_required(VERSION 2.8.8)

include(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(arm-none-eabi-gcc GNU)

set(CMAKE_SYSTEM_NAME Generic)
project(AAU-Racing C ASM)

# Following flags helps with dead code elimination.
# More info can found at http://stackoverflow.com/a/10809541
set(gc_flags "-ffunction-sections -fdata-sections -Wl,--gc-sections")
set(mcu_flags "-mcpu=cortex-m4 -mtune=cortex-m4 -mthumb -mlittle-endian -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb-interwork")
set(linker_flags "-Wl,-gc-sections -Wl,-LTO -nostartfiles -Wl,-Map=./result.map")
set(WARNINGS "-Wall -Wextra")
set(CFLAGS "-O0 -g -LTO -std=c11 ${WARNINGS} ${gc_flags} ${mcu_flags} ${linker_flags}")
set(CMAKE_C_FLAGS "${CFLAGS} ${CMAKE_C_FLAGS}")
add_definitions(-DHSE_VALUE=24000000 -DSTM32F407xx)

include_directories(
	# Root
	${CMAKE_SOURCE_DIR}

	# CMSIS
	libs/CMSIS/Include<commit_msg>cmake: added -DUSE_USB_FS to list of global defines<commit_after>cmake_minimum_required(VERSION 2.8.8)

include(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(arm-none-eabi-gcc GNU)

set(CMAKE_SYSTEM_NAME Generic)
project(AAU-Racing C ASM)

# Following flags helps with dead code elimination.
# More info can found at http://stackoverflow.com/a/10809541
set(gc_flags "-ffunction-sections -fdata-sections -Wl,--gc-sections")
set(mcu_flags "-mcpu=cortex-m4 -mtune=cortex-m4 -mthumb -mlittle-endian -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb-interwork")
set(linker_flags "-Wl,-gc-sections -Wl,-LTO -nostartfiles -Wl,-Map=./result.map")
set(WARNINGS "-Wall -Wextra")
set(CFLAGS "-O0 -g -LTO -std=c11 ${WARNINGS} ${gc_flags} ${mcu_flags} ${linker_flags}")
set(CMAKE_C_FLAGS "${CFLAGS} ${CMAKE_C_FLAGS}")
add_definitions(-DHSE_VALUE=24000000 -DSTM32F407xx -DUSE_USB_FS)

include_directories(
	# Root
	${CMAKE_SOURCE_DIR}

	# CMSIS
	libs/CMSIS/Include
{'fraction_non_alphanumeric': 0.14598141060688902, 'fraction_numerical': 0.034991798797156914, 'mean_word_length': 5.802973977695167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '175332', 'n_tokens_mistral': 795, 'n_tokens_neox': 734, 'n_words': 131}