Demo code: add static modifiers (#1373)

Add "static" modifier to demo code to reduce global vars.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
This commit is contained in:
Florian La Roche 2025-09-17 07:27:53 +02:00 committed by GitHub
parent 62195136d1
commit bcef9d066a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 10 additions and 13 deletions

View file

@ -123,7 +123,7 @@ static SemaphoreHandle_t xMasterSlaveMutex = NULL;
static BaseType_t xOkToGiveMutex = pdFALSE, xOkToGiveCountingSemaphore = pdFALSE;
/* Used to coordinate timing between tasks and the interrupt. */
const TickType_t xInterruptGivePeriod = pdMS_TO_TICKS( intsemINTERRUPT_MUTEX_GIVE_PERIOD_MS );
static const TickType_t xInterruptGivePeriod = pdMS_TO_TICKS( intsemINTERRUPT_MUTEX_GIVE_PERIOD_MS );
/*-----------------------------------------------------------*/