資源簡介
本文件含有兩個程序,采用硬件IIC,一個是IIC主機(jī)發(fā)送程序,一個是IIC從機(jī)接收發(fā)送程序,實驗現(xiàn)象是,在兩塊開發(fā)板上,連接上IIC線序(不用交叉),主機(jī)發(fā)送三個字節(jié)數(shù)據(jù),從機(jī)接收到三個字節(jié)數(shù)據(jù)后,將數(shù)據(jù)發(fā)送回主機(jī),完成主從機(jī)的通信,在IIC初試化中可以看到主機(jī)的地址設(shè)為了0x0A(主機(jī)地址沒有用到,只是為了和從機(jī)進(jìn)行區(qū)分),從機(jī)的地址設(shè)為了0x0B
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f4xx.c
??*?@author??MCD?Application?Team
??*?@brief???CMSIS?Cortex-M4?Device?Peripheral?Access?layer?System?Source?File.
??*
??*???This?file?provides?two?functions?and?one?global?variable?to?be?called?from?
??*???user?application:
??*??????-?SystemInit():?This?function?is?called?at?startup?just?after?reset?and?
??*??????????????????????before?branch?to?main?program.?This?call?is?made?inside
??*??????????????????????the?“startup_stm32f4xx.s“?file.
??*
??*??????-?SystemCoreClock?variable:?Contains?the?core?clock?(HCLK)?it?can?be?used
??*??????????????????????????????????by?the?user?application?to?setup?the?SysTick?
??*??????????????????????????????????timer?or?configure?other?parameters.
??*?????????????????????????????????????
??*??????-?SystemCoreClockUpdate():?Updates?the?variable?SystemCoreClock?and?must
??*?????????????????????????????????be?called?whenever?the?core?clock?is?changed
??*?????????????????????????????????during?program?execution.
??*
??*
??******************************************************************************
??*?@attention
??*
??*?©?COPYRIGHT?2017?STMicroelectronics
??*
??*?Redistribution?and?use?in?source?and?binary?forms?with?or?without?modification
??*?are?permitted?provided?that?the?following?conditions?are?met:
??*???1.?Redistributions?of?source?code?must?retain?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer.
??*???2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
??*??????and/or?other?materials?provided?with?the?distribution.
??*???3.?Neither?the?name?of?STMicroelectronics?nor?the?names?of?its?contributors
??*??????may?be?used?to?endorse?or?promote?products?derived?from?this?software
??*??????without?specific?prior?written?permission.
??*
??*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
??*?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
??*?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE
??*?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT?HOLDER?OR?CONTRIBUTORS?BE?LIABLE
??*?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL
??*?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR
??*?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER
??*?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY
??*?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
??*?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
??*
??******************************************************************************
??*/
/**?@addtogroup?CMSIS
??*?@{
??*/
/**?@addtogroup?stm32f4xx_s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-25?16:16??IIC?-?主\
?????文件????????4373??2018-09-25?16:16??IIC?-?主\.mxproject
?????目錄???????????0??2018-09-25?16:16??IIC?-?主\Drivers\
?????目錄???????????0??2018-09-25?16:16??IIC?-?主\Drivers\CMSIS\
?????目錄???????????0??2018-09-25?16:16??IIC?-?主\Drivers\CMSIS\DSP_Lib\
?????目錄???????????0??2018-09-25?16:16??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\
?????目錄???????????0??2018-09-25?16:16??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\
?????文件????????5114??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_f32.c
?????文件????????5458??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q15.c
?????文件????????4431??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q31.c
?????文件????????5090??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q7.c
?????文件????????4891??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_f32.c
?????文件????????4423??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q15.c
?????文件????????4553??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q31.c
?????文件????????4226??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q7.c
?????文件????????4613??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_f32.c
?????文件????????4912??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q15.c
?????文件????????5000??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q31.c
?????文件????????5408??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q7.c
?????文件????????5582??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_f32.c
?????文件????????5306??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q15.c
?????文件????????5201??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q31.c
?????文件????????4530??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q7.c
?????文件????????4574??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_f32.c
?????文件????????4621??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q15.c
?????文件????????4178??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q31.c
?????文件????????4104??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q7.c
?????文件????????5095??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_f32.c
?????文件????????4534??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q15.c
?????文件????????4425??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q31.c
?????文件????????4462??2018-08-20?21:45??IIC?-?主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q7.c
............此處省略1493個文件信息
- 上一篇:軟件需求中文第3版 完整 帶書簽
- 下一篇:Django博客項目
評論
共有 條評論