在原子的HAL库的串口例程的基础上修改出来的,用ZET6核心板实现,通过串口3接收数据,串口1连接USB线向电脑发送数据,电脑串口助手读取接收到的各个通道的值
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28208 2019-06-28 22:27 ZET6串口实验HALCOREcmsis_armcc.h
文件 56497 2019-06-28 22:27 ZET6串口实验HALCOREcmsis_armclang.h
文件 9014 2019-06-28 22:27 ZET6串口实验HALCOREcmsis_compiler.h
文件 111856 2019-09-17 15:05 ZET6串口实验HALCOREcore_cm3.h
文件 15056 2019-06-28 22:27 ZET6串口实验HALCOREstartup_stm32f103xe.s
文件 6916 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncLegacystm32f1xx_hal_can_ex_legacy.h
文件 38378 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncLegacystm32f1xx_hal_can_legacy.h
文件 204810 2019-06-26 18:55 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncLegacystm32_hal_legacy.h
文件 11594 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal.h
文件 53734 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_adc.h
文件 47781 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_adc_ex.h
文件 43988 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_can.h
文件 23043 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_cec.h
文件 16495 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_conf_template.h
文件 17552 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_cortex.h
文件 5255 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_crc.h
文件 16144 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dac.h
文件 16376 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dac_ex.h
文件 7177 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_def.h
文件 18222 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dma.h
文件 12842 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dma_ex.h
文件 105810 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_eth.h
文件 12220 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_exti.h
文件 9328 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_flash.h
文件 36979 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_flash_ex.h
文件 12054 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_gpio.h
文件 36226 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_gpio_ex.h
文件 12637 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_hcd.h
文件 35620 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_i2c.h
文件 23436 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_i2s.h
............此处省略257个文件信息
/**
******************************************************************************
* @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.
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license
* the “License“; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f1xx_hal.h“
/** @addtogroup STM32F1xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
#ifdef HAL_MODULE_ENABLED
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/** @defgroup HAL_Private_Constants HAL Private Constants
* @{
*/
/**
* @brief STM32F1xx HAL Driver version number V1.1.4
*/
#define __STM32F1xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define __STM32F1xx_HAL_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
#define __STM32F1xx_HAL_VERSION_SUB2 (0x04U) /*!< [15:8] sub2 version */
#define __STM32F1xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */
#define __STM32F1xx_HAL_VERSION ((__STM32F1xx_HAL_VERSION_MAIN << 24)
|(__STM32F1xx_HAL_VERSION_SUB1 << 16)
|(__STM32F1xx_HAL_VERSION_SUB2 << 8 )
|(__STM32F1xx_HAL_VERSION_RC))
#define IDCODE_DEVID_MASK 0x00000FFFU
/**
* @}
*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/** @defgroup HAL_Private_Variables HAL Private Variables
* @{
*/
__IO uint32_t uwTick;
uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS); /* Invalid PRIO */
HAL_TickFreqTypeDef uwTickFreq = HAL_TI
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28208 2019-06-28 22:27 ZET6串口实验HALCOREcmsis_armcc.h
文件 56497 2019-06-28 22:27 ZET6串口实验HALCOREcmsis_armclang.h
文件 9014 2019-06-28 22:27 ZET6串口实验HALCOREcmsis_compiler.h
文件 111856 2019-09-17 15:05 ZET6串口实验HALCOREcore_cm3.h
文件 15056 2019-06-28 22:27 ZET6串口实验HALCOREstartup_stm32f103xe.s
文件 6916 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncLegacystm32f1xx_hal_can_ex_legacy.h
文件 38378 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncLegacystm32f1xx_hal_can_legacy.h
文件 204810 2019-06-26 18:55 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncLegacystm32_hal_legacy.h
文件 11594 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal.h
文件 53734 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_adc.h
文件 47781 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_adc_ex.h
文件 43988 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_can.h
文件 23043 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_cec.h
文件 16495 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_conf_template.h
文件 17552 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_cortex.h
文件 5255 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_crc.h
文件 16144 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dac.h
文件 16376 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dac_ex.h
文件 7177 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_def.h
文件 18222 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dma.h
文件 12842 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_dma_ex.h
文件 105810 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_eth.h
文件 12220 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_exti.h
文件 9328 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_flash.h
文件 36979 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_flash_ex.h
文件 12054 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_gpio.h
文件 36226 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_gpio_ex.h
文件 12637 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_hcd.h
文件 35620 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_i2c.h
文件 23436 2019-06-24 18:05 ZET6串口实验HALHALLIBSTM32F1xx_HAL_DriverIncstm32f1xx_hal_i2s.h
............此处省略257个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)