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

  • 大小: 1.17MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-24
  • 語言: 其他
  • 標(biāo)簽: STM32??RS232??

資源簡介

void USART3_IRQHandler(void) //串口數(shù)據(jù)處理 { u8 temp; //定義接受數(shù)據(jù)變量 if(USART_GetITStatus(USART3,USART_IT_RXNE)) { temp = USART_ReceiveData(USART3); if (temp==0x55)GPIO_ResetBits(GPIOC,GPIO_Pin_11); //串口收到十六進制55,輸出為0 if (temp==0xAA)GPIO_SetBits(GPIOC,GPIO_Pin_11); //串口收到十六進制AA,輸出為1 if (temp==0x66)GPIO_ResetBits(GPIOC,GPIO_Pin_12); //串口收到十六進制66,輸出為0 if (temp==0xBB)GPIO_SetBits(GPIOC,GPIO_Pin_12); //串口收到十六進制BB,輸出為1 if (temp==0x77)GPIO_ResetBits(GPIOD,GPIO_Pin_2); //串口收到十六進制77,輸出為0 if (temp==0xCC)GPIO_SetBits(GPIOD,GPIO_Pin_2); //串口收到十六進制CC,輸出為1 } }

資源截圖

代碼片段和文件信息

/**
??******************************************************************************
??*?@file????misc.c
??*?@author??MCD?Application?Team
??*?@version?V3.5.0
??*?@date????11-March-2011
??*?@brief???This?file?provides?all?the?miscellaneous?firmware?functions?(add-on
??*??????????to?CMSIS?functions).
??******************************************************************************
??*?@attention
??*
??*?THE?PRESENT?FIRMWARE?WHICH?IS?FOR?GUIDANCE?ONLY?AIMS?AT?PROVIDING?CUSTOMERS
??*?WITH?CODING?INFORMATION?REGARDING?THEIR?PRODUCTS?IN?ORDER?FOR?THEM?TO?SAVE
??*?TIME.?AS?A?RESULT?STMICROELECTRONICS?SHALL?NOT?BE?HELD?LIABLE?FOR?ANY
??*?DIRECT?INDIRECT?OR?CONSEQUENTIAL?DAMAGES?WITH?RESPECT?TO?ANY?CLAIMS?ARISING
??*?FROM?THE?CONTENT?OF?SUCH?FIRMWARE?AND/OR?THE?USE?MADE?BY?CUSTOMERS?OF?THE
??*?CODING?INFORMATION?CONTAINED?HEREIN?IN?CONNECTION?WITH?THEIR?PRODUCTS.
??*
??*?

©?COPYRIGHT?2011?STMicroelectronics


??******************************************************************************
??*/

/*?Includes?------------------------------------------------------------------*/
#include?“misc.h“

/**?@addtogroup?STM32F10x_StdPeriph_Driver
??*?@{
??*/

/**?@defgroup?MISC?
??*?@brief?MISC?driver?modules
??*?@{
??*/

/**?@defgroup?MISC_Private_TypesDefinitions
??*?@{
??*/

/**
??*?@}
??*/?

/**?@defgroup?MISC_Private_Defines
??*?@{
??*/

#define?AIRCR_VECTKEY_MASK????((uint32_t)0x05FA0000)
/**
??*?@}
??*/

/**?@defgroup?MISC_Private_Macros
??*?@{
??*/

/**
??*?@}
??*/

/**?@defgroup?MISC_Private_Variables
??*?@{
??*/

/**
??*?@}
??*/

/**?@defgroup?MISC_Private_FunctionPrototypes
??*?@{
??*/

/**
??*?@}
??*/

/**?@defgroup?MISC_Private_Functions
??*?@{
??*/

