Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
uart_pal_mapping.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 NXP
3
* All rights reserved.
4
*
5
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
6
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
7
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
8
* IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
9
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
10
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
11
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
13
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
14
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
15
* THE POSSIBILITY OF SUCH DAMAGE.
16
*/
17
28
#ifndef UART_PAL_MAPPING_H
29
#define UART_PAL_MAPPING_H
30
#include "
device_registers.h
"
31
32
#if (defined(CPU_S32K144HFT0VLLT) || defined(CPU_S32K144LFT0MLLT) || defined(CPU_S32K146) || \
33
defined(CPU_S32K148)|| defined(CPU_S32K142) || defined(CPU_S32K116) || defined(CPU_S32K118))
34
#define FLEXIO_UART_INSTANCE_COUNT 2U
35
#endif
36
43
typedef
enum
44
{
45
UART_INST_TYPE_LPUART
= 0u,
46
UART_INST_TYPE_FLEXIO_UART
= 1u,
47
UART_INST_TYPE_LINFLEXD
= 2u
48
}
uart_inst_type_t
;
49
56
typedef
struct
57
{
58
uart_inst_type_t
instType
;
59
uint32_t
instIdx
;
60
}
uart_instance_t
;
61
62
#endif
/* UART_PAL_MAPPING_H */
device_registers.h
uart_instance_t::instIdx
uint32_t instIdx
Definition:
uart_pal_mapping.h:59
uart_instance_t
Structure storing PAL instance information.
Definition:
uart_pal_mapping.h:56
UART_INST_TYPE_LINFLEXD
Definition:
uart_pal_mapping.h:47
uart_instance_t::instType
uart_inst_type_t instType
Definition:
uart_pal_mapping.h:58
uart_inst_type_t
uart_inst_type_t
Enumeration with the types of peripherals supported by UART PAL.
Definition:
uart_pal_mapping.h:43
UART_INST_TYPE_FLEXIO_UART
Definition:
uart_pal_mapping.h:46
UART_INST_TYPE_LPUART
Definition:
uart_pal_mapping.h:45
platform
pal
uart
inc
uart_pal_mapping.h
Generated on Fri Apr 27 2018 19:10:06 for S32 SDK by
1.8.10