diff --git a/libraries/OneMsTaskTimer/OneMsTaskTimer.cpp b/libraries/OneMsTaskTimer/OneMsTaskTimer.cpp index 097ea842bc2..ed018269d3e 100644 --- a/libraries/OneMsTaskTimer/OneMsTaskTimer.cpp +++ b/libraries/OneMsTaskTimer/OneMsTaskTimer.cpp @@ -129,7 +129,7 @@ void OneMsTaskTimer_int(void) { OneMsTaskTimer::_ticHandler(); } - + #endif //if defined(__MSP430__) @@ -271,7 +271,7 @@ void OneMsTaskTimer_int(void) #define DEFAULT_TIMER 1 uint32_t timer_index_ = DEFAULT_TIMER; static volatile uint32_t g_ulBase; -Clock_Handle myClock = NULL; +Clock_Handle myOneMsTaskTimerClock = NULL; void OneMsTaskTimer_int(UArg arg); void OneMsTaskTimer::start(uint32_t timer_index) { @@ -279,19 +279,19 @@ void OneMsTaskTimer::start(uint32_t timer_index) { Error_Block eb; Error_init(&eb); - if (myClock == NULL){ + if (myOneMsTaskTimerClock == NULL){ Clock_Params_init(&clockParams); clockParams.period = (uint32_t)1000 / (uint64_t)Clock_tickPeriod; clockParams.startFlag = FALSE; clockParams.arg = (UArg)0x5555; - myClock = Clock_create(OneMsTaskTimer_int, clockParams.period, &clockParams, &eb); + myOneMsTaskTimerClock = Clock_create(OneMsTaskTimer_int, clockParams.period, &clockParams, &eb); } - Clock_start(myClock); + Clock_start(myOneMsTaskTimerClock); } void OneMsTaskTimer::stop() { - Clock_stop(myClock); + Clock_stop(myOneMsTaskTimerClock); } void OneMsTaskTimer_int(UArg arg) { diff --git a/libraries/OneMsTaskTimer/OneMsTaskTimer.h b/libraries/OneMsTaskTimer/OneMsTaskTimer.h index e2658f1efd7..793852ba065 100644 --- a/libraries/OneMsTaskTimer/OneMsTaskTimer.h +++ b/libraries/OneMsTaskTimer/OneMsTaskTimer.h @@ -10,6 +10,8 @@ added suppport for CC3200 by Stefan Sch + 23 Apr 2020 - Renamed trivial myClock name to myOneMsTaskTimerClock to avoid prossible conflicts, by Rei Vilo + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either @@ -101,4 +103,4 @@ namespace OneMsTaskTimer { void _ticHandler(); } -#endif +#endif