11.22:完善注释;提高代码的移植性;完善串口程序。
This commit is contained in:
@@ -1,21 +1,32 @@
|
||||
#ifndef __USART3_H__
|
||||
#define __USART3_H__
|
||||
|
||||
#include "stm32f10x.h" // Device header
|
||||
#include "FreeRTOS.h"
|
||||
#include "queue.h"
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#define USE_NONE_SYSTEM 0
|
||||
#define USE_FREERTOS 1
|
||||
#define USE_OSAL 0
|
||||
#define vLoRaIrqHandler USART3_IRQHandler
|
||||
|
||||
#define USART3_GPIO_PIN_TX GPIO_Pin_10
|
||||
#define USART3_GPIO_PIN_RX GPIO_Pin_11
|
||||
#define USART3_GPIO_PIN_ATK_AUX GPIO_Pin_4 // PA4
|
||||
#define USART3_GPIO_PIN_ATK_MD0 GPIO_Pin_3 // PB3
|
||||
|
||||
extern QueueHandle_t xQueueUsart3IrqHdlr;
|
||||
#if (USE_NONE_SYSTEM == 1)
|
||||
#elif (USE_FREERTOS == 1)
|
||||
#include "FreeRTOS.h"
|
||||
#include "queue.h"
|
||||
#elif (USE_OSAL == 1)
|
||||
#endif
|
||||
|
||||
#include "stm32f10x.h" // Device header
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#if (USE_NONE_SYSTEM == 1)
|
||||
#elif (USE_FREERTOS == 1)
|
||||
extern QueueHandle_t xQueueUsart3IrqHdlr;
|
||||
#elif (USE_OSAL == 1)
|
||||
#endif
|
||||
|
||||
void vUsart3Init(uint32_t ulUsart3Baudrate);
|
||||
void vUsart3SendByte(uint8_t ucByte);
|
||||
|
||||
Reference in New Issue
Block a user