2018-07-04 19:01:03 -04:00
|
|
|
#ifndef ESP32_MOCK_H_
|
|
|
|
#define ESP32_MOCK_H_
|
2020-07-23 09:16:15 -04:00
|
|
|
#include "esp_timer.h"
|
2018-07-04 19:01:03 -04:00
|
|
|
|
|
|
|
typedef void (*esp_timer_cb_t)(void* arg);
|
|
|
|
|
|
|
|
// Queue mock
|
2020-07-23 09:16:15 -04:00
|
|
|
QueueHandle_t xQueueCreate( uint32_t uxQueueLength,
|
2018-07-04 19:01:03 -04:00
|
|
|
uint32_t uxItemSize );
|
|
|
|
|
|
|
|
void vQueueDelete( QueueHandle_t xQueue );
|
|
|
|
|
|
|
|
uint32_t xQueueSend(QueueHandle_t xQueue, const void * pvItemToQueue, TickType_t xTicksToWait);
|
|
|
|
|
|
|
|
uint32_t xQueueReceive(QueueHandle_t xQueue, void *pvBuffer, TickType_t xTicksToWait);
|
|
|
|
|
|
|
|
void GetLastItem(void *pvBuffer);
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void ForceTaskDelete(void);
|
2018-07-04 19:01:03 -04:00
|
|
|
|
2019-04-30 07:54:08 -04:00
|
|
|
esp_err_t esp_event_handler_register(const char * event_base, int32_t event_id, void* event_handler, void* event_handler_arg);
|
|
|
|
|
|
|
|
esp_err_t esp_event_handler_unregister(const char * event_base, int32_t event_id, void* event_handler);
|
|
|
|
|
2018-07-04 19:01:03 -04:00
|
|
|
#define _mdns_udp_pcb_write(tcpip_if, ip_protocol, ip, port, data, len) len
|
|
|
|
|
2020-07-23 09:16:15 -04:00
|
|
|
#endif /* ESP32_MOCK_H_ */
|