-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- LPI2C, LPSPI transports added -- Use MU_SendMsg blocking call in MU transport -- Increased the StaticQueue in rpmsg_lite_transport - could be 2U * ERPC_DEFAULT_BUFFERS_COUNT for zero copy cases -- Aligned UartTransport::init in erpc_uart_cmsis_transport.cpp to changes in driver that removes ARM_USART_CONTROL_TX/ARM_USART_CONTROL_RX controls -- Aligned retarget_cpp_streamed_io.c to latest used MDK 5.38a version -- Avoid using argc and argv main function parameters in erpc Googletest based projects
- Loading branch information
1 parent
e8e2e63
commit 5cac701
Showing
24 changed files
with
848 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2022-2023 NXP | ||
* All rights reserved. | ||
* | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#include "erpc_lpi2c_slave_transport.hpp" | ||
#include "erpc_manually_constructed.hpp" | ||
#include "erpc_transport_setup.h" | ||
|
||
using namespace erpc; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Variables | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
static ManuallyConstructed<LPI2cSlaveTransport> s_transport; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Code | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
erpc_transport_t erpc_transport_lpi2c_slave_init(void *baseAddr, uint32_t baudRate, uint32_t srcClock_Hz) | ||
{ | ||
s_transport.construct(reinterpret_cast<LPI2C_Type *>(baseAddr), baudRate, srcClock_Hz); | ||
(void)s_transport->init(); | ||
return reinterpret_cast<erpc_transport_t>(s_transport.get()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2022-2023 NXP | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#include "erpc_lpspi_slave_transport.hpp" | ||
#include "erpc_manually_constructed.hpp" | ||
#include "erpc_transport_setup.h" | ||
|
||
using namespace erpc; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Variables | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
ERPC_MANUALLY_CONSTRUCTED(LPSpiSlaveTransport, s_transport); | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Code | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
erpc_transport_t erpc_transport_lpspi_slave_init(void *baseAddr, uint32_t baudRate, uint32_t srcClock_Hz) | ||
{ | ||
s_transport.construct(reinterpret_cast<LPSPI_Type *>(baseAddr), baudRate, srcClock_Hz); | ||
(void)s_transport->init(); | ||
return reinterpret_cast<erpc_transport_t>(s_transport.get()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.