diff options
author | xmarvla <vlatko.markovic@seavus.com> | 2011-06-15 14:03:08 +0200 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@seavus.com> | 2011-08-17 22:06:38 +0200 |
commit | c9d1f9613e3ac18d5dd3b9432646e289bb88cec9 (patch) | |
tree | 086b18dc26d75f052b840d818877efb79f5791ca /source/CEH/ZRpcInterface.cpp | |
parent | 12da7d3751c8b7bd088587c8323123019680efff (diff) |
Add support for M730 Platform
Added new command: System_StartCommRelay (For M730 platform).
New state machine in Protrom Network Transmitter Handler.
Small changes in Z protocol due to implementation of
Communication Relay in Hassium Loaders.
Add implementation for CriticalSection synchronization mechanism.
ST-Ericsson ID: 325251
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204
Depends-On: I0d34a2c4504a2b52ff5ab5efd2da36d8d1fa9816
Change-Id: I0d34a2c4504a2b52ff5ab5efd2da36d8d1fa9816
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20944
Reviewed-by: QATOOLS
Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Diffstat (limited to 'source/CEH/ZRpcInterface.cpp')
-rw-r--r-- | source/CEH/ZRpcInterface.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/CEH/ZRpcInterface.cpp b/source/CEH/ZRpcInterface.cpp index 5476e8f..ea0c82a 100644 --- a/source/CEH/ZRpcInterface.cpp +++ b/source/CEH/ZRpcInterface.cpp @@ -8,6 +8,7 @@ ZRpcInterface::ZRpcInterface(CmdResult *CmdResult, LcmInterface *LcmInterface) { Z_Payload = 0; + Z_Payload_SetBaudrate = 0; cmdResult_ = CmdResult; lcmInterface_ = LcmInterface; @@ -18,6 +19,7 @@ ZRpcInterface::~ZRpcInterface() { delete Z_IndataBuffer; delete[] Z_Payload; + delete[] Z_Payload_SetBaudrate; } ErrorCode_e ZRpcInterface::Do_CEH_Callback(CommandData_t *CmdData_p) @@ -98,14 +100,19 @@ ErrorCode_e ZRpcInterface::DoRPC_Z_SetBaudrate(int Baudrate) Z_Payload = 0; } - Z_Payload = new uint8[3]; + Z_Payload = new uint8[2]; - Z_Payload[0] = 0x02; + Z_Payload[0] = 0x01; Z_Payload[1] = 'S'; - Z_Payload[2] = Rate; Result = lcmInterface_->CommunicationSend(Z_Payload); + Z_Payload_SetBaudrate = new uint8[2]; + Z_Payload_SetBaudrate[0] = 0x01; + Z_Payload_SetBaudrate[1] = Rate; + + Result = lcmInterface_->CommunicationSend(Z_Payload_SetBaudrate); + return Result; } |