summaryrefslogtreecommitdiff
path: root/lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c')
-rw-r--r--lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c b/lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c
index 925d722..0e775ec 100644
--- a/lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c
+++ b/lcmodule/source/cnh1605204_ldr_transport_layer/source/r15_transport_layer.c
@@ -22,7 +22,6 @@
#include "t_time_utilities.h"
#include "r_debug.h"
#include "r_debug_macro.h"
-#include "r_memory_utils.h"
#include "r_r15_header.h"
#include "r_command_protocol.h"
#include "r_bulk_protocol.h"
@@ -30,7 +29,6 @@
#include "r_r15_family.h"
#include "r_communication_service.h"
#include "t_security_algorithms.h"
-#include "r_critical_section.h"
/*******************************************************************************
* Declaration of file local functions
@@ -59,14 +57,14 @@ ErrorCode_e R15_Transport_Initialize(const Communication_t *const Communication_
{
int VectorCounter;
- /* Initialize the session counters for command protocol*/
+ /* Iintialize the session counters for command protocol*/
R15_TRANSPORT(Communication_p)->SessionStateIn = 0;
R15_TRANSPORT(Communication_p)->SessionStateOut = 0;
- /* Initialize the session counter for bulk protocol*/
+ /* Iintialize the session counter for bulk protocol*/
R15_TRANSPORT(Communication_p)->BulkSessionCounter = 0;
- /* Initialize the default timeouts */
+ /* initialize the default timeouts */
R15_TIMEOUTS(Communication_p)->TCACK = ACK_TIMEOUT_IN_MS;
R15_TIMEOUTS(Communication_p)->TBCR = BULK_COMMAND_RECEIVING_TIMEOUT;
R15_TIMEOUTS(Communication_p)->TBDR = BULK_DATA_RECEIVING_TIMEOUT;
@@ -77,8 +75,6 @@ ErrorCode_e R15_Transport_Initialize(const Communication_t *const Communication_
memset(&(R15_TRANSPORT(Communication_p)->PreviousBulkVector), 0x00, sizeof(TL_BulkVectorList_t));
R15_TRANSPORT(Communication_p)->BulkHandle.BulkVector_p = NULL;
- R15_TRANSPORT(Communication_p)->BulkHandle.BulkTransferCS = Do_CriticalSection_Create();
- R15_TRANSPORT(Communication_p)->BulkHandle.PendingBulkHeader_p = NULL;
return E_SUCCESS;
}
@@ -92,8 +88,6 @@ ErrorCode_e R15_Transport_Initialize(const Communication_t *const Communication_
*/
ErrorCode_e R15_Transport_Shutdown(const Communication_t *const Communication_p)
{
- BUFFER_FREE(R15_TRANSPORT(Communication_p)->BulkHandle.PendingBulkHeader_p);
- Do_CriticalSection_Destroy(&(R15_TRANSPORT(Communication_p)->BulkHandle.BulkTransferCS));
return E_SUCCESS;
}