From 125102c0929e00cf3335e1ce477eb4d000d4f91d Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Fri, 21 Feb 2025 18:04:21 +0100 Subject: [PATCH] release trivial input dep --- FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c index cb79b7e3..4f8dabf9 100644 --- a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c +++ b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c @@ -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);