From a8424513222f8b428a674a5881215079e96a4bbe Mon Sep 17 00:00:00 2001 From: algin Date: Thu, 10 Aug 2023 18:04:33 +0300 Subject: [PATCH] =?UTF-8?q?fix(UML-1462):=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B5=D0=B9=D0=BC=D1=81=D0=BF?= =?UTF-8?q?=D0=B5=D0=B9=D1=81=D1=8B=20=D0=B8=20=D1=81=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B0=20=D0=B2=D0=B0=D1=80=D0=BD?= =?UTF-8?q?=D0=B8=D0=BD=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ethernet_industry/CoE/eth_ecat_pdo_fmmu.cpp | 12 ++++++------ components/free_rtos/profiler/quick_profiler.hpp | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) 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);