/**
??*?@brief??Configures?the?priority?grouping:?pre-emption?priority?and?subpriority.
??*?@param??NVIC_PriorityGroup:?specifies?the?priority?grouping?bits?length.?
??*???This?parameter?can?be?one?of?the?following?values:
??*?????@arg?NVIC_PriorityGroup_0:?0?bits?for?pre-emption?priority
??*????????????????????????????????4?bits?for?subpriority
??*?????@arg?NVIC_PriorityGroup_1:?1?bits?for?pre-emption?priority
??*????????????????????????????????3?bits?for?subpriority
??*?????@arg?NVIC_PriorityGroup_2:?2?bits?for?pre-emption?priority
??*????????????????????????????????2?bits?for?subpriority
??*?????@arg?NVIC_PriorityGroup_3:?3?bits?for?pre-emption?priority
??*????????????????????????????????1?bits?for?subpriority
??*?????@arg?NVIC_PriorityGroup_4:?4?bits?for?pre-emption?priority
??*????????????????????????????????0?bits?for?subpriority
??*?@retval?None
??*/
void?NVIC_PriorityGroupConfig(uint32_t?NVIC_PriorityGroup)
{
??/*?Check?the?parameters?*/
??assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup));
??
??/*?Set?the?PRIGROUP[10:8]?bits?according?to?NVIC_PriorityGroup?value?*/
??SCB->AIRCR?=?AIRCR_VECTKEY_MASK?|?NVIC_PriorityGroup;
}

/**
??*?@brief??Initializes?the?NVIC?p

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

?????文件?????260120??2018-06-06?19:56??stm32f10x_gpio.o

?????文件?????273188??2018-06-06?19:56??stm32f10x_it.crf

?????文件????????653??2018-06-06?19:56??stm32f10x_it.d

?????文件?????289304??2018-06-06?19:56??stm32f10x_it.o

?????文件?????245082??2018-06-06?19:56??stm32f10x_rcc.crf

?????文件????????469??2018-06-06?19:56??stm32f10x_rcc.d

?????文件?????264584??2018-06-06?19:56??stm32f10x_rcc.o

?????文件?????282265??2018-06-06?19:56??stm32f10x_tim.crf

?????文件????????469??2018-06-06?19:56??stm32f10x_tim.d

?????文件?????310012??2018-06-06?19:56??stm32f10x_tim.o

?????文件?????250443??2018-06-06?19:56??stm32f10x_usart.crf

?????文件????????493??2018-06-06?19:56??stm32f10x_usart.d

?????文件?????270984??2018-06-06?19:56??stm32f10x_usart.o

?????文件?????239201??2018-06-06?19:56??system_stm32f10x.crf

?????文件????????446??2018-06-06?19:56??system_stm32f10x.d

?????文件?????254168??2018-06-06?19:56??system_stm32f10x.o

?????文件??????10308??2008-09-21?13:21??ASM\cortexm3_macro.s

?????文件??????15761??2010-04-23?10:40??ASM\startup_stm32f10x_cl.s

?????文件??????15503??2011-03-10?10:52??ASM\startup_stm32f10x_hd.s

?????文件??????12376??2011-03-10?10:52??ASM\startup_stm32f10x_ld.s

?????文件??????13651??2010-04-23?10:40??ASM\startup_stm32f10x_ld_vl.s

?????文件??????12765??2011-03-10?10:52??ASM\startup_stm32f10x_md.s

?????文件??????14068??2010-04-23?10:40??ASM\startup_stm32f10x_md_vl.s

?????文件??????15950??2010-04-23?10:40??ASM\startup_stm32f10x_xl.s

?????文件???????9630??2009-11-21?17:22??ASM\stm32f10x_startup.s

?????文件???????6956??2015-12-10?17:06??DebugConfig\RS-232_____STM32F103VE_1.0.0.dbgconf

?????文件???????6956??2015-12-10?17:06??DebugConfig\RS-232_____STM32F103VF_1.0.0.dbgconf

?????文件???????6956??2015-12-10?17:06??DebugConfig\RS-232_____STM32F103VG_1.0.0.dbgconf

?????文件???????8982??2011-03-10?10:47??Lib\inc\misc.h

?????文件??????21690??2011-03-10?10:47??Lib\inc\stm32f10x_adc.h

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

評論

共有 條評論