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

28
src/const_flt.c Normal file
View File

@@ -0,0 +1,28 @@
/*
* counter.c
*
* Created on: 04-06-2018
* Author: Krzysztof Jakubczyk
*/
#include <math.h>
#include "tdefs.h"
#include "misc.h"
#include "helper.h"
#include "const_flt.h"
int const_flt_initlog(void *arguments, void *logic)
{
struct const_flt_args *args = (struct const_flt_args *)arguments;
struct const_flt_logic *log = (struct const_flt_logic *)logic;
if(set_float_ptr(args->io.out_float_out,&log->out))
return -1;
*log->out=(float)args->params.val;
return 0;
}