欢迎来到天天文库
浏览记录
ID:37640144
大小:73.72 KB
页数:12页
时间:2019-05-27
《STM32_硬件I2C_中断收发数据》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、//stm32f10x_it.c/*Includes------------------------------------------------------------------*/#include"stm32f10x_it.h"#include"stdio.h"/**@addtogroupSTM32F10x_StdPeriph_Template*@{*//*Privatetypedef-----------------------------------------------------------*//*Privatedefi
2、ne------------------------------------------------------------*//*Privatemacro-------------------------------------------------------------*//*Privatevariables---------------------------------------------------------*/externu32BufferSize;externu8I2C1_ADDRESS;externu8I2C2_
3、ADDRESS;externvu8I2C1_Buffer_Tx[];externvu8I2C2_Buffer_Rx[];vu32Tx_Counter=0;vu32Rx_Counter=0;vu32show_counter1=0;vu32show_counter2=0;/*Privatefunctionprototypes-----------------------------------------------*//*Privatefunctions--------------------------------------------
4、-------------*//******************************************************************************//*Cortex-M3ProcessorExceptionsHandlers*//******************************************************************************//***@briefThisfunctionhandlesNMIexception.*@paramNone*@re
5、tvalNone*/voidNMI_Handler(void){}/***@briefThisfunctionhandlesHardFaultexception.*@paramNone*@retvalNone*/voidHardFault_Handler(void){/*GotoinfiniteloopwhenHardFaultexceptionoccurs*/while(1){}}/***@briefThisfunctionhandlesMemoryManageexception.*@paramNone*@retvalNone*/voi
6、dMemManage_Handler(void){/*GotoinfiniteloopwhenMemoryManageexceptionoccurs*/while(1){}}/***@briefThisfunctionhandlesBusFaultexception.*@paramNone*@retvalNone*/voidBusFault_Handler(void){/*GotoinfiniteloopwhenBusFaultexceptionoccurs*/while(1){}}/***@briefThisfunctionhandle
7、sUsageFaultexception.*@paramNone*@retvalNone*/voidUsageFault_Handler(void){/*GotoinfiniteloopwhenUsageFaultexceptionoccurs*/while(1){}}/***@briefThisfunctionhandlesSVCallexception.*@paramNone*@retvalNone*/voidSVC_Handler(void){}/***@briefThisfunctionhandlesDebugMonitorexc
8、eption.*@paramNone*@retvalNone*/voidDebugMon_Handler(void){}/***@briefThisfunctionhandlesPendSVC
此文档下载收益归作者所有