mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Add more Arduino/FreeRTOS test stubs so that eModbus builds in ESP32 mode.
This commit is contained in:
parent
9eac0a90b5
commit
55d8a24f55
12 changed files with 86 additions and 11 deletions
21
test/emul/freertos/FreeRTOS.h
Normal file
21
test/emul/freertos/FreeRTOS.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef _FREERTOS_H_
|
||||
#define _FREERTOS_H_
|
||||
|
||||
#include "task.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef int BaseType_t;
|
||||
typedef unsigned int UBaseType_t;
|
||||
|
||||
const BaseType_t tskNO_AFFINITY = -1;
|
||||
|
||||
extern "C" {
|
||||
BaseType_t xTaskCreatePinnedToCore(TaskFunction_t pxTaskCode, const char* const pcName, const uint32_t ulStackDepth,
|
||||
void* const pvParameters, UBaseType_t uxPriority, TaskHandle_t* const pxCreatedTask,
|
||||
const BaseType_t xCoreID);
|
||||
|
||||
void vTaskDelete(TaskHandle_t xTaskToDelete);
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue