diff --git a/CMakeLists.txt b/CMakeLists.txt index aa2f363..339039d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,12 +3,16 @@ include(CMakeForceCompiler) SET(CMAKE_SYSTEM_NAME "Generic") SET(CMAKE_SYSTEM_VERSION 1) -set(TOOLCHAIN_DIR "D:/Programy/GNU Tools ARM Embedded/5.4 2016q3/bin") - -CMAKE_FORCE_C_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-gcc.exe GNU) -CMAKE_FORCE_CXX_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-g++.exe GNU) - +if(UNIX) + set(TOOLCHAIN_DIR /opt/gcc-arm-none-eabi-5_4-2016q3/bin/) + CMAKE_FORCE_C_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-gcc GNU) + CMAKE_FORCE_CXX_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-g++ GNU) +else() + set(TOOLCHAIN_DIR "D:/Programy/GNU Tools ARM Embedded/5.4 2016q3/bin") + CMAKE_FORCE_C_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-gcc.exe GNU) + CMAKE_FORCE_CXX_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-g++.exe GNU) +endif() project(STM32_RTTY C ASM CXX) diff --git a/main.c b/main.c index d50efc7..8997d71 100644 --- a/main.c +++ b/main.c @@ -167,7 +167,6 @@ int main(void) { radio_enable_tx(); uint8_t rtty_before_aprs_left = RTTY_TO_APRS_RATIO; - while (1) { if (tx_on == 0 && tx_enable) { if (rtty_before_aprs_left){