Fix for the Ci build issue

pull/10645/head
Rajkumar Kanagaraj 2019-03-12 18:05:46 +00:00 committed by Filip Jagodzinski
parent 43c2647be7
commit f94eb3cf13
5 changed files with 12 additions and 14 deletions

View File

@ -22,7 +22,6 @@
#include <cstdio>
#include "mbed_error.h"
#include "rtos/ThisThread.h"
#include "platform/mbed_critical.h"
#include "platform/mbed_power_mgmt.h"
namespace mbed {

View File

@ -29,13 +29,12 @@ MBED_STATIC_ASSERT((HW_WATCHDOG_TIMEOUT > 0), "Timeout must be greater than zero
* its only going to call process to verify all registered users/threads in alive state
*
*/
Watchdog watchdog(0, "Platform Watchdog");
mbed::Watchdog watchdog(0, "Platform Watchdog");
/** Create singleton instance of LowPowerTicker for watchdog periodic call back of kick.
*/
static LowPowerTicker *get_ticker()
static mbed::LowPowerTicker *get_ticker()
{
static LowPowerTicker ticker;
static mbed::LowPowerTicker ticker;
return &ticker;
}
@ -78,7 +77,7 @@ bool mbed_wdog_manager_start()
core_util_critical_section_exit();
if (is_watchdog_started){
us_timestamp_t timeout = (MS_TO_US(((elapsed_ms <= 0) ? 1 : elapsed_ms)));
get_ticker()->attach_us(callback(&mbed_wdog_manager_kick), timeout);
get_ticker()->attach_us(mbed::callback(&mbed_wdog_manager_kick), timeout);
}
return is_watchdog_started;
}

View File

@ -22,7 +22,7 @@
#include "watchdog_api.h"
#include "mbed_error.h"
#include "mbed.h"
#include "platform/Callback.h"
#include "platform/mbed_critical.h"
#include "LowPowerTicker.h"
#include "Watchdog.h"
@ -62,7 +62,7 @@ bool mbed_wdog_manager_start();
* Calling this function will attempt to disable any currently running
* watchdog timers if supported by the current platform.
*
* @return Returns true if the watchdog timer was succesfully
* @return Returns true if the watchdog timer was successfully
* stopped, Returns false if the watchdog cannot be disabled
* on the current platform or if the timer was never started.
*/