release trivial input dep

This commit is contained in:
Alwin Berger 2025-02-21 18:04:21 +01:00
parent 4a6ef0aa84
commit 125102c092

View File

@ -159,7 +159,7 @@ static void prvTask1( void * pvParameters ) {
for( ;; ){ for( ;; ){
RNG_RESET RNG_RESET
// Actions -------------------------------------- // Actions --------------------------------------
volatile uint16_t x = RNG_SHORT_NEXT; volatile uint16_t x = INPUT_SHORT_NEXT;
WCET_CLAMP(x, 8000, 10000, TASK_1_MESSAGE) WCET_CLAMP(x, 8000, 10000, TASK_1_MESSAGE)
xTaskNotify(xTask2, DEBUG_VAL(x % 2, 1), eSetValueWithOverwrite); xTaskNotify(xTask2, DEBUG_VAL(x % 2, 1), eSetValueWithOverwrite);
// --------------------------------------------- // ---------------------------------------------
@ -175,7 +175,7 @@ static void prvTask2( void * pvParameters ) {
for( ;; ){ for( ;; ){
RNG_RESET RNG_RESET
// Actions -------------------------------------- // Actions --------------------------------------
uint16_t x = RNG_SHORT_NEXT; uint16_t x = INPUT_SHORT_NEXT;
DO_TIME(1000, TASK_2_MESSAGE) DO_TIME(1000, TASK_2_MESSAGE)
xSemaphoreTake(xMutex, portMAX_DELAY); xSemaphoreTake(xMutex, portMAX_DELAY);
volatile int torun = 2000; volatile int torun = 2000;
@ -204,7 +204,7 @@ static void prvTask3( void * pvParameters ) {
RNG_RESET RNG_RESET
// Actions -------------------------------------- // Actions --------------------------------------
xSemaphoreTake(xMutex, portMAX_DELAY); xSemaphoreTake(xMutex, portMAX_DELAY);
volatile uint16_t x = RNG_SHORT_NEXT; volatile uint16_t x = INPUT_SHORT_NEXT;
int torun = 0; int torun = 0;
if (y) { if (y) {
torun = CLAMP(x, 5000, 8000); torun = CLAMP(x, 5000, 8000);
@ -225,7 +225,7 @@ static void prvTask4( void * pvParameters ) {
for( ;; ){ for( ;; ){
RNG_RESET RNG_RESET
// Actions -------------------------------------- // Actions --------------------------------------
volatile uint16_t x = RNG_SHORT_NEXT; volatile uint16_t x = INPUT_SHORT_NEXT;
WCET_CLAMP(x, 1000, 2000, TASK_4_MESSAGE) WCET_CLAMP(x, 1000, 2000, TASK_4_MESSAGE)
// --------------------------------------------- // ---------------------------------------------
trigger_job_done(); trigger_job_done();
@ -248,7 +248,7 @@ static void prvTask5( void * pvParameters ) {
// Actions -------------------------------------- // Actions --------------------------------------
int succ = xSemaphoreTake(xMutex, 0); // try to take the mutex int succ = xSemaphoreTake(xMutex, 0); // try to take the mutex
if (succ == pdTRUE) { if (succ == pdTRUE) {
volatile uint16_t x = RNG_SHORT_NEXT; volatile uint16_t x = INPUT_SHORT_NEXT;
// uint16_t x = 2000; // uint16_t x = 2000;
int torun = 0; int torun = 0;
torun = CLAMP(x, 0, 2000); torun = CLAMP(x, 0, 2000);