资源简介
基于cubemx生成的初始化代码,并做了串口中断不定长接收,收到什么就发出去什么。代码只是简单的测试,给大家提供个思路吧。
代码片段和文件信息
/**
******************************************************************************
* @file stm32f1xx_hal.c
* @author MCD Application Team
* @brief HAL module driver.
* This is the common part of the HAL initialization
*
@verbatim
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
The common HAL driver contains a set of generic and common APIs that can be
used by the PPP peripheral drivers and the user to start using the HAL.
[..]
The HAL contains two APIs‘ categories:
(+) Common HAL APIs
(+) Services HAL APIs
@endverbatim
******************************************************************************
* @attention
*
* © COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f1xx_hal.h“
/** @addtogroup STM32F1xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
#ifdef HAL_MODULE_ENABLED
/* Private typedef -----------------------------------------------------------*/
/* Private define ---------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6415 2019-05-14 10:59 103program\forTest\.mxproject
文件 884899 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h
文件 8788 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h
文件 3337 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h
文件 7265 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\arm_common_tables.h
文件 3942 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\arm_const_structs.h
文件 252339 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\arm_math.h
文件 24423 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\cmsis_armcc.h
文件 55083 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\cmsis_armcc_V6.h
文件 41435 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\cmsis_gcc.h
文件 37218 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cm0.h
文件 44796 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cm0plus.h
文件 103909 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cm3.h
文件 114498 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cm4.h
文件 139660 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cm7.h
文件 3620 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cmFunc.h
文件 3636 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cmInstr.h
文件 3662 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_cmSimd.h
文件 45262 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_sc000.h
文件 102809 2019-05-09 09:22 103program\forTest\Drivers\CMSIS\Include\core_sc300.h
文件 181878 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h
文件 12775 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h
文件 18812 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cortex.h
文件 8436 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h
文件 19481 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma.h
文件 14101 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma_ex.h
文件 10589 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash.h
文件 38238 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash_ex.h
文件 13299 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio.h
文件 37475 2019-05-09 09:22 103program\forTest\Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio_ex.h
............此处省略214个文件信息
相关资源
- STM32F407+OV2640+ONENET
- STM32颜色传感器
- stm32AD采集通过fft求信号频率
- 基于STM32开发的数据手套控制机械臂
- STM32 SPI双机中断通信
- STM32F4 CAN1 通讯源码
- 基于STM32F4的小波变换移植含小波分解
- 飞控stm32程序
- NB物联网模块 STM32+BC28
- stm32f107ptp时钟同步
- ENC28J60最全资料,含51AVRLPCSTM32程序源
- GY6500源代码
- STM32F407 双轮小车 定时器编码器模式测
- 基于STM32C8T6的按键温度双模式控制风
- stm32f103+dht11温湿度传感器例程
- 基于STM32F103的USB键盘程序代码
- stm32 f103RCT6用正点原子Mini板可用的R
- STM32f103循迹小车控制程序源码
- STM32实现GPRS与服务器数据传输
- STM32F103基于keil写的简易示波器
- STM32_旋转倒立摆.rar
- STM32_F1系列FreeRTOS工程模板
- STM32做的一个MP4 实现了长文件名,M
- STM32F1驱动APDS9960识别手势
- 基于RFID的签到系统设计
- 基于stm32 和LCD1602的电子密码锁课程设
- 基于stm32F103c8t6和GPS模块做的小玩意儿
- 使用STM32实现PMSM电机的正弦驱动
- 中景园电子0.96OLED显示屏_STM32_F103C8系
- stm32rc522
评论
共有 条评论