From 87e796e265939fc23377542b4969dd829d265bc1 Mon Sep 17 00:00:00 2001 From: Leon Wilzer Date: Wed, 23 Nov 2022 16:00:40 +0100 Subject: [PATCH] idk --- Demo_C/Demo/LED/LED.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Demo_C/Demo/LED/LED.c b/Demo_C/Demo/LED/LED.c index 5443825..e3314a6 100644 --- a/Demo_C/Demo/LED/LED.c +++ b/Demo_C/Demo/LED/LED.c @@ -4,6 +4,9 @@ #define LIGHT_MAX DUTY_MAX #define LIGHT_OFF 0 +#define RC 0x7FFF // return code: 0x7FFF - program should be further called by the firmware; +#define sRC 0 + #define BEG_LAMP_IDX 0 #define END_LAMP_IDX 3 @@ -15,6 +18,8 @@ static int lamp_idx; static int n_loops; static int wait; +int simple_rgb_test(TA * p_ta_array); + void PrgInit ( TA * p_ta_array, // pointer to the array of transfer areas @@ -34,10 +39,14 @@ int PrgTic int ta_count // number of transfer areas in array (equal to TA_COUNT) ) { - int rc = 0x7FFF; // return code: 0x7FFF - program should be further called by the firmware; - // 0 - program should be normally stopped by the firmware; - // any other value is considered by the firmware as an error code - // and the program is stopped. + return simple_rgb_test(p_ta_array); +} + +int simple_rgb_test +( + TA * p_ta_array // pointer to the array of transfer areas +) +{ TA * p_ta = &p_ta_array[TA_LOCAL]; // Get the current value of the system time @@ -72,5 +81,5 @@ int PrgTic pin = GREEN; } } - return rc; + return RC; } \ No newline at end of file