|
1 | 1 | /* |
2 | 2 | * Copyright (c) 2014-2016, Freescale Semiconductor, Inc. |
3 | | - * Copyright 2016-2021 NXP |
| 3 | + * Copyright 2016-2022 NXP |
4 | 4 | * Copyright 2019 ACRIOS Systems s.r.o. |
5 | 5 | * All rights reserved. |
6 | 6 | * |
@@ -110,6 +110,57 @@ void erpc_transport_i2c_slave_deinit(erpc_transport_t transport); |
110 | 110 |
|
111 | 111 | //@} |
112 | 112 |
|
| 113 | +//! @name LPI2C transport setup |
| 114 | +//@{ |
| 115 | + |
| 116 | +/*! |
| 117 | + * @brief Create an LPI2C slave transport. |
| 118 | + * |
| 119 | + * Create LPI2C slave transport instance, to be used at slave core. |
| 120 | + * |
| 121 | + * @param[in] baseAddr Base address of LPI2C peripheral used in this transport layer. |
| 122 | + * @param[in] baudRate SPI baud rate. |
| 123 | + * @param[in] srcClock_Hz LPI2C source clock in Hz. |
| 124 | + * |
| 125 | + * @return Return NULL or erpc_transport_t instance pointer. |
| 126 | + */ |
| 127 | +erpc_transport_t erpc_transport_lpi2c_slave_init(void *baseAddr, uint32_t baudRate, uint32_t srcClock_Hz); |
| 128 | + |
| 129 | +/*! |
| 130 | + * @brief Deinitialize LPI2C slave transport. |
| 131 | + * |
| 132 | + * @param[in] transport Transport which was initialized with init function. |
| 133 | + */ |
| 134 | +void erpc_transport_lpi2c_slave_deinit(erpc_transport_t transport); |
| 135 | + |
| 136 | +//@} |
| 137 | + |
| 138 | +//! @name LPSPI transport setup |
| 139 | +//@{ |
| 140 | + |
| 141 | +/*! |
| 142 | + * @brief Create a LPSPI slave transport. |
| 143 | + * |
| 144 | + * Create LPSPI slave transport instance, to be used at slave core. |
| 145 | + * |
| 146 | + * @param[in] baseAddr Base address of LPSPI peripheral used in this transport layer. |
| 147 | + * @param[in] baudRate LPSPI baud rate. |
| 148 | + * @param[in] srcClock_Hz LPSPI source clock in Hz. |
| 149 | + * |
| 150 | + * @return Return NULL or erpc_transport_t instance pointer. |
| 151 | + */ |
| 152 | +erpc_transport_t erpc_transport_lpspi_slave_init(void *baseAddr, uint32_t baudRate, uint32_t srcClock_Hz); |
| 153 | + |
| 154 | + |
| 155 | +/*! |
| 156 | + * @brief Deinitialize LPSPI slave transport. |
| 157 | + * |
| 158 | + * @param[in] transport Transport which was initialized with init function. |
| 159 | + */ |
| 160 | +void erpc_transport_lpspi_slave_deinit(erpc_transport_t transport); |
| 161 | + |
| 162 | +//@} |
| 163 | + |
113 | 164 | //! @name MU transport setup |
114 | 165 | //@{ |
115 | 166 |
|
@@ -141,7 +192,7 @@ void erpc_transport_mu_deinit(erpc_transport_t transport); |
141 | 192 | * @brief Create an Linux RPMSG endpoint transport. |
142 | 193 | * |
143 | 194 | * This function is using RPMSG endpoints based on this implementation: |
144 | | - * github.com/NXPmicro/rpmsg-sysfs/tree/0aa1817545a765c200b1b2f9b6680a420dcf9171 . |
| 195 | + * github.com/nxp-mcuxpresso/rpmsg-sysfs/tree/0aa1817545a765c200b1b2f9b6680a420dcf9171 . |
145 | 196 | * |
146 | 197 | * When local/remote address is set to '-1', then default addresses will be used. |
147 | 198 | * When type is set to '0', then Datagram model will be used, else Stream. |
|
0 commit comments