1
0
forked from fsfw/fsfw

compiling, crashing when run

This commit is contained in:
2023-01-18 00:25:25 +01:00
parent 90efb132d0
commit fdfdce2fb0
7 changed files with 112 additions and 8 deletions

View File

@ -43,6 +43,44 @@ void unittestTaskFunction(void* pvParameters) {
}
#endif
#ifdef FSFW_OSAL_RTEMS
#include <signal.h>
int sigaltstack(const stack_t * ss, stack_t * old_ss){
return 0;
}
extern "C" {
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_UNLIMITED_OBJECTS
#define CONFIGURE_UNIFIED_WORK_AREAS
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
#include <rtems.h>
#include <stdlib.h>
#include <stdio.h>
rtems_task Init(
rtems_task_argument ignored
)
{
printf( "\nHello World\n" );
char* argv[] = {"fsfw-test"};
int result = Catch::Session().run(1, argv);
exit( result );
}
}
#endif
int main(int argc, char* argv[]) {
customSetup();