mirror of https://github.com/ARMmbed/mbed-os.git
unittest: remove platform watchdog (moved to drivers)
parent
4549a22566
commit
8231efc41c
|
@ -1,57 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2019 Arm Limited and affiliates.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifdef DEVICE_WATCHDOG
|
||||
|
||||
#include "VirtualWatchdog.h"
|
||||
|
||||
namespace mbed {
|
||||
|
||||
VirtualWatchdog *VirtualWatchdog::_first;
|
||||
|
||||
VirtualWatchdog::VirtualWatchdog(uint32_t timeout, const char *const str): _name(str)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void VirtualWatchdog::start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void VirtualWatchdog::kick()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void VirtualWatchdog::stop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void VirtualWatchdog::process()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
VirtualWatchdog::~VirtualWatchdog()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
} // namespace mbed
|
||||
|
||||
#endif // DEVICE_WATCHDOG
|
|
@ -1,29 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
set(TEST_SUITE_NAME "mbed_watchdog_mgr")
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
../hal
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../platform/mbed_watchdog_mgr.cpp
|
||||
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
platform/mbed_watchdog_mgr/test_mbed_watchdog_mgr.cpp
|
||||
platform/mbed_watchdog_mgr/Watchdog.cpp
|
||||
stubs/mbed_assert_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/watchdog_api_stub.c
|
||||
)
|
||||
|
||||
# defines
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEVICE_WATCHDOG -DHW_WATCHDOG_TIMEOUT=500")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEVICE_WATCHDOG -DHW_WATCHDOG_TIMEOUT=500")
|
Loading…
Reference in New Issue