summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcmake-nRF5x/CMake_nRF5x.cmake2
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/sdk_config.h2
-rw-r--r--src/systemtask/SystemTask.cpp2
4 files changed, 1 insertions, 6 deletions
diff --git a/cmake-nRF5x/CMake_nRF5x.cmake b/cmake-nRF5x/CMake_nRF5x.cmake
index c7d0a68..9bf63f2 100755
--- a/cmake-nRF5x/CMake_nRF5x.cmake
+++ b/cmake-nRF5x/CMake_nRF5x.cmake
@@ -106,7 +106,6 @@ macro(nRF5x_setup)
${NRF5_SDK_PATH}/external/freertos/source/stream_buffer.c
${NRF5_SDK_PATH}/external/freertos/source/tasks.c
${NRF5_SDK_PATH}/external/freertos/source/timers.c
- ${NRF5_SDK_PATH}/components/libraries/timer/app_timer_freertos.c
)
# freertos include
@@ -335,7 +334,6 @@ endmacro(nRF5x_addAppFIFO)
# adds app-level Timer libraries
macro(nRF5x_addAppTimer)
list(APPEND SDK_SOURCE_FILES
- "${NRF5_SDK_PATH}/components/libraries/timer/app_timer.c"
)
endmacro(nRF5x_addAppTimer)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 077546a..08be139 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -53,7 +53,6 @@ set(SDK_SOURCE_FILES
${NRF5_SDK_PATH}/external/freertos/source/stream_buffer.c
${NRF5_SDK_PATH}/external/freertos/source/tasks.c
${NRF5_SDK_PATH}/external/freertos/source/timers.c
- ${NRF5_SDK_PATH}/components/libraries/timer/app_timer_freertos.c
# Libs
"${NRF5_SDK_PATH}/components/libraries/atomic/nrf_atomic.c"
diff --git a/src/sdk_config.h b/src/sdk_config.h
index 7634dca..fa9d630 100644
--- a/src/sdk_config.h
+++ b/src/sdk_config.h
@@ -6781,7 +6781,7 @@
// <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
//==========================================================
#ifndef APP_TIMER_ENABLED
- #define APP_TIMER_ENABLED 1
+ #define APP_TIMER_ENABLED 0
#endif
// <o> APP_TIMER_CONFIG_RTC_FREQUENCY - Configure RTC prescaler.
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 35406bf..7e34b23 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -127,8 +127,6 @@ void SystemTask::Work() {
NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::Watchdog::ResetReasonToString(watchdog.ResetReason()));
APP_GPIOTE_INIT(2);
- app_timer_init();
-
spi.Init();
spiNorFlash.Init();
spiNorFlash.Wakeup();