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.
13 lines
559 B
C
13 lines
559 B
C
// FreeRTOS semaphore mock for native testing
|
|
#pragma once
|
|
#include "FreeRTOS.h"
|
|
|
|
static void* const MOCK_MUTEX_SENTINEL = (void*)0xDEADBEEF;
|
|
static void* const MOCK_SEM_SENTINEL = (void*)0xCAFEBABE;
|
|
|
|
inline SemaphoreHandle_t xSemaphoreCreateMutex() { return MOCK_MUTEX_SENTINEL; }
|
|
inline SemaphoreHandle_t xSemaphoreCreateBinary() { return MOCK_SEM_SENTINEL; }
|
|
inline BaseType_t xSemaphoreTake(SemaphoreHandle_t, TickType_t) { return pdTRUE; }
|
|
inline void xSemaphoreGive(SemaphoreHandle_t) {}
|
|
inline void vSemaphoreDelete(SemaphoreHandle_t) {}
|