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

資源簡介

程序自STM32奮斗版例程修改而來,為串口1收+發 及 串口2,其中串口1收到長度為18的數據后輸出。

資源截圖

代碼片段和文件信息

/********************?(C)?COPYRIGHT?2009?奮斗嵌入式開發工作室?********************
*?File?Name??????????:?main.c??
*?Author?????????????:?Sun68?
*?Version????????????:?V1.0
*?Date???????????????:?11/11/2009
*?Description????????:?演示?USART1?當接收緩沖器滿時,將接收到的數據傳送出去
???????????????????????V6-LED1閃爍表示正在收發數據。?
????定義:
TXD1-----?PA9-US1-TX
RXD1-----?PA10-US1-RX
速率:115200n81?
*********************************************************************/
/*?Includes?------------------------------------------------------------------*/
#include?“stm32f10x.h“
#include?“platform_config.h“
#include?“stm32f10x_usart.h“
#include?“stm32f10x_flash.h“
#include?“misc.h“
#include??“stm32f10x_tim.h“

unsigned?int?CCR2_Val=2500;?
extern?void?time_ini(void);
ErrorStatus?HSEStartUpStatus;
/**?@addtogroup?StdPeriph_Examples
??*?@{
??*/

/**?@addtogroup?USART_Interrupt
??*?@{
??*/?

/*?Private?typedef?-----------------------------------------------------------*/
typedef?enum?{?FAILED?=?0?PASSED?=?!FAILED}?TestStatus;

/*?Private?define?------------------------------------------------------------*/
#define?TxBufferSize1???(countof(TxBuffer1)?-?1)
#define?RxBufferSize1???(countof(TxBuffer1)?-?1)
#define?TxBufferSize2???(countof(TxBuffer2)?-?1)
#define?RxBufferSize2???(countof(TxBuffer2)?-?1)

/*?Private?macro?-------------------------------------------------------------*/
#define?countof(a)???(sizeof(a)?/?sizeof(*(a)))

/*?Private?variables?---------------------------------------------------------*/
USART_InitTypeDef?USART_InitStructure;
uint8_t?TxBuffer2[]?=?“USART?Interrupt?Example:?This?is?USART2?DEMO“;
uint8_t?RB2[20]?={0};
uint8_t?RB1[20]?={0};
uint8_t?RxBuffer2[RxBufferSize2]rec_f;
__IO?uint8_t?TxCounter2?=?0x00;
__IO?uint8_t?RxCounter2?=?0x00;?
uint8_t?NbrOfDataToTransfer2?=?TxBufferSize2;
uint8_t?NbrOfDataToRead2?=?RxBufferSize2;
__IO?TestStatus?TransferStatus2?=?FAILED;?

uint8_t?TxBuffer1[]?=?“USART?Interrupt?Example:?This?is?USART1?DEMO“;

uint8_t?RxBuffer1[RxBufferSize1]rec_frec_f2;
__IO?uint8_t?TxCounter1?=?0x00;
__IO?uint8_t?RxCounter1?=?0x00;?
uint8_t?NbrOfDataToTransfer1?=?TxBufferSize1;
uint8_t?NbrOfDataToRead1?=?RxBufferSize1;
__IO?TestStatus?TransferStatus1?=?FAILED;?

/*?Private?function?prototypes?-----------------------------------------------*/
void?RCC_Configuration(void);
void?GPIO_Configuration(void);
void?NVIC_Configuration(void);
void?Delay(__IO?uint32_t?nCount);
void?USART_OUT(USART_TypeDef*?USARTx?uint8_t?*Datauint16_t?Len);

TestStatus?Buffercmp(uint8_t*?pBuffer1?uint8_t*?pBuffer2?uint16_t?BufferLength);

GPIO_InitTypeDef?GPIO_InitStructure;
USART_InitTypeDef?USART_InitStruct;
USART_ClockInitTypeDef?USART_ClockInitStruct;
int16_t?USART_FLAG;

/*?Private?functions?---------------------------------------------------------*/

/**
??*?@brief??Main?program
??*?@param??None
??*?@retval?:?None
??*/
int?main(void)
{

???uint8_t?a=0b=0;
??/*?System?Clocks?Configuration?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-02-04?14:45??STM32奮斗板-串口1收發+串口2\
?????目錄???????????0??2017-12-25?09:11??STM32奮斗板-串口1收發+串口2\FWlib\
?????目錄???????????0??2017-12-25?09:11??STM32奮斗板-串口1收發+串口2\FWlib\SRC\
?????文件????????6874??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\misc.c
?????文件???????46634??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_adc.c
?????文件????????8248??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_bkp.c
?????文件???????30960??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_can.c
?????文件????????3340??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_crc.c
?????文件???????13723??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_dac.c
?????文件????????4310??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_dbgmcu.c
?????文件???????27362??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_dma.c
?????文件????????6801??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_exti.c
?????文件???????26352??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_flash.c
?????文件???????34932??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_fsmc.c
?????文件???????17965??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_gpio.c
?????文件???????37326??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_i2c.c
?????文件????????4813??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_iwdg.c
?????文件????????8929??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_pwr.c
?????文件???????33782??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_rcc.c
?????文件????????8580??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_rtc.c
?????文件???????28483??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_sdio.c
?????文件???????27737??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_spi.c
?????文件??????101890??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_tim.c
?????文件???????34930??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_usart.c
?????文件????????5619??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\stm32f10x_wwdg.c
?????文件???????24166??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\SRC\system_stm32f10x.c
?????目錄???????????0??2017-12-25?09:11??STM32奮斗板-串口1收發+串口2\FWlib\inc\
?????文件????????4951??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\inc\misc.h
?????文件???????19585??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\inc\stm32f10x_adc.h
?????文件????????7373??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\inc\stm32f10x_bkp.h
?????文件???????14289??2016-04-07?10:57??STM32奮斗板-串口1收發+串口2\FWlib\inc\stm32f10x_can.h
............此處省略106個文件信息

評論

共有 條評論