add missing <string> and <cmath> includes

This commit is contained in:
Reinhold Gschweicher 2022-02-24 22:57:28 +01:00
parent a79f75285f
commit 999888eaf8
4 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,7 @@
#include <iostream>
#include <typeinfo>
#include <algorithm>
#include <cmath> // std::pow
/*********************
* DEFINES

View File

@ -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 <stdexcept>
#include <string> // std::to_string()
template<typename T>
void APP_ERROR_HANDLER(T err) {
throw std::runtime_error("APP_ERROR_HANDLER: " + std::to_string(err));

View File

@ -4,6 +4,7 @@
#include <SDL2/SDL.h>
#include <stdexcept>
#include <string> // std::to_string
void nrf_gpio_cfg_default(uint32_t pin_number) {}
void nrf_gpio_pin_set(uint32_t pin_number) {}

View File

@ -3,6 +3,7 @@
#include "task.h"
#include <chrono>
#include <stdexcept>
#include <string> // std::to_string
uint32_t nrf_rtc_counter_get(NRF_RTC_Type p_reg)
{