   1              		.cpu cortex-m4
   2              		.eabi_attribute 27, 1
   3              		.eabi_attribute 28, 1
   4              		.eabi_attribute 20, 1
   5              		.eabi_attribute 21, 1
   6              		.eabi_attribute 23, 3
   7              		.eabi_attribute 24, 1
   8              		.eabi_attribute 25, 1
   9              		.eabi_attribute 26, 1
  10              		.eabi_attribute 30, 6
  11              		.eabi_attribute 34, 1
  12              		.eabi_attribute 18, 4
  13              		.file	"main.c"
  14              		.text
  15              	.Ltext0:
  16              		.cfi_sections	.debug_frame
  17              		.comm	component_fun,4,4
  18              		.comm	gcRecvLen,2,2
  19              		.comm	gcRecvDCLen,2,2
  20              		.comm	gcRecvBuf,4096,4
  21              		.section	.rodata
  22              		.align	2
  23              	.LC0:
  24 0000 CAB9D3C3 		.ascii	"\312\271\323\303uart_send_string\267\242\313\315\243"
  24      75617274 
  24      5F73656E 
  24      645F7374 
  24      72696E67 
  25 0019 BA48656C 		.ascii	"\272Hello Uart_0!\015\012\000"
  25      6C6F2055 
  25      6172745F 
  25      30210D0A 
  25      00
  26 002a 0000     		.align	2
  27              	.LC1:
  28 002c B5C6B5C4 		.ascii	"\265\306\265\304\311\301\313\270\264\316\312\375 mL"
  28      C9C1CBB8 
  28      B4CECAFD 
  28      206D4C
  29 003b 69676874 		.ascii	"ightCount = %d\012\000"
  29      436F756E 
  29      74203D20 
  29      25640A00 
  30 004b 00       		.align	2
  31              	.LC2:
  32 004c 204C4947 		.ascii	" LIGHT_RED:ON--\012\000"
  32      48545F52 
  32      45443A4F 
  32      4E2D2D0A 
  32      00
  33 005d 000000   		.align	2
  34              	.LC3:
  35 0060 204C4947 		.ascii	" LIGHT_RED:OFF--\012\000"
  35      48545F52 
  35      45443A4F 
  35      46462D2D 
  35      0A00
  36              		.text
  37              		.align	1
  38              		.global	main
  39              		.syntax unified
  40              		.thumb
  41              		.thumb_func
  42              		.fpu fpv4-sp-d16
  44              	main:
  45              	.LFB123:
  46              		.file 1 "srcc/main.c"
   1:srcc/main.c   **** //======================================================================
   2:srcc/main.c   **** //文件名称：main.c（应用工程主函数）
   3:srcc/main.c   **** //框架提供：苏大arm技术中心（sumcu.suda.edu.cn）
   4:srcc/main.c   **** //版本更新：2017.08:1.0, 2019.1:A.10
   5:srcc/main.c   **** //功能描述：见本工程的<01_Doc>文件夹下Readme.txt文件
   6:srcc/main.c   **** //======================================================================
   7:srcc/main.c   **** #define GLOBLE_VAR
   8:srcc/main.c   **** #include "includes.h"      //包含总头文件
   9:srcc/main.c   **** //--------------------main.c使用的内部函数声明处-------------------------
  10:srcc/main.c   **** 
  11:srcc/main.c   **** 
  12:srcc/main.c   **** //----------------------------------------------------------------------
  13:srcc/main.c   **** //主函数，一般情况下可以认为程序从此开始运行（实际上有启动过程见书稿）
  14:srcc/main.c   **** int main(void)
  15:srcc/main.c   **** {
  47              		.loc 1 15 0
  48              		.cfi_startproc
  49              		@ args = 0, pretend = 0, frame = 16
  50              		@ frame_needed = 1, uses_anonymous_args = 0
  51 0000 80B5     		push	{r7, lr}
  52              		.cfi_def_cfa_offset 8
  53              		.cfi_offset 7, -8
  54              		.cfi_offset 14, -4
  55 0002 86B0     		sub	sp, sp, #24
  56              		.cfi_def_cfa_offset 32
  57 0004 02AF     		add	r7, sp, #8
  58              		.cfi_def_cfa 7, 24
  59              	.LBB6:
  60              	.LBB7:
  61              		.file 2 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
   1:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /**************************************************************************//**
   2:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  * @file     cmsis_gcc.h
   3:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  * @brief    CMSIS Cortex-M Core Function/Instruction Header File
   4:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  * @version  V4.30
   5:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  * @date     20. October 2015
   6:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  ******************************************************************************/
   7:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /* Copyright (c) 2009 - 2015 ARM LIMITED
   8:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
   9:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    All rights reserved.
  10:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    Redistribution and use in source and binary forms, with or without
  11:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    modification, are permitted provided that the following conditions are met:
  12:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    - Redistributions of source code must retain the above copyright
  13:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****      notice, this list of conditions and the following disclaimer.
  14:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    - Redistributions in binary form must reproduce the above copyright
  15:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****      notice, this list of conditions and the following disclaimer in the
  16:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****      documentation and/or other materials provided with the distribution.
  17:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    - Neither the name of ARM nor the names of its contributors may be used
  18:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****      to endorse or promote products derived from this software without
  19:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****      specific prior written permission.
  20:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    *
  21:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  22:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
  25:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  26:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  27:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  28:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  29:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  30:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  31:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    POSSIBILITY OF SUCH DAMAGE.
  32:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    ---------------------------------------------------------------------------*/
  33:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  34:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  35:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #ifndef __CMSIS_GCC_H
  36:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #define __CMSIS_GCC_H
  37:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  38:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /* ignore some GCC warnings */
  39:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #if defined ( __GNUC__ )
  40:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #pragma GCC diagnostic push
  41:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion"
  42:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion"
  43:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter"
  44:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #endif
  45:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  46:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  47:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /* ###########################  Core Function Access  ########################### */
  48:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /** \ingroup  CMSIS_Core_FunctionInterface
  49:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****     \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions
  50:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   @{
  51:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  */
  52:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  53:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /**
  54:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   \brief   Enable IRQ Interrupts
  55:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   \details Enables IRQ interrupts by clearing the I-bit in the CPSR.
  56:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****            Can only be executed in Privileged modes.
  57:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  */
  58:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void)
  59:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** {
  60:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   __ASM volatile ("cpsie i" : : : "memory");
  61:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** }
  62:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  63:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  64:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /**
  65:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   \brief   Disable IRQ Interrupts
  66:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  67:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   Can only be executed in Privileged modes.
  68:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  */
  69:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void)
  70:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** {
  71:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   __ASM volatile ("cpsid i" : : : "memory");
  62              		.loc 2 71 0
  63              		.syntax unified
  64              	@ 71 "C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP43
  65 0006 72B6     		cpsid i
  66              	@ 0 "" 2
  67              		.thumb
  68              		.syntax unified
  69              	.LBE7:
  70              	.LBE6:
  16:srcc/main.c   **** //（1.1）声明main函数使用的局部变量
  17:srcc/main.c   **** 	uint32_t mMainLoopCount;  //主循环次数变量
  18:srcc/main.c   **** 	uint8_t  mFlag;           //灯的状态标志
  19:srcc/main.c   **** 	uint32_t mLightCount;     //灯的状态切换次数
  20:srcc/main.c   ****      uint8_t TransferTemp;
  21:srcc/main.c   **** //（1.2）【不变】关总中断
  22:srcc/main.c   **** 	DISABLE_INTERRUPTS;
  23:srcc/main.c   **** 
  24:srcc/main.c   **** //（1.3）给主函数使用的局部变量赋初值
  25:srcc/main.c   ****     mMainLoopCount=0;    //主循环次数变量
  71              		.loc 1 25 0
  72 0008 0023     		movs	r3, #0
  73 000a FB60     		str	r3, [r7, #12]
  26:srcc/main.c   **** 	mFlag='A';           //灯的状态标志
  74              		.loc 1 26 0
  75 000c 4123     		movs	r3, #65
  76 000e FB72     		strb	r3, [r7, #11]
  27:srcc/main.c   **** 	mLightCount=0;       //灯的闪烁次数
  77              		.loc 1 27 0
  78 0010 0023     		movs	r3, #0
  79 0012 7B60     		str	r3, [r7, #4]
  28:srcc/main.c   ****      TransferTemp='A';
  80              		.loc 1 28 0
  81 0014 4123     		movs	r3, #65
  82 0016 FB70     		strb	r3, [r7, #3]
  29:srcc/main.c   **** //（1.4）给全局变量赋初值
  30:srcc/main.c   ****    
  31:srcc/main.c   **** //（1.5）用户外设模块初始化
  32:srcc/main.c   **** 	gpio_init(LIGHT_RED,GPIO_OUTPUT,LIGHT_ON);	//初始化蓝灯
  83              		.loc 1 32 0
  84 0018 0122     		movs	r2, #1
  85 001a 0121     		movs	r1, #1
  86 001c 4FF48070 		mov	r0, #256
  87 0020 FFF7FEFF 		bl	gpio_init
  33:srcc/main.c   ****     emuart_init(UART_User,115200);
  88              		.loc 1 33 0
  89 0024 4FF4E131 		mov	r1, #115200
  90 0028 0320     		movs	r0, #3
  91 002a FFF7FEFF 		bl	emuart_init
  34:srcc/main.c   ****     SPI_init(SPI_B1,1,3000,0,0);//SPI_B1为主机，波特率为3000，时钟极性和相位都为0
  92              		.loc 1 34 0
  93 002e 0023     		movs	r3, #0
  94 0030 0093     		str	r3, [sp]
  95 0032 0023     		movs	r3, #0
  96 0034 40F6B832 		movw	r2, #3000
  97 0038 0121     		movs	r1, #1
  98 003a 0520     		movs	r0, #5
  99 003c FFF7FEFF 		bl	SPI_init
  35:srcc/main.c   ****     SPI_init(SPI_B3,0,3000,0,0);//SPI_B3为从机，波特率为3000，时钟极性和相位都为0
 100              		.loc 1 35 0
 101 0040 0023     		movs	r3, #0
 102 0042 0093     		str	r3, [sp]
 103 0044 0023     		movs	r3, #0
 104 0046 40F6B832 		movw	r2, #3000
 105 004a 0021     		movs	r1, #0
 106 004c 0720     		movs	r0, #7
 107 004e FFF7FEFF 		bl	SPI_init
  36:srcc/main.c   ****     //串口发送初始化提示
  37:srcc/main.c   ****     uart_send_string(0, "使用uart_send_string发送：Hello Uart_0!\r\n");
 108              		.loc 1 37 0
 109 0052 1F49     		ldr	r1, .L8
 110 0054 0020     		movs	r0, #0
 111 0056 FFF7FEFF 		bl	uart_send_string
  38:srcc/main.c   **** //（1.6）使能模块中断
  39:srcc/main.c   ****     //uart_enable_re_int(UART_User);
  40:srcc/main.c   ****      SPI_enable_re_int(SPI_B3);    //使能SPI_B3接收中断
 112              		.loc 1 40 0
 113 005a 0720     		movs	r0, #7
 114 005c FFF7FEFF 		bl	SPI_enable_re_int
 115              	.LBB8:
 116              	.LBB9:
  60:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP432)-20210417\02_CPU\cmsis_gcc.h **** }
 117              		.loc 2 60 0
 118              		.syntax unified
 119              	@ 60 "C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\SPI(MSP43
 120 0060 62B6     		cpsie i
 121              	@ 0 "" 2
 122              		.thumb
 123              		.syntax unified
 124              	.L6:
 125              	.LBE9:
 126              	.LBE8:
  41:srcc/main.c   **** //（1.7）【不变】开总中断
  42:srcc/main.c   **** 	ENABLE_INTERRUPTS;
  43:srcc/main.c   ****         
  44:srcc/main.c   **** //（1）======启动部分（结尾）==========================================
  45:srcc/main.c   **** 
  46:srcc/main.c   **** //（2）======主循环部分（开头）========================================
  47:srcc/main.c   **** 	for(;;)   //for(;;)（开头）
  48:srcc/main.c   **** 	{
  49:srcc/main.c   **** //（2.1）主循环次数变量+1
  50:srcc/main.c   ****         mMainLoopCount++;
 127              		.loc 1 50 0
 128 0062 FB68     		ldr	r3, [r7, #12]
 129 0064 0133     		adds	r3, r3, #1
 130 0066 FB60     		str	r3, [r7, #12]
  51:srcc/main.c   **** //（2.2）未达到主循环次数设定值，继续循环
  52:srcc/main.c   **** 		if (mMainLoopCount<=3000000)  continue;
 131              		.loc 1 52 0
 132 0068 FB68     		ldr	r3, [r7, #12]
 133 006a 1A4A     		ldr	r2, .L8+4
 134 006c 9342     		cmp	r3, r2
 135 006e 2DD9     		bls	.L7
  53:srcc/main.c   **** //（2.3）达到主循环次数设定值，执行下列语句，进行灯的亮暗处理
  54:srcc/main.c   ****        SPI_send1(SPI_B1,TransferTemp++);
 136              		.loc 1 54 0
 137 0070 FB78     		ldrb	r3, [r7, #3]	@ zero_extendqisi2
 138 0072 5A1C     		adds	r2, r3, #1
 139 0074 FA70     		strb	r2, [r7, #3]
 140 0076 1946     		mov	r1, r3
 141 0078 0520     		movs	r0, #5
 142 007a FFF7FEFF 		bl	SPI_send1
  55:srcc/main.c   ****     		if(TransferTemp>'Z')
 143              		.loc 1 55 0
 144 007e FB78     		ldrb	r3, [r7, #3]	@ zero_extendqisi2
 145 0080 5A2B     		cmp	r3, #90
 146 0082 01D9     		bls	.L4
  56:srcc/main.c   ****     			TransferTemp='A';
 147              		.loc 1 56 0
 148 0084 4123     		movs	r3, #65
 149 0086 FB70     		strb	r3, [r7, #3]
 150              	.L4:
  57:srcc/main.c   **** //（2.3.1）清除循环次数变量
  58:srcc/main.c   ****        mMainLoopCount=0;
 151              		.loc 1 58 0
 152 0088 0023     		movs	r3, #0
 153 008a FB60     		str	r3, [r7, #12]
  59:srcc/main.c   **** //（2.3.2）如灯状态标志mFlag为'L'，灯的闪烁次数+1并显示，改变灯状态及标志
  60:srcc/main.c   **** 		if (mFlag=='L')                    //判断灯的状态标志
 154              		.loc 1 60 0
 155 008c FB7A     		ldrb	r3, [r7, #11]	@ zero_extendqisi2
 156 008e 4C2B     		cmp	r3, #76
 157 0090 11D1     		bne	.L5
  61:srcc/main.c   **** 		{
  62:srcc/main.c   **** 			mLightCount++;  
 158              		.loc 1 62 0
 159 0092 7B68     		ldr	r3, [r7, #4]
 160 0094 0133     		adds	r3, r3, #1
 161 0096 7B60     		str	r3, [r7, #4]
  63:srcc/main.c   **** 			printf("灯的闪烁次数 mLightCount = %d\n",mLightCount);
 162              		.loc 1 63 0
 163 0098 7968     		ldr	r1, [r7, #4]
 164 009a 0F48     		ldr	r0, .L8+8
 165 009c FFF7FEFF 		bl	myprintf
  64:srcc/main.c   **** 			mFlag='A';                       //灯的状态标志
 166              		.loc 1 64 0
 167 00a0 4123     		movs	r3, #65
 168 00a2 FB72     		strb	r3, [r7, #11]
  65:srcc/main.c   **** 			gpio_set(LIGHT_RED,LIGHT_ON);  //灯“亮”
 169              		.loc 1 65 0
 170 00a4 0121     		movs	r1, #1
 171 00a6 4FF48070 		mov	r0, #256
 172 00aa FFF7FEFF 		bl	gpio_set
  66:srcc/main.c   **** 			printf(" LIGHT_RED:ON--\n");   //串口输出灯的状态
 173              		.loc 1 66 0
 174 00ae 0B48     		ldr	r0, .L8+12
 175 00b0 FFF7FEFF 		bl	myprintf
 176 00b4 D5E7     		b	.L6
 177              	.L5:
  67:srcc/main.c   **** 		}
  68:srcc/main.c   **** //（2.3.3）如灯状态标志mFlag为'A'，改变灯状态及标志
  69:srcc/main.c   **** 		else
  70:srcc/main.c   **** 		{
  71:srcc/main.c   **** 			mFlag='L';                       //灯的状态标志
 178              		.loc 1 71 0
 179 00b6 4C23     		movs	r3, #76
 180 00b8 FB72     		strb	r3, [r7, #11]
  72:srcc/main.c   **** 			gpio_set(LIGHT_RED,LIGHT_OFF); //灯“暗”
 181              		.loc 1 72 0
 182 00ba 0021     		movs	r1, #0
 183 00bc 4FF48070 		mov	r0, #256
 184 00c0 FFF7FEFF 		bl	gpio_set
  73:srcc/main.c   **** 			printf(" LIGHT_RED:OFF--\n");  //串口输出灯的状态
 185              		.loc 1 73 0
 186 00c4 0648     		ldr	r0, .L8+16
 187 00c6 FFF7FEFF 		bl	myprintf
 188 00ca CAE7     		b	.L6
 189              	.L7:
  52:srcc/main.c   **** //（2.3）达到主循环次数设定值，执行下列语句，进行灯的亮暗处理
 190              		.loc 1 52 0
 191 00cc 00BF     		nop
  50:srcc/main.c   **** //（2.2）未达到主循环次数设定值，继续循环
 192              		.loc 1 50 0
 193 00ce C8E7     		b	.L6
 194              	.L9:
 195              		.align	2
 196              	.L8:
 197 00d0 00000000 		.word	.LC0
 198 00d4 C0C62D00 		.word	3000000
 199 00d8 2C000000 		.word	.LC1
 200 00dc 4C000000 		.word	.LC2
 201 00e0 60000000 		.word	.LC3
 202              		.cfi_endproc
 203              	.LFE123:
 205              	.Letext0:
 206              		.file 3 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\machine\\_default_types.h"
 207              		.file 4 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\_stdint.h"
 208              		.file 5 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
 209              		.file 6 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
 210              		.file 7 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
 211              		.file 8 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\lock.h"
 212              		.file 9 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\_types.h"
 213              		.file 10 "d:\\ahl-gec-ide(4.20)\\gcc\\lib\\gcc\\arm-none-eabi\\7.2.1\\include\\stddef.h"
 214              		.file 11 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\reent.h"
 215              		.file 12 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-C
 216              		.file 13 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-C
DEFINED SYMBOLS
                            *ABS*:00000000 main.c
                            *COM*:00000004 component_fun
                            *COM*:00000002 gcRecvLen
                            *COM*:00000002 gcRecvDCLen
                            *COM*:00001000 gcRecvBuf
C:\Users\lenovo\AppData\Local\Temp\ccmMKidp.s:22     .rodata:00000000 $d
C:\Users\lenovo\AppData\Local\Temp\ccmMKidp.s:37     .text:00000000 $t
C:\Users\lenovo\AppData\Local\Temp\ccmMKidp.s:44     .text:00000000 main
C:\Users\lenovo\AppData\Local\Temp\ccmMKidp.s:197    .text:000000d0 $d

UNDEFINED SYMBOLS
gpio_init
emuart_init
SPI_init
uart_send_string
SPI_enable_re_int
SPI_send1
myprintf
gpio_set
