ISSDK
1.7
IoT Sensing Software Development Kit
boardkit
lpcxpresso54114
RTE_Device.h
Go to the documentation of this file.
1
/*
2
* The Clear BSD License
3
* Copyright (c) 2016, Freescale Semiconductor, Inc.
4
* Copyright 2016-2017 NXP
5
* All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without modification,
8
* are permitted (subject to the limitations in the disclaimer below) provided
9
* that the following conditions are met:
10
*
11
* o Redistributions of source code must retain the above copyright notice, this list
12
* of conditions and the following disclaimer.
13
*
14
* o Redistributions in binary form must reproduce the above copyright notice, this
15
* list of conditions and the following disclaimer in the documentation and/or
16
* other materials provided with the distribution.
17
*
18
* o Neither the name of the copyright holder nor the names of its
19
* contributors may be used to endorse or promote products derived from this
20
* software without specific prior written permission.
21
*
22
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
*/
34
#ifndef __RTE_DEVICE_H
35
#define __RTE_DEVICE_H
36
37
/*Driver name mapping*/
38
#define RTE_I2C4 1
39
#define RTE_I2C4_DMA_EN 0
40
#define RTE_I2C5 1
41
#define RTE_I2C5_DMA_EN 0
42
43
#define RTE_SPI3 0
44
#define RTE_SPI3_DMA_EN 0
45
#define RTE_SPI5 1
46
#define RTE_SPI5_DMA_EN 0
47
48
#define RTE_USART0 1
49
#define RTE_USART0_DMA_EN 0
50
51
/* UART configuration. */
52
#define USART_RX_BUFFER_LEN 64
53
#define USART0_RX_BUFFER_ENABLE 1
54
55
/* I2C configuration */
56
#define RTE_I2C4_Master_DMA_BASE DMA0
57
#define RTE_I2C4_Master_DMA_CH 9
58
59
#define RTE_I2C5_Master_DMA_BASE DMA0
60
#define RTE_I2C5_Master_DMA_CH 11
61
62
/* SPI configuration. */
63
#define RTE_SPI0_SSEL_NUM kSPI_Ssel0
64
#define RTE_SPI0_DMA_TX_CH 1
65
#define RTE_SPI0_DMA_TX_DMA_BASE DMA0
66
#define RTE_SPI0_DMA_RX_CH 0
67
#define RTE_SPI0_DMA_RX_DMA_BASE DMA0
68
69
#define RTE_SPI1_SSEL_NUM kSPI_Ssel0
70
#define RTE_SPI1_DMA_TX_CH 3
71
#define RTE_SPI1_DMA_TX_DMA_BASE DMA0
72
#define RTE_SPI1_DMA_RX_CH 2
73
#define RTE_SPI1_DMA_RX_DMA_BASE DMA0
74
75
#define RTE_SPI2_SSEL_NUM kSPI_Ssel0
76
#define RTE_SPI2_DMA_TX_CH 5
77
#define RTE_SPI2_DMA_TX_DMA_BASE DMA0
78
#define RTE_SPI2_DMA_RX_CH 4
79
#define RTE_SPI2_DMA_RX_DMA_BASE DMA0
80
81
#define RTE_SPI3_SSEL_NUM kSPI_Ssel2
82
#define RTE_SPI3_DMA_TX_CH 7
83
#define RTE_SPI3_DMA_TX_DMA_BASE DMA0
84
#define RTE_SPI3_DMA_RX_CH 6
85
#define RTE_SPI3_DMA_RX_DMA_BASE DMA0
86
87
#define RTE_SPI4_SSEL_NUM kSPI_Ssel0
88
#define RTE_SPI4_DMA_TX_CH 9
89
#define RTE_SPI4_DMA_TX_DMA_BASE DMA0
90
#define RTE_SPI4_DMA_RX_CH 8
91
#define RTE_SPI4_DMA_RX_DMA_BASE DMA0
92
93
#define RTE_SPI5_SSEL_NUM kSPI_Ssel2
94
#define RTE_SPI5_DMA_TX_CH 11
95
#define RTE_SPI5_DMA_TX_DMA_BASE DMA0
96
#define RTE_SPI5_DMA_RX_CH 10
97
#define RTE_SPI5_DMA_RX_DMA_BASE DMA0
98
99
#define RTE_SPI6_SSEL_NUM kSPI_Ssel0
100
#define RTE_SPI6_DMA_TX_CH 13
101
#define RTE_SPI6_DMA_TX_DMA_BASE DMA0
102
#define RTE_SPI6_DMA_RX_CH 12
103
#define RTE_SPI6_DMA_RX_DMA_BASE DMA0
104
105
#define RTE_SPI7_SSEL_NUM kSPI_Ssel0
106
#define RTE_SPI7_DMA_TX_CH 15
107
#define RTE_SPI7_DMA_TX_DMA_BASE DMA0
108
#define RTE_SPI7_DMA_RX_CH 14
109
#define RTE_SPI7_DMA_RX_DMA_BASE DMA0
110
111
/* USART configuration. */
112
#define RTE_USART0_DMA_TX_CH 1
113
#define RTE_USART0_DMA_TX_DMA_BASE DMA0
114
#define RTE_USART0_DMA_RX_CH 0
115
#define RTE_USART0_DMA_RX_DMA_BASE DMA0
116
117
#endif
/* __RTE_DEVICE_H */
© Freescale Semiconductor, Inc. 2016-2017. All Rights Reserved.