forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propose for srtm freertos static api usage (zephyrproject-rtos#13)
* Propose for srtm freertos static api usage Signed-off-by: Dusan Cervenka <[email protected]> * Mutext buf type srtm_mutex_buf_t Signed-off-by: Dusan Cervenka <[email protected]> * Fix tab for endif macro Signed-off-by: Dusan Cervenka <[email protected]> * Rename semaphore static buf type to srtm_sem_buf_t Signed-off-by: Dusan Cervenka <[email protected]> * Improve usage of static api calls. Signed-off-by: Dusan Cervenka <[email protected]> * Fixed scope for static semaphore. Signed-off-by: Dusan Cervenka <[email protected]>
- Loading branch information
Showing
10 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2021, NXP | ||
* All rights reserved. | ||
* | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#ifndef _SRTM_CONFIG_H | ||
#define _SRTM_CONFIG_H | ||
|
||
#include "FreeRTOS.h" | ||
|
||
#if configSUPPORT_STATIC_ALLOCATION | ||
#define SRTM_STATIC_API 1 | ||
typedef StaticSemaphore_t srtm_sem_buf_t; | ||
typedef StaticSemaphore_t srtm_mutex_buf_t; | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters