diff --git a/UNITTESTS/target_h/drivers/LowPowerTicker.h b/UNITTESTS/target_h/drivers/LowPowerTicker.h deleted file mode 100644 index 1d0bb6b..0000000 --- a/UNITTESTS/target_h/drivers/LowPowerTicker.h +++ /dev/null @@ -1,53 +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. - */ -#ifndef MBED_LOWPOWERTICKER_H -#define MBED_LOWPOWERTICKER_H - -#include "hal/ticker_api.h" -#include "Callback.h" - -namespace mbed { - -/** mock Low Power Ticker - * - */ -class LowPowerTicker { - -public: - LowPowerTicker() - { - } - - virtual ~LowPowerTicker() - { - } - - void attach_us(Callback func, us_timestamp_t t) - { - - } - void detach() - { - - } -}; - -} // namespace mbed - -#endif - - diff --git a/UNITTESTS/target_h/drivers/Ticker.h b/UNITTESTS/target_h/drivers/Ticker.h deleted file mode 100644 index 7725490..0000000 --- a/UNITTESTS/target_h/drivers/Ticker.h +++ /dev/null @@ -1,52 +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. - */ -#ifndef MBED_TICKER_H -#define MBED_TICKER_H -#include "drivers/TimerEvent.h" -#include "platform/Callback.h" - -namespace mbed { -/** \addtogroup drivers */ - -/** mock Ticker - * - */ -class Ticker { - -public: - Ticker() - { - } - - void attach_us(Callback func, us_timestamp_t t) - { - - } - - void detach() - { - - } - - ~Ticker() - { - } -}; - -} // namespace mbed - -#endif diff --git a/drivers/tests/UNITTESTS/doubles/CMakeLists.txt b/drivers/tests/UNITTESTS/doubles/CMakeLists.txt index a223876..cb64850 100644 --- a/drivers/tests/UNITTESTS/doubles/CMakeLists.txt +++ b/drivers/tests/UNITTESTS/doubles/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(mbed-headers-drivers INTERFACE + . ${mbed-os_SOURCE_DIR}/drivers ${mbed-os_SOURCE_DIR}/drivers/include ${mbed-os_SOURCE_DIR}/drivers/include/drivers diff --git a/drivers/tests/UNITTESTS/doubles/drivers/LowPowerTicker.h b/drivers/tests/UNITTESTS/doubles/drivers/LowPowerTicker.h new file mode 100644 index 0000000..1d0bb6b --- /dev/null +++ b/drivers/tests/UNITTESTS/doubles/drivers/LowPowerTicker.h @@ -0,0 +1,53 @@ +/* + * 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. + */ +#ifndef MBED_LOWPOWERTICKER_H +#define MBED_LOWPOWERTICKER_H + +#include "hal/ticker_api.h" +#include "Callback.h" + +namespace mbed { + +/** mock Low Power Ticker + * + */ +class LowPowerTicker { + +public: + LowPowerTicker() + { + } + + virtual ~LowPowerTicker() + { + } + + void attach_us(Callback func, us_timestamp_t t) + { + + } + void detach() + { + + } +}; + +} // namespace mbed + +#endif + + diff --git a/drivers/tests/UNITTESTS/doubles/drivers/Ticker.h b/drivers/tests/UNITTESTS/doubles/drivers/Ticker.h new file mode 100644 index 0000000..7725490 --- /dev/null +++ b/drivers/tests/UNITTESTS/doubles/drivers/Ticker.h @@ -0,0 +1,52 @@ +/* + * 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. + */ +#ifndef MBED_TICKER_H +#define MBED_TICKER_H +#include "drivers/TimerEvent.h" +#include "platform/Callback.h" + +namespace mbed { +/** \addtogroup drivers */ + +/** mock Ticker + * + */ +class Ticker { + +public: + Ticker() + { + } + + void attach_us(Callback func, us_timestamp_t t) + { + + } + + void detach() + { + + } + + ~Ticker() + { + } +}; + +} // namespace mbed + +#endif