diff options
Diffstat (limited to 'portable/ThirdParty/XCC/Xtensa/xtensa_overlay_os_hook.c')
-rw-r--r-- | portable/ThirdParty/XCC/Xtensa/xtensa_overlay_os_hook.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/portable/ThirdParty/XCC/Xtensa/xtensa_overlay_os_hook.c b/portable/ThirdParty/XCC/Xtensa/xtensa_overlay_os_hook.c index fcbc57386..2a8506a01 100644 --- a/portable/ThirdParty/XCC/Xtensa/xtensa_overlay_os_hook.c +++ b/portable/ThirdParty/XCC/Xtensa/xtensa_overlay_os_hook.c @@ -1,4 +1,4 @@ -/* + /* * FreeRTOS Kernel <DEVELOPMENT BRANCH> * Copyright (C) 2015-2019 Cadence Design Systems, Inc. * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. @@ -39,7 +39,7 @@ /* Mutex object that controls access to the overlay. Currently only one * overlay region is supported so one mutex suffices. */ - static SemaphoreHandle_t xt_overlay_mutex; +static SemaphoreHandle_t xt_overlay_mutex; /* This function should be overridden to provide OS specific init such @@ -47,30 +47,30 @@ * Typically this mutex would be set up with priority inheritance. See * overlay manager documentation for more details. */ - void xt_overlay_init_os( void ) - { - /* Create the mutex for overlay access. Priority inheritance is - * required. - */ - xt_overlay_mutex = xSemaphoreCreateMutex(); - } +void xt_overlay_init_os(void) +{ + /* Create the mutex for overlay access. Priority inheritance is + * required. + */ + xt_overlay_mutex = xSemaphoreCreateMutex(); +} /* This function locks access to shared overlay resources, typically * by acquiring a mutex. */ - void xt_overlay_lock( void ) - { - xSemaphoreTake( xt_overlay_mutex, 0 ); - } +void xt_overlay_lock(void) +{ + xSemaphoreTake(xt_overlay_mutex, 0); +} /* This function releases access to shared overlay resources, typically * by unlocking a mutex. */ - void xt_overlay_unlock( void ) - { - xSemaphoreGive( xt_overlay_mutex ); - } +void xt_overlay_unlock(void) +{ + xSemaphoreGive(xt_overlay_mutex); +} -#endif /* if configUSE_MUTEX */ +#endif |