mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
Merge branch 'v2' of https://github.com/proddy/EMS-ESP into v2
esp32 uart
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "freertos/queue.h"
|
||||
#include <driver/uart.h>
|
||||
|
||||
#define EMS_MAXBUFFERSIZE 33 // max size of the buffer. EMS packets are max 32 bytes, plus extra 2 for BRKs
|
||||
#define EMS_MAXBUFFERSIZE 33 // max size of the buffer. EMS packets are max 32 bytes, plus extra for BRK
|
||||
|
||||
#define EMSUART_UART UART_NUM_2 // on the ESP32 we're using UART2
|
||||
#define EMS_UART UART2 // for intr setting
|
||||
@@ -57,7 +57,7 @@ class EMSuart {
|
||||
static EMSUART_STATUS transmit(uint8_t * buf, uint8_t len);
|
||||
|
||||
private:
|
||||
static void emsuart_recvTask(void * param);
|
||||
static void emsuart_recvTask(void * para);
|
||||
static void IRAM_ATTR emsuart_rx_intr_handler(void * para);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user