dodany kod c od Krzyska po wielu modyfikacjach przez Gemini zeby usunac zalezność od TI-RTOS

This commit is contained in:
2026-02-19 11:59:33 +01:00
parent bf9c4596b8
commit d086ef28de
336 changed files with 52294 additions and 1006 deletions

52
mocks.h
View File

@@ -1,28 +1,36 @@
#ifndef MOCKS_H_
#define MOCKS_H_
#include <stdint.h>
#include <math.h>
#include <string.h> // do memset
// Definicje typów z tdefs.h
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
// Mock for Semaphore_Handle
typedef void* Semaphore_Handle;
// Prosta struktura dla sygnałów binarnych (wejścia/wyjścia logiczne)
struct binary_io
{
int val; // 0 lub 1
};
// Mock for Swi_Handle
typedef void* Swi_Handle;
// Struktury parametrów analogowych (np. przekładniki)
struct param_I_struct
{
float znam_wtor; // np. 1.0 lub 5.0 A
float znam_pierw; // np. 400.0 A
};
// Mock for Task_sleep
void Task_sleep(unsigned int ticks);
struct param_U_struct
{
float znam_wtor; // np. 100.0 V
float znam_pierw; // np. 110000.0 V
};
// Mock for MessageQ
typedef struct {
int reserved;
} MessageQ_MsgHeader;
// Mock for UInt32
typedef uint32_t UInt32;
// Mock for UInt16
typedef uint16_t UInt16;
// Mock for Timer_Handle
typedef void* Timer_Handle;
// Mock for UArg
typedef intptr_t UArg;
// Mock for Void
typedef void Void;
#endif /* MOCKS_H_ */