forked from GreyZhang/g_s32k144
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlpuart1.c
78 lines (72 loc) · 2.54 KB
/
lpuart1.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* ###################################################################
** This component module is generated by Processor Expert. Do not modify it.
** Filename : lpuart1.c
** Project : s32k144_sdk_uart
** Processor : S32K144_100
** Component : lpuart
** Version : Component SDK_S32K1xx_15, Driver 01.00, CPU db: 3.00.000
** Repository : SDK_S32K1xx_15
** Compiler : GNU C Compiler
** Date/Time : 2020-02-20, 22:56, # CodeGen: 0
** Abstract :
**
**
** Copyright 1997 - 2015 Freescale Semiconductor, Inc.
** Copyright 2016-2017 NXP
** All Rights Reserved.
**
** THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
** IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
** INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
** STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
** IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
** THE POSSIBILITY OF SUCH DAMAGE.
** ###################################################################*/
/*!
** @file lpuart1.c
** @version 01.00
** @brief
**
*/
/*!
** @addtogroup lpuart1_module lpuart1 module documentation
** @{
*/
/* MODULE lpuart1
*
* @page misra_violations MISRA-C:2012 violations
*
* @section [global]
* Violates MISRA 2012 Advisory Rule 8.7, External could be made static.
* Structure is defined for usage by application code.
*/
#include "lpuart1.h"
/*! lpuart1 configuration structure */
const lpuart_user_config_t lpuart1_InitConfig0 = {
.transferType = LPUART_USING_INTERRUPTS,
.baudRate = 2000000U,
.parityMode = LPUART_PARITY_DISABLED,
.stopBitCount = LPUART_ONE_STOP_BIT,
.bitCountPerChar = LPUART_8_BITS_PER_CHAR,
.rxDMAChannel = 0U,
.txDMAChannel = 0U,
};
/*! Driver state structure */
lpuart_state_t lpuart1_State;
/* END lpuart1. */
/*!
** @}
*/
/*
** ###################################################################
**
** This file was created by Processor Expert 10.1 [05.21]
** for the Freescale S32K series of microcontrollers.
**
** ###################################################################
*/