diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-09-11 11:46:21 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-09-11 11:46:21 +0200 |
commit | 1e44cbf29d35ca020e0402f2a8289935abcb54c6 (patch) | |
tree | 889a00ec56482664f4a0a934cc37e70af24e1200 /nrf51.cmake | |
parent | d807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b (diff) | |
download | mcu.cmake-1e44cbf29d35ca020e0402f2a8289935abcb54c6.tar.gz mcu.cmake-1e44cbf29d35ca020e0402f2a8289935abcb54c6.tar.bz2 mcu.cmake-1e44cbf29d35ca020e0402f2a8289935abcb54c6.tar.xz mcu.cmake-1e44cbf29d35ca020e0402f2a8289935abcb54c6.zip |
o Almost working version, not quite. Probably not the right way to do stuff.
Diffstat (limited to 'nrf51.cmake')
-rw-r--r-- | nrf51.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nrf51.cmake b/nrf51.cmake index 4145f91..6746527 100644 --- a/nrf51.cmake +++ b/nrf51.cmake @@ -23,3 +23,5 @@ find_program(ARM_SIZE_TOOL arm-none-eabi-size ${TOOLCHAIN_DIR}/bin) set(CMAKE_C_COMPILER ${ARM_CC}) set(CMAKE_CXX_COMPILER ${ARM_CXX}) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) + +add_compile_options("-mcpu=cortex-m0" "-mthumb" "-mabi=aapcs" "--std=gnu99" "-Wall" "-mfloat-abi=soft") |