corrections for freertos osal

This commit is contained in:
2021-07-14 00:54:39 +02:00
parent 66a79cb86c
commit d5dfffda2d
26 changed files with 70 additions and 70 deletions

View File

@ -1,6 +1,6 @@
# Check the OS_FSFW variable
if(FSFW_OSAL MATCHES "freertos")
add_subdirectory(FreeRTOS)
add_subdirectory(freertos)
elseif(FSFW_OSAL MATCHES "rtems")
add_subdirectory(rtems)
elseif(FSFW_OSAL MATCHES "linux")

View File

@ -1,6 +1,6 @@
#include "BinSemaphUsingTask.h"
#include "TaskManagement.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
#include "fsfw/osal/freertos/BinSemaphUsingTask.h"
#include "fsfw/osal/freertos/TaskManagement.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
#if (tskKERNEL_VERSION_MAJOR == 8 && tskKERNEL_VERSION_MINOR > 2) || \
tskKERNEL_VERSION_MAJOR > 8

View File

@ -1,6 +1,6 @@
#include "BinarySemaphore.h"
#include "TaskManagement.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
#include "fsfw/osal/freertos/BinarySemaphore.h"
#include "fsfw/osal/freertos/TaskManagement.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
BinarySemaphore::BinarySemaphore() {
handle = xSemaphoreCreateBinary();

View File

@ -1,13 +1,13 @@
#include "Timekeeper.h"
#include "fsfw/osal/freertos/Timekeeper.h"
#include "../../timemanager/Clock.h"
#include "../../globalfunctions/timevalOperations.h"
#include "fsfw/timemanager/Clock.h"
#include "fsfw/globalfunctions/timevalOperations.h"
#include "FreeRTOS.h"
#include "task.h"
#include <stdlib.h>
#include <time.h>
#include <cstdlib>
#include <ctime>
//TODO sanitize input?
//TODO much of this code can be reused for tick-only systems

View File

@ -1,7 +1,7 @@
#include "CountingSemaphUsingTask.h"
#include "TaskManagement.h"
#include "fsfw/osal/freertos/CountingSemaphUsingTask.h"
#include "fsfw/osal/freertos/TaskManagement.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
#if (tskKERNEL_VERSION_MAJOR == 8 && tskKERNEL_VERSION_MINOR > 2) || \
tskKERNEL_VERSION_MAJOR > 8

View File

@ -1,7 +1,7 @@
#include "CountingSemaphore.h"
#include "TaskManagement.h"
#include "fsfw/osal/freertos/CountingSemaphore.h"
#include "fsfw/osal/freertos/TaskManagement.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
#include "FreeRTOS.h"
#include "semphr.h"

View File

@ -1,7 +1,7 @@
#include "FixedTimeslotTask.h"
#include "fsfw/osal/freertos/FixedTimeslotTask.h"
#include "../../objectmanager/ObjectManager.h"
#include "../../serviceinterface/ServiceInterface.h"
#include "fsfw/objectmanager/ObjectManager.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
uint32_t FixedTimeslotTask::deadlineMissedCount = 0;
const size_t PeriodicTaskIF::MINIMUM_STACK_SIZE = configMINIMAL_STACK_SIZE;

View File

@ -1,5 +1,6 @@
#include "MessageQueue.h"
#include "QueueMapManager.h"
#include "fsfw/osal/freertos/MessageQueue.h"
#include "fsfw/osal/freertos/QueueMapManager.h"
#include "fsfw/objectmanager/ObjectManager.h"
#include "fsfw/serviceinterface/ServiceInterface.h"

View File

@ -1,6 +1,6 @@
#include "Mutex.h"
#include "fsfw/osal/freertos/Mutex.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
Mutex::Mutex() {
handle = xSemaphoreCreateMutex();

View File

@ -1,6 +1,6 @@
#include "Mutex.h"
#include "fsfw/osal/freertos/Mutex.h"
#include "../../ipc/MutexFactory.h"
#include "fsfw/ipc/MutexFactory.h"
//TODO: Different variant than the lazy loading in QueueFactory.

View File

@ -1,8 +1,8 @@
#include "PeriodicTask.h"
#include "fsfw/osal/freertos/PeriodicTask.h"
#include "../../objectmanager/ObjectManager.h"
#include "../../serviceinterface/ServiceInterface.h"
#include "../../tasks/ExecutableObjectIF.h"
#include "fsfw/objectmanager/ObjectManager.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
#include "fsfw/tasks/ExecutableObjectIF.h"
PeriodicTask::PeriodicTask(const char *name, TaskPriority setPriority,
TaskStackSize setStack, TaskPeriod setPeriod,

View File

@ -1,7 +1,7 @@
#include "MessageQueue.h"
#include "fsfw/osal/freertos/MessageQueue.h"
#include "../../ipc/MessageQueueSenderIF.h"
#include "../../ipc/QueueFactory.h"
#include "fsfw/ipc/MessageQueueSenderIF.h"
#include "fsfw/ipc/QueueFactory.h"
QueueFactory* QueueFactory::factoryInstance = nullptr;

View File

@ -1,6 +1,6 @@
#include "QueueMapManager.h"
#include "../../ipc/MutexFactory.h"
#include "../../ipc/MutexGuard.h"
#include "fsfw/osal/freertos/QueueMapManager.h"
#include "fsfw/ipc/MutexFactory.h"
#include "fsfw/ipc/MutexGuard.h"
QueueMapManager* QueueMapManager::mqManagerInstance = nullptr;

View File

@ -1,10 +1,10 @@
#include "BinarySemaphore.h"
#include "BinSemaphUsingTask.h"
#include "CountingSemaphore.h"
#include "CountingSemaphUsingTask.h"
#include "fsfw/osal/freertos/BinarySemaphore.h"
#include "fsfw/osal/freertos/BinSemaphUsingTask.h"
#include "fsfw/osal/freertos/CountingSemaphore.h"
#include "fsfw/osal/freertos/CountingSemaphUsingTask.h"
#include "../../tasks/SemaphoreFactory.h"
#include "../../serviceinterface/ServiceInterface.h"
#include "fsfw/tasks/SemaphoreFactory.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
SemaphoreFactory* SemaphoreFactory::factoryInstance = nullptr;

View File

@ -1,9 +1,8 @@
#include "../../tasks/TaskFactory.h"
#include "../../returnvalues/HasReturnvaluesIF.h"
#include "PeriodicTask.h"
#include "FixedTimeslotTask.h"
#include "fsfw/tasks/TaskFactory.h"
#include "fsfw/osal/freertos/PeriodicTask.h"
#include "fsfw/osal/freertos/FixedTimeslotTask.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
TaskFactory* TaskFactory::factoryInstance = new TaskFactory();

View File

@ -1,4 +1,4 @@
#include "TaskManagement.h"
#include "fsfw/osal/freertos/TaskManagement.h"
void TaskManagement::vRequestContextSwitchFromTask() {
vTaskDelay(0);

View File

@ -1,4 +1,4 @@
#include "Timekeeper.h"
#include "fsfw/osal/freertos/Timekeeper.h"
#include "FreeRTOSConfig.h"