📄 probe_rs232_os.lst
字号:
##############################################################################
# #
# IAR ARM ANSI C/C++ Compiler V4.42A/W32 KICKSTART 13/Mar/2009 16:01:07 #
# Copyright 1999-2005 IAR Systems. All rights reserved. #
# #
# Cpu mode = thumb #
# Endian = little #
# Stack alignment = 4 #
# Source file = E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
# ion\Generic\RS-232\OS\uCOS-II\probe_rs232_os.c #
# Command line = E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
# ion\Generic\RS-232\OS\uCOS-II\probe_rs232_os.c -lCN #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\List\ -o #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\Obj\ -z6 --no_unroll #
# --no_inline --no_tbaa --no_scheduling --debug #
# --cpu_mode thumb --endian little --cpu cortex-M3 #
# --stack_align 4 -e --fpu None --dlib_config #
# "C:\Program Files\IAR Systems\Embedded Workbench #
# 4.0 Kickstart\arm\LIB\dl7mptnnl8n.h" -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\ -I E:\UC_OS\Micrium\Software\EvalBoa #
# rds\ST\STM3210B-EVAL\IAR\OS-Probe\..\..\..\..\..\uco #
# s-ii\ports\arm-cortex-m3\generic\iar\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\ucos-ii\source\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uc-lib\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uc-cpu\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uc-cpu\ARM-Cortex-M3\I #
# AR\ -I E:\UC_OS\Micrium\Software\EvalBoards\ST\STM32 #
# 10B-EVAL\IAR\OS-Probe\..\..\..\..\..\cpu\st\stm32\in #
# c\ -I E:\UC_OS\Micrium\Software\EvalBoards\ST\STM321 #
# 0B-EVAL\IAR\OS-Probe\..\BSP\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
# ication\Generic\RS-232\Source\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
# ication\Generic\RS-232\Ports\ST\STM32\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
# ication\Generic\Source\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Plugin #
# s\uCOS-II\ -I "C:\Program Files\IAR #
# Systems\Embedded Workbench 4.0 Kickstart\arm\INC\" #
# List file = E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\List\probe_rs232_os.lst #
# Object file = E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\Obj\probe_rs232_os.r79 #
# #
# #
##############################################################################
E:\UC_OS\Micrium\Software\uC-Probe\Target\Communication\Generic\RS-232\OS\uCOS-II\probe_rs232_os.c
1 /*
2 *********************************************************************************************************
3 * uC/Probe Communication
4 *
5 * (c) Copyright 2007; Micrium, Inc.; Weston, FL
6 *
7 * All rights reserved. Protected by international copyright laws.
8 * Knowledge of the source code may NOT be used to develop a similar product.
9 * Please help us continue to provide the Embedded community with the finest
10 * software available. Your honesty is greatly appreciated.
11 *********************************************************************************************************
12 */
13
14 /*
15 *********************************************************************************************************
16 *
17 * uC/Probe
18 *
19 * Communication: RS-232
20 *
21 * Filename : probe_rs232_os.c
22 * Version : V1.20
23 * Programmer(s) : Brian Nagel
24 * Note(s) : (1) This file is the uC/OS-II layer for the uC/Probe RS-232 Communication Module.
25 *********************************************************************************************************
26 */
27
28 /*
29 *********************************************************************************************************
30 * INCLUDE FILES
31 *********************************************************************************************************
32 */
33
34 #include <probe_rs232.h>
35 #include <ucos_ii.h>
36
37
38 /*
39 *********************************************************************************************************
40 * LOCAL DEFINES
41 *********************************************************************************************************
42 */
43
44
45 /*
46 *********************************************************************************************************
47 * LOCAL CONSTANTS
48 *********************************************************************************************************
49 */
50
51
52 /*
53 *********************************************************************************************************
54 * LOCAL DATA TYPES
55 *********************************************************************************************************
56 */
57
58
59 /*
60 *********************************************************************************************************
61 * LOCAL TABLES
62 *********************************************************************************************************
63 */
64
65
66 /*
67 *********************************************************************************************************
68 * LOCAL GLOBAL VARIABLES
69 *********************************************************************************************************
70 */
71
72 #if (PROBE_RS232_PARSE_TASK > 0)
\ In segment DATA_Z, align 4, align-sorted
73 static OS_STK ProbeRS232_OS_TaskStk[PROBE_RS232_TASK_STK_SIZE];
74
75 #if (OS_SEM_EN > 0)
76 static OS_EVENT *ProbeRS232_OS_Sem;
\ ProbeRS232_OS_Sem:
\ 00000000 DS8 4
\ 00000004 DS8 1024
77 #endif
78
79 #endif
80
81
82 /*
83 *********************************************************************************************************
84 * LOCAL FUNCTION PROTOTYPES
85 *********************************************************************************************************
86 */
87
88 #if (PROBE_RS232_PARSE_TASK > 0)
89 static void ProbeRS232_OS_Task(void *p_arg);
90 #endif
91
92
93 /*
94 *********************************************************************************************************
95 * LOCAL CONFIGURATION ERRORS
96 *********************************************************************************************************
97 */
98
99 #if (PROBE_RS232_PARSE_TASK > 0) && (OS_SEM_EN == 0)
100 #error "If PROBE_RS232_PARSE_TASK is set to DEF_TRUE, then semaphores MUST be enabled."
101 #endif
102
103
104 /*
105 *********************************************************************************************************
106 *********************************************************************************************************
107 ** GLOBAL FUNCTIONS
108 *********************************************************************************************************
109 *********************************************************************************************************
110 */
111
112 /*
113 *********************************************************************************************************
114 * Initialize uC/OS-II Objects for uC/Probe RS-232 Communication Module
115 *
116 * Description: This function creates system objects--a semaphore and a task--for the RS-232 communication.
117 *
118 * Argument(s): None.
119 *
120 * Returns : None
121 *********************************************************************************************************
122 */
123
124 #if (PROBE_RS232_PARSE_TASK > 0)
\ In segment CODE, align 4, keep-with-next
125 void ProbeRS232_OS_Init (void)
126 {
\ ProbeRS232_OS_Init:
\ 00000000 31B5 PUSH {R0,R4,R5,LR}
127 #if (OS_TASK_NAME_SIZE > 13) || (OS_EVENT_NAME_SIZE > 13)
128 CPU_INT08U err;
129 #endif
130
131
132 #if (OS_SEM_EN > 0)
133 ProbeRS232_OS_Sem = OSSemCreate(0);
\ 00000002 .... LDR.N R4,??DataTable2 ;; ProbeRS232_OS_Sem
\ 00000004 0020 MOVS R0,#+0
\ 00000006 ........ _BLF OSSemCreate,??OSSemCreate??rT
\ 0000000A 2060 STR R0,[R4, #+0]
134 #if (OS_EVENT_NAME_SIZE > 16)
135 OSEventNameSet(ProbeRS232_OS_Sem, (CPU_INT08U *)"uC/Probe RS-232", &err);
136 #else
137 #if (OS_EVENT_NAME_SIZE > 13)
138 OSEventNameSet(ProbeRS232_OS_Sem, (CPU_INT08U *)"Probe RS-232", &err);
\ 0000000C 0D4D LDR.N R5,??ProbeRS232_OS_Init_0 ;; `?<Constant "Probe RS-232">`
\ 0000000E 6A46 MOV R2,SP
\ 00000010 2900 MOVS R1,R5
\ 00000012 ........ _BLF OSEventNameSet,??OSEventNameSet??rT
139 #endif
140 #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -