Skip to content
Snippets Groups Projects
Commit 3d8b459a authored by Pieter Donker's avatar Pieter Donker
Browse files

Bug 335: further development of TBBDriver

parent 0ffa0825
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ using namespace TBB_Test; ...@@ -45,7 +45,7 @@ using namespace TBB_Test;
TBBTest::TBBTest(string name) TBBTest::TBBTest(string name)
: GCFTask((State)&TBBTest::initial, name), Test(name) : GCFTask((State)&TBBTest::initial, name), Test(name)
{ {
registerProtocol(TBB_PROTOCOL, TBB_PROTOCOL_signalnames); GCF::TM::registerProtocol (TBB_PROTOCOL, TBB_PROTOCOL_STRINGS);
itsClient.init(*this, MAC_SVCMASK_TBBDRIVER, GCFPortInterface::SAP, TBB_PROTOCOL); itsClient.init(*this, MAC_SVCMASK_TBBDRIVER, GCFPortInterface::SAP, TBB_PROTOCOL);
...@@ -386,7 +386,7 @@ GCFEvent::TResult TBBTest::test006(GCFEvent& e, GCFPortInterface& port) ...@@ -386,7 +386,7 @@ GCFEvent::TResult TBBTest::test006(GCFEvent& e, GCFPortInterface& port)
/* start of the test sequence */ /* start of the test sequence */
TBBReadEvent sw; TBBReadEvent sw;
sw.channel = 1; sw.rcu = 1;
TESTC_ABORT(itsClient.send(sw), TBBTest::final); TESTC_ABORT(itsClient.send(sw), TBBTest::final);
} }
...@@ -437,8 +437,6 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port) ...@@ -437,8 +437,6 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port)
/* start of the test sequence */ /* start of the test sequence */
TBBModeEvent sw; TBBModeEvent sw;
sw.board = itsboardmask; // boards tot test
TESTC_ABORT(itsClient.send(sw), TBBTest::final); TESTC_ABORT(itsClient.send(sw), TBBTest::final);
} }
break; break;
...@@ -447,7 +445,9 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port) ...@@ -447,7 +445,9 @@ GCFEvent::TResult TBBTest::test007(GCFEvent& e, GCFPortInterface& port)
{ {
TBBModeAckEvent ack(e); TBBModeAckEvent ack(e);
TESTC_ABORT(ack.status_mask == TBB_SUCCESS, TBBTest::final); for (int boardnr = 0; boardnr < MAX_N_TBBBOARDS; boardnr++) {
TESTC_ABORT(ack.status_mask[boardnr] == TBB_SUCCESS, TBBTest::final);
}
LOG_INFO_STR("Udp test OK"); LOG_INFO_STR("Udp test OK");
TRAN(TBBTest::test008); TRAN(TBBTest::test008);
...@@ -510,7 +510,7 @@ GCFEvent::TResult TBBTest::test008(GCFEvent& e, GCFPortInterface& port) ...@@ -510,7 +510,7 @@ GCFEvent::TResult TBBTest::test008(GCFEvent& e, GCFPortInterface& port)
LOG_INFO_STR(formatString("mp2version = 0X%08X", ack.mp2version[cnt])); LOG_INFO_STR(formatString("mp2version = 0X%08X", ack.mp2version[cnt]));
LOG_INFO_STR(formatString("mp3version = 0X%08X", ack.mp3version[cnt])); LOG_INFO_STR(formatString("mp3version = 0X%08X", ack.mp3version[cnt]));
} }
LOG_INFO_STR(formatString ("Ack status = 0X%08X", ack.status_mask)); //LOG_INFO_STR(formatString ("Ack status = 0X%08X", ack.status_mask));
for (int boardnr = 0; boardnr < MAX_N_TBBBOARDS;boardnr++) { for (int boardnr = 0; boardnr < MAX_N_TBBBOARDS;boardnr++) {
TESTC_ABORT(ack.status_mask[boardnr] == TBB_SUCCESS, TBBTest::final); TESTC_ABORT(ack.status_mask[boardnr] == TBB_SUCCESS, TBBTest::final);
} }
......
...@@ -48,8 +48,8 @@ using namespace TBB_Test; ...@@ -48,8 +48,8 @@ using namespace TBB_Test;
TPStub::TPStub(string name) TPStub::TPStub(string name)
: GCFTask((State)&TPStub::initial, name), Test(name) : GCFTask((State)&TPStub::initial, name), Test(name)
{ {
registerProtocol(TP_PROTOCOL, TP_PROTOCOL_signalnames); GCF::TM::registerProtocol (TP_PROTOCOL, TP_PROTOCOL_STRINGS);
char addrstr[64]; char addrstr[64];
snprintf(addrstr, 64, "TPStub.MAC_ADDR_TBBDRIVER"); snprintf(addrstr, 64, "TPStub.MAC_ADDR_TBBDRIVER");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment