diff --git a/main.cpp b/main.cpp index 08c13b0..1f9a255 100644 --- a/main.cpp +++ b/main.cpp @@ -55,6 +55,7 @@ #include #include #include +#include // std::pow /********************* * DEFINES diff --git a/sim/FreeRTOS.h b/sim/FreeRTOS.h index 47d7db9..02b7f19 100644 --- a/sim/FreeRTOS.h +++ b/sim/FreeRTOS.h @@ -60,6 +60,7 @@ #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy #include +#include // std::to_string() template void APP_ERROR_HANDLER(T err) { throw std::runtime_error("APP_ERROR_HANDLER: " + std::to_string(err)); diff --git a/sim/nrfx/hal/nrf_gpio.cpp b/sim/nrfx/hal/nrf_gpio.cpp index d4f2737..6e5a35c 100644 --- a/sim/nrfx/hal/nrf_gpio.cpp +++ b/sim/nrfx/hal/nrf_gpio.cpp @@ -4,6 +4,7 @@ #include #include +#include // std::to_string void nrf_gpio_cfg_default(uint32_t pin_number) {} void nrf_gpio_pin_set(uint32_t pin_number) {} diff --git a/sim/nrfx/hal/nrf_rtc.cpp b/sim/nrfx/hal/nrf_rtc.cpp index 7b93c55..e199762 100644 --- a/sim/nrfx/hal/nrf_rtc.cpp +++ b/sim/nrfx/hal/nrf_rtc.cpp @@ -3,6 +3,7 @@ #include "task.h" #include #include +#include // std::to_string uint32_t nrf_rtc_counter_get(NRF_RTC_Type p_reg) {