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