資源簡介
stm32f103usb游戲手柄項目 可用于usb鍵盤 這個已經移植成功,絕對可用(找了很多網上資源都不可以用)

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????hw_config.c
??*?@author??MCD?Application?Team
??*?@version?V4.0.0
??*?@date????21-January-2013
??*?@brief???Hardware?Configuration?&?Setup
??******************************************************************************
??*?@attention
??*
??*?©?COPYRIGHT?2013?STMicroelectronics
??*
??*?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.
??*
??******************************************************************************
??*/
/*?Includes?------------------------------------------------------------------*/
#include?“hw_config.h“
#include?“usb_lib.h“
#include?“usb_desc.h“
#include?“usb_pwr.h“
///*?Private?typedef?-----------------------------------------------------------*/
///*?Private?define?------------------------------------------------------------*/
///*?Private?macro?-------------------------------------------------------------*/
///*?Private?variables?---------------------------------------------------------*/
//ErrorStatus?HSEStartUpStatus;
EXTI_InitTypeDef?EXTI_InitStructure;
///*?Extern?variables?----------------------------------------------------------*/
extern?__IO?uint8_t?PrevXferComplete;
/*?Private?function?prototypes?-----------------------------------------------*/
static?void?IntToUnicode?(uint32_t?value??uint8_t?*pbuf??uint8_t?len);
/*?Private?functions?---------------------------------------------------------*/
/*******************************************************************************
*?Function?Name??:?Set_System
*?Description????:?Configures?Main?system?clocks?&?power.
*?Input??????????:?None.
*?Return?????????:?None.
*******************************************************************************/
void?Set_System(void)
{
//?GPIO_InitTypeDef??GPIO_InitStructure;??//?omit
??
??/*!???????this?is?done?through?SystemInit()?function?which?is?called?from?startup
???????file?(startup_stm32xxx.s)?before?to?branch?to?application?main.
???????To?reconfigure?the?default?setting?of?SystemInit()?function?refer?to
???????system_stm32xxx.c?file
?????*/
/*?Enable?the?PWR?clock?*/
//RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR?ENABLE);??//?omit
/*?Set?all?the?GPIOs?to?AIN?*/
//?GPIO_AINConfig();??//?omit
??/*?Configure?the
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-02?11:42??USBkeyboard\
?????文件??????347342??2018-10-16?21:12??USBkeyboard\adc.crf
?????文件????????1982??2018-10-16?21:12??USBkeyboard\adc.d
?????文件??????381724??2018-10-16?21:12??USBkeyboard\adc.o
?????目錄???????????0??2018-10-17?08:25??USBkeyboard\APP\
?????目錄???????????0??2018-10-16?20:55??USBkeyboard\APP\ADC\
?????文件????????1819??2017-07-30?09:39??USBkeyboard\APP\ADC\adc.c
?????文件?????????110??2017-07-27?16:03??USBkeyboard\APP\ADC\adc.h
?????目錄???????????0??2018-10-17?20:04??USBkeyboard\APP\dma\
?????文件????????3635??2018-10-17?20:04??USBkeyboard\APP\dma\dma.c
?????文件?????????224??2018-10-17?09:14??USBkeyboard\APP\dma\dma.h
?????目錄???????????0??2018-10-22?13:29??USBkeyboard\APP\key\
?????文件????????2871??2018-10-22?13:29??USBkeyboard\APP\key\key.c
?????文件?????????646??2018-10-21?18:38??USBkeyboard\APP\key\key.h
?????目錄???????????0??2018-10-16?20:57??USBkeyboard\APP\systick\
?????文件?????????645??2017-04-06?10:29??USBkeyboard\APP\systick\systick.c
?????文件?????????123??2017-04-06?09:56??USBkeyboard\APP\systick\systick.h
?????文件????????3681??2018-10-23?12:12??USBkeyboard\core_cm3.crf
?????文件?????????123??2018-10-23?12:12??USBkeyboard\core_cm3.d
?????文件???????11440??2018-10-23?12:12??USBkeyboard\core_cm3.o
?????文件??????348177??2018-10-23?12:12??USBkeyboard\dma.crf
?????文件????????1980??2018-10-23?12:12??USBkeyboard\dma.d
?????文件??????383872??2018-10-23?12:12??USBkeyboard\dma.o
?????文件??????????19??2017-12-05?19:01??USBkeyboard\ExtDll.iex
?????文件???????10356??2018-10-17?20:04??USBkeyboard\hw_config.c
?????文件??????367308??2018-10-23?19:07??USBkeyboard\hw_config.crf
?????文件????????3204??2018-10-23?19:07??USBkeyboard\hw_config.d
?????文件????????2381??2017-11-26?15:36??USBkeyboard\hw_config.h
?????文件??????411820??2018-10-23?19:07??USBkeyboard\hw_config.o
?????文件????????7623??2018-10-23?12:10??USBkeyboard\JoystickMouse.build_log.htm
?????文件???????86137??2018-10-22?13:29??USBkeyboard\JoystickMouse.htm
............此處省略222個文件信息
- 上一篇:離散數學(第一版) 邵學才 葉秀明
- 下一篇:FPGA數字頻率計數碼管顯示
評論
共有 條評論