91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7.32MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-21
  • 語言: 其他
  • 標簽: STM32L0??HAL庫??

資源簡介

簡介:STM32與上位機之間用通信協議(自己定義)進行串口通信。怎么判斷上位機發過來的指令是正確的,而不是一串亂碼?怎么從正確的指令中提取出想要的命令代號,從而實現想要的功能? 方法:讀取上位機發來的命令,逐位判斷命令的包頭和包尾,如果能對應上,則這串指令是正確的,然后從指令中提取想要的數據和命令等。舉個栗子:通信協議是自己定義的,不是modbus協議等。。如F0 5A?15?15 25 16 09 02 12 14?FF?A5 F0(都是16進制),F0 5A是包頭,A5 F0是包尾,黑色15是命令代號,中間藍色是我想發的數據,橙色FF是校驗位。只要包頭包尾校驗正確,基本這串指令不會有問題。

資源截圖

代碼片段和文件信息

/**
??******************************************************************************
??*?@file????system_stm32l0xx.c
??*?@author??MCD?Application?Team
??*?@version?V1.7.1
??*?@date????25-November-2016
??*?@brief???CMSIS?Cortex-M0+?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_stm32l0xx.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(c)?2016?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.
??*
??******************************************************************************
??*/

/**?@addto

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????4640??2018-06-15?21:20??Receive_it\.mxproject

?????文件?????490933??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l011xx.h

?????文件?????502148??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l021xx.h

?????文件?????503392??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l031xx.h

?????文件?????514607??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l041xx.h

?????文件?????518739??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l051xx.h

?????文件?????616127??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l052xx.h

?????文件?????629289??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l053xx.h

?????文件?????529954??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l061xx.h

?????文件?????627342??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l062xx.h

?????文件?????640504??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l063xx.h

?????文件?????539799??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l071xx.h

?????文件?????646331??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l072xx.h

?????文件?????659701??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l073xx.h

?????文件?????551014??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l081xx.h

?????文件?????657546??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l082xx.h

?????文件?????670916??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l083xx.h

?????文件???????8393??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\stm32l0xx.h

?????文件???????3922??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Include\system_stm32l0xx.h

?????文件??????10891??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l011xx.s

?????文件??????11166??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l021xx.s

?????文件??????10431??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l031xx.s

?????文件??????10681??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l041xx.s

?????文件??????11017??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l051xx.s

?????文件??????11204??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l052xx.s

?????文件??????11278??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l053xx.s

?????文件??????11029??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l061xx.s

?????文件??????11215??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l062xx.s

?????文件??????11273??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l063xx.s

?????文件??????11325??2017-08-05?09:48??Receive_it\Drivers\CMSIS\Device\ST\STM32L0xx\Source\Templates\arm\startup_stm32l071xx.s

............此處省略626個文件信息

評論

共有 條評論