forked from ARM-software/CMSIS-FreeRTOS
-
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.
Merge pull request #8 from spanio/clinard/cmsis-cleanup
Clinard/cmsis cleanup
- Loading branch information
Showing
5 changed files
with
46 additions
and
8 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,33 @@ | ||
/* | ||
* freertos_os2_control_blocks.h | ||
* | ||
* Copyright 2022 Span.IO Inc. | ||
* | ||
* Created on: Oct 25, 2022 | ||
* Author: sgc | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "FreeRTOS.h" | ||
#include "cmsis_os2.h" | ||
#include "freertos_mpool.h" | ||
#include "semphr.h" | ||
|
||
#define osTickRateHz (configTICK_RATE_HZ) | ||
#define osMaxDelayTicks (portMAX_DELAY) | ||
|
||
typedef StaticTask_t osThreadControlBlock; | ||
typedef MemPool_t osMemoryPoolControlBlock; | ||
typedef StaticQueue_t osMessageQueueControlBlock; | ||
|
||
struct osTimerControlBlock { | ||
StaticTimer_t m_static; | ||
|
||
// These are TimerCallback_t, defined inside cmsis_os2.c | ||
osTimerFunc_t m_timer_callback; | ||
void* m_arg; | ||
}; | ||
|
||
typedef StaticSemaphore_t osMutexControlBlock; | ||
typedef StaticSemaphore_t osSemaphoreControlBlock; |
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 |
---|---|---|
@@ -1 +1 @@ | ||
include_directories(${FW3_CMSIS_DIR}/Include ${FW3_CMSIS_DIR}/Include1) | ||
include_directories(${FW3_CMSIS_DIR}/Include) |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
set(FREERTOS_CONFIG_FILE_DIRECTORY ${FW3_APPLICATION_DIR}/Include CACHE STRING "") | ||
include_directories(${FW3_RTOS_DIR}/include) | ||
|
||
set(FREERTOS_HEAP ${FW3_COMPONENTS_DIR}/Source/no_heap.c CACHE STRING "") | ||
set(FREERTOS_CONFIG_FILE_DIRECTORY | ||
${FW3_APPLICATION_DIR}/Include | ||
CACHE STRING "") | ||
set(FREERTOS_HEAP | ||
${FW3_COMPONENTS_DIR}/Source/no_heap.c | ||
CACHE STRING "") |