1 /*
2  * Copyright 2018 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef _RTE_DEVICE_H
9 #define _RTE_DEVICE_H
10 
11 #include "pin_mux.h"
12 
13 /* UART Select, LPUART0 - LPUART2. */
14 /* User needs to provide the implementation of LPUARTX_GetFreq/LPUARTX_InitPins/LPUARTX_DeinitPins for the enabled
15  * LPUART instance. */
16 #define RTE_USART0 0
17 #define RTE_USART1 0
18 #define RTE_USART2 0
19 
20 /* UART configuration. */
21 #define USART_RX_BUFFER_LEN     64
22 #define USART0_RX_BUFFER_ENABLE 0
23 #define USART1_RX_BUFFER_ENABLE 0
24 #define USART2_RX_BUFFER_ENABLE 0
25 
26 /* I2C Select, LPI2C0. */
27 /* User needs to provide the implementation of LPI2CX_GetFreq/LPI2CX_InitPins/LPI2CX_DeinitPins for the enabled LPI2C
28  * instance. */
29 #define RTE_I2C0 0
30 
31 /* SPI Select, LPSPI0. */
32 /* User needs to provide the implementation of LPSPIX_GetFreq/LPSPIX_InitPins/LPSPIX_DeinitPins for the enabled LPSPI
33  * instance. */
34 #define RTE_SPI0 0
35 
36 /* SPI configuration. */
37 #define RTE_SPI0_PCS_TO_SCK_DELAY       1000
38 #define RTE_SPI0_SCK_TO_PSC_DELAY       1000
39 #define RTE_SPI0_BETWEEN_TRANSFER_DELAY 1000
40 #define RTE_SPI0_MASTER_PCS_PIN_SEL     (kLPSPI_MasterPcs3)
41 #define RTE_SPI0_SLAVE_PCS_PIN_SEL      (kLPSPI_SlavePcs3)
42 
43 #endif /* _RTE_DEVICE_H */
44