Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TargetManager mbed
TestTargetManager.cpp
00001 #include "TestTargetManager.hpp" 00002 00003 #include <cstdio> 00004 00005 TestTargetManager::TestTargetManager(std::vector<NerfusTickerInterface*>& target_timeout_tickers) : 00006 target_timeout_tickers(target_timeout_tickers) 00007 { 00008 00009 } 00010 00011 void TestTargetManager::execute(const std::vector<uint8_t>& target_info_bytes, int *address) 00012 { 00013 00014 } 00015 00016 void TestTargetManager::target_hit(int target_number) 00017 { 00018 target_timeout_tickers[target_number]->stop(); 00019 std::printf("Target #%d hit after %d ms\r\n", target_number, target_timeout_tickers[target_number]->get_time_ms()); 00020 } 00021 00022 void TestTargetManager::target_missed(int target_number) 00023 { 00024 std::printf("Target #%d missed after %d ms\r\n", target_number, target_timeout_tickers[target_number]->get_time_ms()); 00025 }
Generated on Thu Jul 21 2022 23:56:01 by
1.7.2