📄 probe_rs232c.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\Ports\ST\STM32\probe_rs232c.c #
# Command line = E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
# ion\Generic\RS-232\Ports\ST\STM32\probe_rs232c.c #
# -lCN E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210 #
# B-EVAL\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_rs232c.lst #
# Object file = E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\Obj\probe_rs232c.r79 #
# #
# #
##############################################################################
E:\UC_OS\Micrium\Software\uC-Probe\Target\Communication\Generic\RS-232\Ports\ST\STM32\probe_rs232c.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 * Port for the ST STM32
21 *
22 * Filename : probe_rs232c.c
23 * Version : V1.20
24 * Programmer(s) : Brian Nagel
25 *********************************************************************************************************
26 */
27
28 /*
29 *********************************************************************************************************
30 * INCLUDE FILES
31 *********************************************************************************************************
32 */
33
34 #include <probe_rs232.h>
35 #include <includes.h>
36
37 /*
38 *********************************************************************************************************
39 * LOCAL DEFINES
40 *********************************************************************************************************
41 */
42
43
44 /*
45 *********************************************************************************************************
46 * LOCAL GLOBAL VARIABLES
47 *********************************************************************************************************
48 */
49
50
51 /*
52 *********************************************************************************************************
53 * LOCAL FUNCTION PROTOTYPES
54 *********************************************************************************************************
55 */
56
57
58 /*
59 *********************************************************************************************************
60 * LOCAL CONFIGURATION ERRORS
61 *********************************************************************************************************
62 */
63
64 #ifndef PROBE_RS232_COMM_SEL
65
66 #error "PROBE_RS232_COMM_SEL not #define'd in 'probe_com_cfg.h' "
67 #error " [MUST be PROBE_RS232_UART_1 ] "
68 #error " [ || PROBE_RS232_UART_2 ] "
69 #error " [ || PROBE_RS232_UART_3 ] "
70
71 #elif (PROBE_RS232_COMM_SEL != PROBE_RS232_UART_1) && \
72 (PROBE_RS232_COMM_SEL != PROBE_RS232_UART_2) && \
73 (PROBE_RS232_COMM_SEL != PROBE_RS232_UART_3)
74
75 #error "PROBE_RS232_COMM_SEL illegally #define'd in 'probe_com_cfg.h' "
76 #error " [MUST be PROBE_RS232_UART_1 ] "
77 #error " [ || PROBE_RS232_UART_2 ] "
78 #error " [ || PROBE_RS232_UART_3 ] "
79 #endif
80
81 #ifndef PROBE_RS232_UART_1_REMAP
82
83 #error "PROBE_RS232_UART_1_REMAP not #define'd in 'probe_com_cfg.h' "
84 #error " [MUST be DEF_TRUE ] "
85 #error " [ || DEF_FALSE ] "
86 #endif
87
88 #ifndef PROBE_RS232_UART_2_REMAP
89
90 #error "PROBE_RS232_UART_2_REMAP not #define'd in 'probe_com_cfg.h' "
91 #error " [MUST be DEF_TRUE ] "
92 #error " [ || DEF_FALSE ] "
93 #endif
94
95 #ifndef PROBE_RS232_UART_3_REMAP_PARTIAL
96
97 #error "PROBE_RS232_UART_3_REMAP_PARTIAL not #define'd in 'probe_com_cfg.h' "
98 #error " [MUST be DEF_TRUE ] "
99 #error " [ || DEF_FALSE ] "
100 #endif
101
102 #ifndef PROBE_RS232_UART_3_REMAP_FULL
103
104 #error "PROBE_RS232_UART_3_REMAP_FULL not #define'd in 'probe_com_cfg.h' "
105 #error " [MUST be DEF_TRUE ] "
106 #error " [ || DEF_FALSE ] "
107 #endif
108
109 /*
110 *********************************************************************************************************
111 *********************************************************************************************************
112 * GLOBAL FUNCTIONS
113 *********************************************************************************************************
114 *********************************************************************************************************
115 */
116
117 /*
118 *********************************************************************************************************
119 * Initialize COM port for uC/Probe RS-232 Communication Module
120 *
121 * Description: Initialize the UART for uC/Probe communication.
122 *
123 * Argument(s): baud_rate is intended baud rate of the RS-232.
124 *
125 * Returns : None
126 *
127 * Note(s) : (1) The following constants control the GPIO remap for the USART control lines:
128 *
129 * PROBE_RS232_UART_1_REMAP
130 * PROBE_RS232_UART_2_REMAP
131 * PROBE_RS232_UART_3_REMAP_PARTIAL
132 * PROBE_RS232_UART_3_REMAP_FULL
133 *
134 * Though the #error directives in "Local Configuration Errors" will require that
135 * all are defined, the value of those bearing on the USART not used will have no
136 * effect.
137 *
138 * (2) PROBE_RS232_UART_3_REMAP_PARTIAL has precedence over PROBE_RS232_UART_3_REMAP_FULL,
139 * if both are defined to DEF_TRUE.
140 *********************************************************************************************************
141 */
142
\ In segment CODE, align 4, keep-with-next
143 void ProbeRS232_InitTarget (CPU_INT32U baud_rate)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -