資源簡介
在原子的HAL庫的串口例程的基礎上修改出來的,用ZET6核心板實現,通過串口3接收數據,串口1連接USB線向電腦發送數據,電腦串口助手讀取接收到的各個通道的值

代碼片段和文件信息
/**
??******************************************************************************
??*?@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?<HAL_TickFreqTypeDef?uwTickFreq?=?HAL_TI
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????28208??2019-06-28?22:27??ZET6串口實驗HAL\CORE\cmsis_armcc.h
?????文件??????56497??2019-06-28?22:27??ZET6串口實驗HAL\CORE\cmsis_armclang.h
?????文件???????9014??2019-06-28?22:27??ZET6串口實驗HAL\CORE\cmsis_compiler.h
?????文件?????111856??2019-09-17?15:05??ZET6串口實驗HAL\CORE\core_cm3.h
?????文件??????15056??2019-06-28?22:27??ZET6串口實驗HAL\CORE\startup_stm32f103xe.s
?????文件???????6916??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\Legacy\stm32f1xx_hal_can_ex_legacy.h
?????文件??????38378??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\Legacy\stm32f1xx_hal_can_legacy.h
?????文件?????204810??2019-06-26?18:55??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h
?????文件??????11594??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h
?????文件??????53734??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_adc.h
?????文件??????47781??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_adc_ex.h
?????文件??????43988??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_can.h
?????文件??????23043??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cec.h
?????文件??????16495??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_conf_template.h
?????文件??????17552??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cortex.h
?????文件???????5255??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_crc.h
?????文件??????16144??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dac.h
?????文件??????16376??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dac_ex.h
?????文件???????7177??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h
?????文件??????18222??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma.h
?????文件??????12842??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma_ex.h
?????文件?????105810??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_eth.h
?????文件??????12220??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_exti.h
?????文件???????9328??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash.h
?????文件??????36979??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash_ex.h
?????文件??????12054??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio.h
?????文件??????36226??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio_ex.h
?????文件??????12637??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_hcd.h
?????文件??????35620??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_i2c.h
?????文件??????23436??2019-06-24?18:05??ZET6串口實驗HAL\HALLIB\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_i2s.h
............此處省略257個文件信息
評論
共有 條評論