########################
# Cortex-M4 Hard Float #
########################
if(ARM_CORTEX_M4_TOOLCHAIN_INCLUDED)
    return()
endif()

if(NOT CPU_NAME)
    set(CPU_NAME cortex-m4)
endif()

set(CPU_FLAGS "-mcpu=cortex-m4 -mthumb --specs=nosys.specs --specs=nano.specs ${CPU_FLAGS}")
set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16 ${VFP_FLAGS}")

# Include arm-none-eabi base file
include(${CMAKE_CURRENT_LIST_DIR}/arm-none-eabi-gcc.cmake)

set(ARM_CORTEX_M4_TOOLCHAIN_INCLUDED true)

