diff --git a/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.cpp b/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.cpp index 85105e2..c537a8d 100644 --- a/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.cpp +++ b/components/free_rtos/ethernet_industry/CoE/eth_ecat_pdo_fmmu.cpp @@ -153,7 +153,7 @@ void EthEcatPdoFMMU::process() { #if PROFILE_LEVEL > 0 { - #pragma message ( "Profiling for RPDO subscribers is enabled !" ) + #warning ( "Profiling for RPDO subscribers is enabled !" ) PROFILE(process_read_queue, PROFILE_SAMPLES, 0); @@ -165,7 +165,7 @@ void EthEcatPdoFMMU::process() { #if PROFILE_LEVEL > 0 { - #pragma message ( "Profiling for process callback is enabled !" ) + #warning ( "Profiling for process callback is enabled !" ) PROFILE(callback_, PROFILE_SAMPLES, 0); @@ -181,7 +181,7 @@ void EthEcatPdoFMMU::process() { #if PROFILE_LEVEL > 0 { - #pragma message ( "Profiling for TPDO subscribers is enabled !" ) + #warning ( "Profiling for TPDO subscribers is enabled !" ) PROFILE(process_write_queue, PROFILE_SAMPLES, 0); @@ -220,7 +220,7 @@ void EthEcatPdoFMMU::process_fake(uint32_t period_microsec, ecat_pdo_fmmu::Proce #if PROFILE_LEVEL > 0 { - #pragma message ( "Profiling for RPDO subscribers is enabled !" ) + #warning ( "Profiling for RPDO subscribers is enabled !" ) PROFILE(process_read_queue, PROFILE_SAMPLES, 0); @@ -232,7 +232,7 @@ void EthEcatPdoFMMU::process_fake(uint32_t period_microsec, ecat_pdo_fmmu::Proce #if PROFILE_LEVEL > 0 { - #pragma message ( "Profiling for process callback is enabled !" ) + #warning ( "Profiling for process callback is enabled !" ) PROFILE(callback_, PROFILE_SAMPLES, 0); @@ -248,7 +248,7 @@ void EthEcatPdoFMMU::process_fake(uint32_t period_microsec, ecat_pdo_fmmu::Proce #if PROFILE_LEVEL > 0 { - #pragma message ( "Profiling for TPDO subscribers is enabled !" ) + #warning ( "Profiling for TPDO subscribers is enabled !" ) PROFILE(process_write_queue, PROFILE_SAMPLES, 0); diff --git a/components/free_rtos/profiler/quick_profiler.hpp b/components/free_rtos/profiler/quick_profiler.hpp index a28c1f0..18058cd 100644 --- a/components/free_rtos/profiler/quick_profiler.hpp +++ b/components/free_rtos/profiler/quick_profiler.hpp @@ -17,12 +17,12 @@ namespace free_rtos { -#define PROFILE(name, size, id) static QuickProfiler name##_profiler{#name}; \ - QuickProfilerItem name##_profile_item_##id{name##_profiler} +#define PROFILE(name, size, id) static free_rtos::QuickProfiler name##_profiler{#name}; \ + free_rtos::QuickProfilerItem name##_profile_item_##id{name##_profiler} -#define CREATE_PROFILER(name, size) static QuickProfiler name##_profiler{#name}; +#define CREATE_PROFILER(name, size) static free_rtos::QuickProfiler name##_profiler{#name}; -#define ADD_PROFILE_ITEM(name, size, id) QuickProfilerItem name##_profile_item_##id{name##_profiler} +#define ADD_PROFILE_ITEM(name, size, id) free_rtos::QuickProfilerItem name##_profile_item_##id{name##_profiler} static void QuickProfiler_init(const uint64_t cpuFreqHz) { CycleCounterP_init(cpuFreqHz);