/**
@page USART_Printf USART Printf example
@verbatim
******************** (C) COPYRIGHT 2014 STMicroelectronics *******************
* @file USART/USART_Printf/readme.txt
* @author MCD Application Team
* @version V1.4.0
* @date 24-July-2014
* @brief Description of the USART Printf example.
******************************************************************************
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
@endverbatim
@par Example Description
This example shows how to retarget the C library printf function to the USART.
This implementation output the printf message on the Hyperterminal using USART1
for STM32F051R8T6 devices and USART2 for STM32F072VBT6 devices.
The USARTx is configured as follow:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Hardware flow control disabled (RTS and CTS signals)
- Receive and transmit enabled
@par Directory contents
- USART/Printf/stm32f0xx_conf.h Library Configuration file
- USART/Printf/stm32f0xx_it.h Interrupt handlers header file
- USART/Printf/stm32f0xx_it.c Interrupt handlers
- USART/Printf/main.c Main program
- PWR/PWR_STANDBY/main.h Header for main.c module
- USART/Printf/system_stm32f0xx.c STM32F0xx system source file
@note The "system_stm32f0xx.c" is generated by an automatic clock configuration
tool and can be easily customized to meet user application requirements.
To select different clock setup, use the "STM32F0xx_Clock_Configuration_VX.Y.Z.xls"
provided with the AN4055 package available on <a href="http://www.st.com/internet/mcu/class/1734.jsp"> ST Microcontrollers </a>
@par Hardware and Software environment
- This example runs on STM32F0xx devices.
- This example has been tested with STMicroelectronics STM320518-EVAL and
STM32072B-EVAL including respectively STM32F051R8T6 and STM32F072VBT6 devices
and can be easily tailored to any other supported device and development board
- STM320518-EVAL Set-up
- Connect a null-modem female/female RS232 cable between the DB9 connector
CN7 and PC serial port.
- STM32072B-EVAL Set-up
- Connect a null-modem female/female RS232 cable between the DB9 connector
CN10 and PC serial port.
- Hyperterminal configuration:
- Word Length = 8 Bits
- One Stop Bit
- No parity
- BaudRate = 115200 baud
- flow control: None
@par How to use it ?
In order to make the program work, you must do the following :
- Copy all source files from this example folder to the template folder under
Project\STM32F0xx_StdPeriph_Templates
- Open your preferred toolchain
- Select STM32F051 workspace
- If the used device is STM32F051R8T6 choose STM32F051 project
- Add the following files to the project source list
- Utilities\STM32_EVAL\STM320518_EVAL\stm320518_eval.c
- If the used device is STM32F072VBT6 choose STM32F072 project
- Add the following files to the project source list
- Utilities\STM32_EVAL\STM32072B_EVAL\stm32072b_eval.c
- Rebuild all files and load your image into target memory
- Run the example
@note Known Limitations
This example retargets the C library printf() function to the Hyperterminal
(C library I/O redirected).
TrueSTUDIO Lite version does not support I/O redirection, and instead
have do-nothing stubs compiled into the C runtime library.
To use printf() with TrueSTUDIO Professional version, just include the
TrueSTUDIO Minimal System calls file "syscalls.c" provided within the toolchain.
It contains additional code to support printf() redirection.
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
stm32f030c8t6低功耗standby模式3.1微安uA,keil工程文件 (157个子文件)
STM32F0xx.uvguix.Administrator 87KB
STM32F0xx.axf 272KB
stm32f0xx_tim.c 130KB
stm32f0xx_rtc.c 93KB
stm32f0xx_usart.c 92KB
stm32f0xx_rcc.c 69KB
stm32f0xx_can.c 57KB
stm32f0xx_i2c.c 55KB
stm32f0xx_spi.c 52KB
stm32f0xx_adc.c 47KB
stm32f0xx_dma.c 46KB
stm32f0xx_flash.c 42KB
stm32f0xx_dac.c 26KB
stm32f0xx_cec.c 24KB
stm32f0xx_gpio.c 21KB
stm32f0xx_pwr.c 20KB
stm32f0xx_syscfg.c 19KB
stm32f0xx_comp.c 15KB
stm32f0xx_crs.c 14KB
main.c 14KB
system_stm32f0xx.c 12KB
system_stm32f0xx.c 12KB
stm32f0xx_iwdg.c 11KB
stm32f0xx_exti.c 11KB
stm32f0xx_crc.c 11KB
stm32f0xx_wwdg.c 10KB
stm32f0xx_dbgmcu.c 7KB
stm32f0xx_misc.c 6KB
stm32f0xx_it.c 6KB
STM32F0xx.uvguix.canhong ma 165KB
stm32f0xx_tim.crf 327KB
main.crf 320KB
stm32f0xx_it.crf 317KB
stm32f0xx_rcc.crf 316KB
stm32f0xx_usart.crf 316KB
stm32f0xx_flash.crf 314KB
stm32f0xx_spi.crf 312KB
stm32f0xx_adc.crf 311KB
stm32f0xx_dac.crf 310KB
stm32f0xx_gpio.crf 309KB
system_stm32f0xx.crf 308KB
stm32f0xx_pwr.crf 308KB
stm32f0xx_syscfg.crf 308KB
stm32f0xx_exti.crf 308KB
stm32f0xx_wwdg.crf 307KB
stm32f0xx_misc.crf 307KB
stm32f0xx_it.d 3KB
stm32f0xx_syscfg.d 3KB
stm32f0xx_usart.d 3KB
stm32f0xx_flash.d 3KB
stm32f0xx_wwdg.d 3KB
stm32f0xx_gpio.d 3KB
stm32f0xx_exti.d 3KB
stm32f0xx_misc.d 3KB
system_stm32f0xx.d 3KB
stm32f0xx_tim.d 3KB
stm32f0xx_dac.d 3KB
stm32f0xx_pwr.d 3KB
stm32f0xx_adc.d 3KB
stm32f0xx_spi.d 3KB
stm32f0xx_rcc.d 3KB
main.d 3KB
startup_stm32f030.d 110B
Target_1_STM32F030C8.dbgconf 2KB
Target_1_STM32F030C8Tx.dbgconf 2KB
STM32F0xx_Target 1.dep 44KB
stm32f0xx.h 452KB
arm_math.h 237KB
core_cm4.h 107KB
core_cm3.h 97KB
core_sc300.h 96KB
stm32f0xx_dma.h 55KB
stm32f0xx_tim.h 51KB
core_sc000.h 41KB
core_cm0plus.h 39KB
stm32f0xx_rtc.h 37KB
core_cm0.h 32KB
stm32f0xx_syscfg.h 29KB
stm32f0xx_rcc.h 27KB
stm32f0xx_can.h 27KB
stm32f0xx_usart.h 26KB
core_cm4_simd.h 22KB
stm32f0xx_spi.h 22KB
stm32f0xx_adc.h 21KB
core_cmInstr.h 20KB
stm32f0xx_i2c.h 18KB
stm32f0xx_flash.h 17KB
core_cmFunc.h 17KB
stm32f0xx_dac.h 15KB
stm32f0xx_gpio.h 13KB
stm32f0xx_cec.h 12KB
stm32f0xx_comp.h 10KB
stm32f0xx_exti.h 10KB
stm32f0xx_crs.h 8KB
stm32f0xx_pwr.h 7KB
stm32f0xx_crc.h 5KB
arm_common_tables.h 5KB
stm32f0xx_iwdg.h 4KB
stm32f0xx_misc.h 4KB
stm32f0xx_dbgmcu.h 4KB
共 157 条
- 1
- 2
资源评论
- hjh0022022-01-17花了巨资下载(50C币),亲测有效.3V2.9uA.
qingfengruomeng
- 粉丝: 6
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功