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

27
src/cfg_state.c Normal file
View File

@@ -0,0 +1,27 @@
/*
* cfg_state.c
*
* Created on: 22-02-2017
* Author:
*/
#include "cfg_state.h"
#include "helper.h"
int state_initlog(void *arguments, void *logic)
{
struct state_args *args = (struct state_args *)arguments;
struct state_logic *log = (struct state_logic *)logic;
if(set_bit_ptr_mask(args->io.out,&log->out_bit,&log->out_bit_mask))
return -1;
if (args->params.bity)
*log->out_bit |= log->out_bit_mask;
else
*log->out_bit &= ~log->out_bit_mask;
return 0;
}