資源簡介
現在好像下載資源分最少都要兩個了···
提供的代碼為一個使用標準外設庫編寫的簡單Demo工程,該工程主要配置TIM的編碼器模式,通過定時讀取編碼器的方向(DIR),和計數(CNT),并通過串口打印出來。
其中里面附帶一個工程(用于模擬編碼器AB相波形的工程)
代碼片段和文件信息
/**
??******************************************************************************
??*?@文件名?????:?main.c
??*?@作者???????:?strongerHuang
??*?@版本???????:?V1.0.0
??*?@日期???????:?2017年12月19日
??*?@摘要???????:?主函數?-?Demo軟件工程
??******************************************************************************/
/*----------------------------------------------------------------------------
??更新日志:
??2017-12-19?V1.0.0:初始版本
??----------------------------------------------------------------------------*/
/*?包含的頭文件?--------------------------------------------------------------*/
#include?“bsp.h“
#include?“bsp_timer.h“
#include?“bsp_usart.h“
/************************************************
函數名稱?:?System_Initializes
功????能?:?系統初始化
參????數?:?無
返?回?值?:?無
作????者?:?strongerHuang
*******
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\App\
?????文件????????1677??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\App\main.c
?????文件????????5552??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\App\stm32f4xx_conf.h
?????文件????????4732??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\App\stm32f4xx_it.c
?????文件????????2219??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\App\stm32f4xx_it.h
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\
?????文件????????2877??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\bsp.c
?????文件????????1242??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\bsp.h
?????文件????????5004??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\bsp_timer.c
?????文件????????1427??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\bsp_timer.h
?????文件????????5027??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\bsp_usart.c
?????文件?????????917??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Bsp\bsp_usart.h
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Doc\
?????文件????????1113??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Doc\ReadMe.txt
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\
?????目錄???????????0??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\
?????文件????????7253??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\arm_common_tables.h
?????文件????????3942??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\arm_const_structs.h
?????文件??????252177??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\arm_math.h
?????文件???????36181??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cm0.h
?????文件???????43812??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cm0plus.h
?????文件??????103865??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cm3.h
?????文件??????114403??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cm4.h
?????文件??????138654??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cm7.h
?????文件???????18323??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cmFunc.h
?????文件???????27908??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cmInstr.h
?????文件???????22947??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_cmSimd.h
?????文件???????44330??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_sc000.h
?????文件??????102775??2017-12-19?20:00??STM32F4_TIM編碼器模式配置\Libraries\CMSIS\CoreSupport\core_sc300.h
............此處省略106個文件信息
評論
共有 條評論