Native test suite (61 tests, 5 suites) with thin mock layer for Arduino/FreeRTOS/esp_timer enabling host-side testing without hardware. ASCOM Alpaca REST API on port 32323 with UDP discovery, implementing Telescope v3 interface for N.I.N.A., PHD2, and compatible software. Follows existing ST4WiFi conditional compilation pattern. README documents wiring, all three protocols (serial, WebSocket, Alpaca), pin/rate configuration, and build instructions.
21 lines
448 B
C++
21 lines
448 B
C++
// FreeRTOS mock for native testing
|
|
#pragma once
|
|
#include <cstdint>
|
|
#include <cassert>
|
|
|
|
typedef void* SemaphoreHandle_t;
|
|
typedef void* TaskHandle_t;
|
|
typedef int BaseType_t;
|
|
typedef uint32_t TickType_t;
|
|
|
|
#define pdTRUE 1
|
|
#define pdFALSE 0
|
|
#define pdPASS 1
|
|
#define portMAX_DELAY 0xFFFFFFFF
|
|
#define configMAX_PRIORITIES 25
|
|
#define configASSERT(x) assert(x)
|
|
#define pdMS_TO_TICKS(ms) (ms)
|
|
|
|
typedef int esp_err_t;
|
|
#define ESP_OK 0
|