Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ewf_adapter_renesas_common_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ ewf_result ewf_adapter_renesas_common_stop(ewf_adapter* adapter_ptr)
}

/* Cleanup the interface */
if (ewf_result_failed(result = ewf_interface_init(interface_ptr)))
if (ewf_result_failed(result = ewf_interface_clean(interface_ptr)))
{
EWF_LOG_ERROR("Failed to clean the interface: ewf_result %d.\n", result);
return EWF_RESULT_INTERFACE_INITIALIZATION_FAILED;
Expand Down
8 changes: 5 additions & 3 deletions src/ewf_interface_ra_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ ewf_result ewf_interface_ra_uart_hardware_start(ewf_interface* interface_ptr)
g_interface_ptr = interface_ptr;

/* Initialize UART channel */
status = R_SCI_UART_Open (&g_uart0_ctrl, &g_uart0_cfg);
status = g_uart0.p_api->open(g_uart0.p_ctrl, g_uart0.p_cfg);

if (FSP_SUCCESS != status)
return EWF_RESULT_INTERFACE_INITIALIZATION_FAILED;

Expand All @@ -94,7 +95,7 @@ ewf_result ewf_interface_ra_uart_hardware_stop(ewf_interface* interface_ptr)
#endif

/* Close module */
R_SCI_UART_Close (&g_uart0_ctrl);
g_uart0.p_api->close(g_uart0.p_ctrl);

return EWF_RESULT_OK;
}
Expand All @@ -114,7 +115,8 @@ ewf_result ewf_interface_ra_uart_hardware_send(ewf_interface* interface_ptr, con
g_uart_event = 0;

/* Writing to terminal */
err = R_SCI_UART_Write (&g_uart0_ctrl, (uint8_t *) buffer, length);
g_uart0.p_api->write(g_uart0.p_ctrl, (uint8_t *) buffer, length);

if (FSP_SUCCESS != err)
{
return EWF_RESULT_ADAPTER_TRANSMIT_FAILED;
Expand Down
1 change: 0 additions & 1 deletion src/ewf_interface_ra_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "ewf_interface.h"

#include "r_sci_uart.h"
#include "r_uart_api.h"
#include "hal_data.h"

Expand Down