   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 68656C6C 		.ascii	"hello Cti!\015\012\000"
  24      6F204374 
  24      69210D0A 
  24      00
  25 000d 000000   		.align	2
  26              	.LC1:
  27 0010 25640A00 		.ascii	"%d\012\000"
  28              		.align	2
  29              	.LC2:
  30 0014 B5C6B5C4 		.ascii	"\265\306\265\304\311\301\313\270\264\316\312\375 mL"
  30      C9C1CBB8 
  30      B4CECAFD 
  30      206D4C
  31 0023 69676874 		.ascii	"ightCount = %d\012\000"
  31      436F756E 
  31      74203D20 
  31      25640A00 
  32 0033 00       		.align	2
  33              	.LC3:
  34 0034 204C4947 		.ascii	" LIGHT_RED:ON--\012\000"
  34      48545F52 
  34      45443A4F 
  34      4E2D2D0A 
  34      00
  35 0045 000000   		.align	2
  36              	.LC4:
  37 0048 204C4947 		.ascii	" LIGHT_RED:OFF--\012\000"
  37      48545F52 
  37      45443A4F 
  37      46462D2D 
  37      0A00
  38              		.text
  39              		.align	1
  40              		.global	main
  41              		.syntax unified
  42              		.thumb
  43              		.thumb_func
  44              		.fpu fpv4-sp-d16
  46              	main:
  47              	.LFB123:
  48              		.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   **** {
  49              		.loc 1 15 0
  50              		.cfi_startproc
  51              		@ args = 0, pretend = 0, frame = 32
  52              		@ frame_needed = 1, uses_anonymous_args = 0
  53 0000 80B5     		push	{r7, lr}
  54              		.cfi_def_cfa_offset 8
  55              		.cfi_offset 7, -8
  56              		.cfi_offset 14, -4
  57 0002 88B0     		sub	sp, sp, #32
  58              		.cfi_def_cfa_offset 40
  59 0004 00AF     		add	r7, sp, #0
  60              		.cfi_def_cfa_register 7
  61              	.LBB7:
  62              	.LBB8:
  63              		.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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /**************************************************************************//**
   2:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  ******************************************************************************/
   7:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
   9:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    *
  21:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****    ---------------------------------------------------------------------------*/
  33:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  34:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  35:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  38:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** #endif
  45:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  46:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  47:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   @{
  51:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  */
  52:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  53:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /**
  54:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  */
  58:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __NVIC_EnableIRQ(void)
  59:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** {
  60:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** }
  62:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  63:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** 
  64:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** /**
  65:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(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\CTI-(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\CTI-(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\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****  */
  69:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** __attribute__( ( always_inline ) ) __STATIC_INLINE void __NVIC_DisableIRQ(void)
  70:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** {
  71:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h ****   __ASM volatile ("cpsid i" : : : "memory");
  64              		.loc 2 71 0
  65              		.syntax unified
  66              	@ 71 "C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP4
  67 0006 72B6     		cpsid i
  68              	@ 0 "" 2
  69              		.thumb
  70              		.syntax unified
  71              	.LBE8:
  72              	.LBE7:
  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   ****     uint8_t data[12];                    //发向从机的数据；
  22:srcc/main.c   **** //uint8_t buf[20];
  23:srcc/main.c   **** //uint8_t visitaddr;
  24:srcc/main.c   ****  //uint8_t flag;
  25:srcc/main.c   ****   uint8_t Num_flag;                    //data位置指向标记
  26:srcc/main.c   **** //（1.2）【不变】关总中断
  27:srcc/main.c   **** 	DISABLE_INTERRUPTS;
  28:srcc/main.c   **** 
  29:srcc/main.c   **** //（1.3）给主函数使用的局部变量赋初值
  30:srcc/main.c   ****     mMainLoopCount=0;    //主循环次数变量
  73              		.loc 1 30 0
  74 0008 0023     		movs	r3, #0
  75 000a FB61     		str	r3, [r7, #28]
  31:srcc/main.c   **** 	mFlag='A';           //灯的状态标志
  76              		.loc 1 31 0
  77 000c 4123     		movs	r3, #65
  78 000e FB76     		strb	r3, [r7, #27]
  32:srcc/main.c   **** 	mLightCount=0;       //灯的闪烁次数
  79              		.loc 1 32 0
  80 0010 0023     		movs	r3, #0
  81 0012 7B61     		str	r3, [r7, #20]
  33:srcc/main.c   ****  
  34:srcc/main.c   ****      Num_flag=0;
  82              		.loc 1 34 0
  83 0014 0023     		movs	r3, #0
  84 0016 FB74     		strb	r3, [r7, #19]
  35:srcc/main.c   **** //（1.4）给全局变量赋初值
  36:srcc/main.c   ****    
  37:srcc/main.c   **** //（1.5）用户外设模块初始化
  38:srcc/main.c   **** 	gpio_init(LIGHT_RED,GPIO_OUTPUT,LIGHT_ON);	//初始化蓝灯
  85              		.loc 1 38 0
  86 0018 0122     		movs	r2, #1
  87 001a 0121     		movs	r1, #1
  88 001c 4FF48070 		mov	r0, #256
  89 0020 FFF7FEFF 		bl	gpio_init
  39:srcc/main.c   ****     emuart_init(UART_User,115200);
  90              		.loc 1 39 0
  91 0024 4FF4E131 		mov	r1, #115200
  92 0028 0320     		movs	r0, #3
  93 002a FFF7FEFF 		bl	emuart_init
  40:srcc/main.c   ****     
  41:srcc/main.c   ****     cti_init(CTI0,PT4|0);
  94              		.loc 1 41 0
  95 002e 4FF44071 		mov	r1, #768
  96 0032 0020     		movs	r0, #0
  97 0034 FFF7FEFF 		bl	cti_init
  42:srcc/main.c   ****     //串口发送初始化提示
  43:srcc/main.c   ****     uart_send_string(0, "hello Cti!\r\n");
  98              		.loc 1 43 0
  99 0038 1C49     		ldr	r1, .L7
 100 003a 0020     		movs	r0, #0
 101 003c FFF7FEFF 		bl	uart_send_string
 102              	.LBB9:
 103              	.LBB10:
  60:C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP432)-20210417\02_CPU\cmsis_gcc.h **** }
 104              		.loc 2 60 0
 105              		.syntax unified
 106              	@ 60 "C:\Users\lenovo\Desktop\MSP-20210417\MSP-20210417\User-MSP432-20210417\ch11-SPI-CTI\CTI-(MSP4
 107 0040 62B6     		cpsie i
 108              	@ 0 "" 2
 109              		.thumb
 110              		.syntax unified
 111              	.L5:
 112              	.LBE10:
 113              	.LBE9:
 114              	.LBB11:
  44:srcc/main.c   **** //（1.6）使能模块中断
  45:srcc/main.c   ****     //uart_enable_re_int(UART_User);
  46:srcc/main.c   ****    
  47:srcc/main.c   **** //（1.7）【不变】开总中断
  48:srcc/main.c   **** 	ENABLE_INTERRUPTS;
  49:srcc/main.c   ****         
  50:srcc/main.c   **** //（1）======启动部分（结尾）==========================================
  51:srcc/main.c   **** 
  52:srcc/main.c   **** //（2）======主循环部分（开头）========================================
  53:srcc/main.c   **** 	for(;;)   //for(;;)（开头）
  54:srcc/main.c   **** 	{
  55:srcc/main.c   **** //（2.1）主循环次数变量+1
  56:srcc/main.c   ****         mMainLoopCount++;
 115              		.loc 1 56 0
 116 0042 FB69     		ldr	r3, [r7, #28]
 117 0044 0133     		adds	r3, r3, #1
 118 0046 FB61     		str	r3, [r7, #28]
  57:srcc/main.c   **** //（2.2）未达到主循环次数设定值，继续循环
  58:srcc/main.c   **** 		if (mMainLoopCount<=3000000)  continue;
 119              		.loc 1 58 0
 120 0048 FB69     		ldr	r3, [r7, #28]
 121 004a 194A     		ldr	r2, .L7+4
 122 004c 9342     		cmp	r3, r2
 123 004e 2BD9     		bls	.L6
  59:srcc/main.c   **** 		mMainLoopCount=0;
 124              		.loc 1 59 0
 125 0050 0023     		movs	r3, #0
 126 0052 FB61     		str	r3, [r7, #28]
  60:srcc/main.c   **** 		
  61:srcc/main.c   **** //（2.3）达到主循环次数设定值，执行下列语句，进行灯的亮暗处理
  62:srcc/main.c   ****          uint8_t i=cti_get_value(CTI0);
 127              		.loc 1 62 0
 128 0054 0020     		movs	r0, #0
 129 0056 FFF7FEFF 		bl	cti_get_value
 130 005a 0346     		mov	r3, r0
 131 005c BB74     		strb	r3, [r7, #18]
  63:srcc/main.c   ****           printf("%d\n",i);
 132              		.loc 1 63 0
 133 005e BB7C     		ldrb	r3, [r7, #18]	@ zero_extendqisi2
 134 0060 1946     		mov	r1, r3
 135 0062 1448     		ldr	r0, .L7+8
 136 0064 FFF7FEFF 		bl	myprintf
  64:srcc/main.c   **** //（2.3.1）清除循环次数变量
  65:srcc/main.c   ****        
  66:srcc/main.c   **** //（2.3.2）如灯状态标志mFlag为'L'，灯的闪烁次数+1并显示，改变灯状态及标志
  67:srcc/main.c   **** 		if (mFlag=='L')                    //判断灯的状态标志
 137              		.loc 1 67 0
 138 0068 FB7E     		ldrb	r3, [r7, #27]	@ zero_extendqisi2
 139 006a 4C2B     		cmp	r3, #76
 140 006c 11D1     		bne	.L4
  68:srcc/main.c   **** 		{
  69:srcc/main.c   **** 			mLightCount++;  
 141              		.loc 1 69 0
 142 006e 7B69     		ldr	r3, [r7, #20]
 143 0070 0133     		adds	r3, r3, #1
 144 0072 7B61     		str	r3, [r7, #20]
  70:srcc/main.c   **** 			printf("灯的闪烁次数 mLightCount = %d\n",mLightCount);
 145              		.loc 1 70 0
 146 0074 7969     		ldr	r1, [r7, #20]
 147 0076 1048     		ldr	r0, .L7+12
 148 0078 FFF7FEFF 		bl	myprintf
  71:srcc/main.c   **** 			mFlag='A';                       //灯的状态标志
 149              		.loc 1 71 0
 150 007c 4123     		movs	r3, #65
 151 007e FB76     		strb	r3, [r7, #27]
  72:srcc/main.c   **** 			gpio_set(LIGHT_RED,LIGHT_ON);  //灯“亮”
 152              		.loc 1 72 0
 153 0080 0121     		movs	r1, #1
 154 0082 4FF48070 		mov	r0, #256
 155 0086 FFF7FEFF 		bl	gpio_set
  73:srcc/main.c   **** 			printf(" LIGHT_RED:ON--\n");   //串口输出灯的状态
 156              		.loc 1 73 0
 157 008a 0C48     		ldr	r0, .L7+16
 158 008c FFF7FEFF 		bl	myprintf
 159 0090 D7E7     		b	.L5
 160              	.L4:
  74:srcc/main.c   **** 		}
  75:srcc/main.c   **** //（2.3.3）如灯状态标志mFlag为'A'，改变灯状态及标志
  76:srcc/main.c   **** 		else
  77:srcc/main.c   **** 		{
  78:srcc/main.c   **** 			mFlag='L';                      //灯的状态标志
 161              		.loc 1 78 0
 162 0092 4C23     		movs	r3, #76
 163 0094 FB76     		strb	r3, [r7, #27]
  79:srcc/main.c   **** 			gpio_set(LIGHT_RED,LIGHT_OFF); //灯“暗”
 164              		.loc 1 79 0
 165 0096 0021     		movs	r1, #0
 166 0098 4FF48070 		mov	r0, #256
 167 009c FFF7FEFF 		bl	gpio_set
  80:srcc/main.c   **** 			printf(" LIGHT_RED:OFF--\n");  //串口输出灯的状态
 168              		.loc 1 80 0
 169 00a0 0748     		ldr	r0, .L7+20
 170 00a2 FFF7FEFF 		bl	myprintf
 171 00a6 CCE7     		b	.L5
 172              	.L6:
  58:srcc/main.c   **** 		mMainLoopCount=0;
 173              		.loc 1 58 0
 174 00a8 00BF     		nop
 175              	.LBE11:
  54:srcc/main.c   **** //（2.1）主循环次数变量+1
 176              		.loc 1 54 0
 177 00aa CAE7     		b	.L5
 178              	.L8:
 179              		.align	2
 180              	.L7:
 181 00ac 00000000 		.word	.LC0
 182 00b0 C0C62D00 		.word	3000000
 183 00b4 10000000 		.word	.LC1
 184 00b8 14000000 		.word	.LC2
 185 00bc 34000000 		.word	.LC3
 186 00c0 48000000 		.word	.LC4
 187              		.cfi_endproc
 188              	.LFE123:
 190              	.Letext0:
 191              		.file 3 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\machine\\_default_types.h"
 192              		.file 4 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\_stdint.h"
 193              		.file 5 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
 194              		.file 6 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
 195              		.file 7 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-CT
 196              		.file 8 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\lock.h"
 197              		.file 9 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\_types.h"
 198              		.file 10 "d:\\ahl-gec-ide(4.20)\\gcc\\lib\\gcc\\arm-none-eabi\\7.2.1\\include\\stddef.h"
 199              		.file 11 "d:\\ahl-gec-ide(4.20)\\gcc\\arm-none-eabi\\include\\sys\\reent.h"
 200              		.file 12 "C:\\Users\\lenovo\\Desktop\\MSP-20210417\\MSP-20210417\\User-MSP432-20210417\\ch11-SPI-C
 201              		.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\ccphLnwf.s:22     .rodata:00000000 $d
C:\Users\lenovo\AppData\Local\Temp\ccphLnwf.s:39     .text:00000000 $t
C:\Users\lenovo\AppData\Local\Temp\ccphLnwf.s:46     .text:00000000 main
C:\Users\lenovo\AppData\Local\Temp\ccphLnwf.s:181    .text:000000ac $d

UNDEFINED SYMBOLS
gpio_init
emuart_init
cti_init
uart_send_string
cti_get_value
myprintf
gpio_set
