20260106:移植了野火的ESP-01s驱动代码,初步实现功能。
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef __USART_H__
|
||||
#define __USART_H__
|
||||
|
||||
#define USE_SYSTEM FREERTOS
|
||||
#define USE_RTOS FREERTOS
|
||||
#define NONE 0
|
||||
#define FREERTOS 1
|
||||
#define OSAL 2
|
||||
@@ -21,11 +21,10 @@
|
||||
#define USART3_GPIO_PIN_TX GPIO_Pin_10
|
||||
#define USART3_GPIO_PIN_RX GPIO_Pin_11
|
||||
|
||||
#if (USE_SYSTEM == NONE)
|
||||
#elif (USE_SYSTEM == FREERTOS)
|
||||
#if (USE_RTOS == NONE)
|
||||
#elif (USE_RTOS == FREERTOS)
|
||||
#include "FreeRTOS.h"
|
||||
#include "queue.h"
|
||||
#elif (USE_SYSTEM == OSAL)
|
||||
#endif
|
||||
|
||||
#include "stm32f10x.h" // Device header
|
||||
@@ -33,12 +32,11 @@
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#if (USE_SYSTEM == NONE)
|
||||
#elif (USE_SYSTEM == FREERTOS)
|
||||
#if (USE_RTOS == NONE)
|
||||
#elif (USE_RTOS == FREERTOS)
|
||||
extern QueueHandle_t xQueueUsart1IrqHdlr;
|
||||
extern QueueHandle_t xQueueUsart2IrqHdlr;
|
||||
extern QueueHandle_t xQueueUsart3IrqHdlr;
|
||||
#elif (USE_SYSTEM == OSAL)
|
||||
#endif
|
||||
|
||||
void vUsartInit(USART_TypeDef *xUsartId, uint32_t ulBaudrate);
|
||||
|
||||
Reference in New Issue
Block a user