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

57
src/dec_month.h Normal file
View File

@@ -0,0 +1,57 @@
/*
* klapacz.h
*
* Created on: 07-04-2014
* Author: Krzysztof Jakubczyk
*/
#ifndef DEC_MONTH_H_
#define DEC_MONTH_H_
#include "tdefs.h"
struct dec_month_logic
{
struct binary_io mon[12]; // one bit
struct binary_io zima; // one bit
struct binary_io lato; // one bit
};
struct dec_month_io
{
u32 sty; // one bit
u32 lut; // one bit
u32 marz; // one bit
u32 kwie; // one bit
u32 maj; // one bit
u32 czer; // one bit
u32 lip; // one bit
u32 sier; // one bit
u32 wrz; // one bit
u32 paz; // one bit
u32 lis; // one bit
u32 gru; // one bit
u32 zima; // one bit
u32 lato; // one bit
}__attribute__((__packed__));
struct dec_month_params
{
}__attribute__((__packed__));
struct dec_month_args
{
struct dec_month_io io;
struct dec_month_params params;
// u16 crc;
}__attribute__((__packed__));
extern void dec_month(void *args, void *logic);
extern int dec_month_initlog(void *args, void *logic);
#endif /* DEC_MONTH_H_ */