forked from GreyZhang/g_s32k144
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new learning note and related code about UART driver.
- Loading branch information
Showing
15 changed files
with
3,149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** ################################################################### | ||
** This component module is generated by Processor Expert. Do not modify it. | ||
** Filename : Cpu.c | ||
** Project : s32k144_sdk_uart | ||
** Processor : S32K144_100 | ||
** Component : S32K144_100 | ||
** Version : Component 01.197, Driver 01.00, CPU db: 3.00.000 | ||
** Datasheet : S32K14XRM Rev. 2, 02/2017 | ||
** Compiler : GNU C Compiler | ||
** Date/Time : 2020-02-20, 22:56, # CodeGen: 0 | ||
** Abstract : | ||
** | ||
** Settings : | ||
** | ||
** Contents : | ||
** SystemInit - void SystemInit(void); | ||
** SystemCoreClockUpdate - void SystemCoreClockUpdate(void); | ||
** SystemSoftwareReset - void SystemSoftwareReset(void); | ||
** | ||
** (c) Freescale Semiconductor, Inc. | ||
** 2004 All Rights Reserved | ||
** | ||
** 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 Cpu.c | ||
** @version 01.00 | ||
** @brief | ||
** | ||
*/ | ||
/*! | ||
** @addtogroup Cpu_module Cpu module documentation | ||
** @{ | ||
*/ | ||
|
||
/* MODULE Cpu. */ | ||
|
||
/* {Default RTOS Adapter} No RTOS includes */ | ||
#include "Cpu.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* TBD Cpu configuration will be generated here. */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
/* END Cpu. */ | ||
|
||
/*! | ||
** @} | ||
*/ | ||
/* | ||
** ################################################################### | ||
** | ||
** This file was created by Processor Expert 10.1 [05.21] | ||
** for the Freescale S32K series of microcontrollers. | ||
** | ||
** ################################################################### | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* ################################################################### | ||
** This component module is generated by Processor Expert. Do not modify it. | ||
** Filename : Cpu.h | ||
** Project : s32k144_sdk_uart | ||
** Processor : S32K144_100 | ||
** Component : S32K144_100 | ||
** Version : Component 01.197, Driver 01.00, CPU db: 3.00.000 | ||
** Datasheet : S32K14XRM Rev. 2, 02/2017 | ||
** Compiler : GNU C Compiler | ||
** Date/Time : 2020-02-20, 22:56, # CodeGen: 0 | ||
** Abstract : | ||
** | ||
** Settings : | ||
** | ||
** Contents : | ||
** SystemInit - void SystemInit(void); | ||
** SystemCoreClockUpdate - void SystemCoreClockUpdate(void); | ||
** SystemSoftwareReset - void SystemSoftwareReset(void); | ||
** | ||
** (c) Freescale Semiconductor, Inc. | ||
** 2004 All Rights Reserved | ||
** | ||
** 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 Cpu.h | ||
** @version 01.00 | ||
** @brief | ||
** | ||
*/ | ||
/*! | ||
** @addtogroup Cpu_module Cpu module documentation | ||
** @{ | ||
*/ | ||
|
||
#ifndef Cpu_H | ||
#define Cpu_H | ||
|
||
|
||
/* MODULE Cpu. */ | ||
|
||
|
||
/*Include shared modules, which are used for whole project*/ | ||
#include "device_registers.h" | ||
|
||
#include "interrupt_manager.h" | ||
#include "clock.h" | ||
#include "edma_driver.h" | ||
#include "osif.h" | ||
#include "lpuart_driver.h" | ||
#include "system_S32K144.h" | ||
|
||
/* Including needed modules to compile this module/procedure */ | ||
#include "pin_mux.h" | ||
#include "clockMan1.h" | ||
#include "FreeRTOS.h" | ||
#include "lpuart1.h" | ||
#include "dmaController1.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* TBD Cpu configuration will be declared here. */ | ||
|
||
|
||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
/* END Cpu. */ | ||
|
||
#endif | ||
/* Cpu_H */ | ||
|
||
/*! | ||
** @} | ||
*/ | ||
/* | ||
** ################################################################### | ||
** | ||
** This file was created by Processor Expert 10.1 [05.21] | ||
** for the Freescale S32K series of microcontrollers. | ||
** | ||
** ################################################################### | ||
*/ |
Oops, something went wrong.