Skip to content

Commit

Permalink
Add a new learning note and related code about UART driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyZhang committed Feb 20, 2020
1 parent 91d688c commit 3cc6e97
Show file tree
Hide file tree
Showing 15 changed files with 3,149 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@ S32K144是NXP推出的车规级别的MCU,ARM架构的内核。芯片在设计
- 总结分析的小结参考链接: https://blog.csdn.net/grey_csdn/article/details/104420403
*** S32DS中实时查看变量的变化
- 总结分析的小结参考链接: https://blog.csdn.net/grey_csdn/article/details/104420541
*** S32K144实现串口驱动
- 参考代码: S32K1144_007
- 总结分析的小结参考链接: https://blog.csdn.net/grey_csdn/article/details/104420809

77 changes: 77 additions & 0 deletions S32K144_007/Generated_Code/Cpu.c
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.
**
** ###################################################################
*/
102 changes: 102 additions & 0 deletions S32K144_007/Generated_Code/Cpu.h
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.
**
** ###################################################################
*/
Loading

0 comments on commit 3cc6e97

Please sign in to comment.