Skip to content

Commit

Permalink
Merge pull request #1351 from nasa/integration-candidate
Browse files Browse the repository at this point in the history
osal Integration candidate: Caelum-rc4+dev34
  • Loading branch information
dzbaker authored Jan 5, 2023
2 parents b4d4eb6 + 8228ab5 commit a9fece5
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Development Build: v6.0.0-rc4+dev179
- Remove obsolete _USING_RTEMS_INCLUDES_
- Support adding default flags at task creation
- See <https://github.com/nasa/osal/pull/1348> and <https://github.com/nasa/osal/pull/1347>

## Development Build: v6.0.0-rc4+dev173
- Update action versions
- add doc-prebuild dependency
Expand Down
11 changes: 11 additions & 0 deletions default_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,14 @@ set(OSAL_CONFIG_MAX_CMD_LEN 1000
set(OSAL_CONFIG_QUEUE_MAX_DEPTH 50
CACHE STRING "Maximum depth of message queue"
)

# Flags added to all tasks on creation
#
# Some OS's use floating point under the hood, this supports
# adding the floating point flag on creation of all tasks instead of
# just when OS_FP_ENABLED flag is passed in to OS_TaskCreate
#
# Set to 0 to not add any
set(OSAL_CONFIG_ADD_TASK_FLAGS 0
CACHE STRING "Flags added to all tasks"
)
9 changes: 9 additions & 0 deletions osconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@
*/
#define OS_PRINTF_CONSOLE_NAME "@OSAL_CONFIG_PRINTF_CONSOLE_NAME@"

/**
* \brief Flags added to all tasks on creation
*
* Added to the task flags on creation
*
* Supports adding floating point support for all tasks when the OS requires it
*/
#define OS_ADD_TASK_FLAGS @OSAL_CONFIG_ADD_TASK_FLAGS@

/*
* OSAL fixed resource limits
*
Expand Down
2 changes: 0 additions & 2 deletions src/bsp/pc-rtems/src/bsp_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
* OSAL BSP main entry point.
*/

#define _USING_RTEMS_INCLUDES_

/*
** Include Files
*/
Expand Down
2 changes: 1 addition & 1 deletion src/os/inc/osapi-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* Development Build Macro Definitions
*/
#define OS_BUILD_NUMBER 173
#define OS_BUILD_NUMBER 179
#define OS_BUILD_BASELINE "v6.0.0-rc4"

/*
Expand Down
3 changes: 0 additions & 3 deletions src/os/rtems/src/os-impl-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
/****************************************************************************************
INCLUDE FILES
***************************************************************************************/

#define _USING_RTEMS_INCLUDES_

#include "os-rtems.h"
#include "os-impl-loader.h"
#include "os-shared-module.h"
Expand Down
3 changes: 0 additions & 3 deletions src/os/rtems/src/os-impl-no-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
/****************************************************************************************
INCLUDE FILES
***************************************************************************************/

#define _USING_RTEMS_INCLUDES_

#include "os-rtems.h"

/****************************************************************************************
Expand Down
2 changes: 0 additions & 2 deletions src/os/rtems/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
/****************************************************************************************
INCLUDE FILES
***************************************************************************************/
#define _USING_RTEMS_INCLUDES_

#include "os-rtems.h"

#include "os-shared-common.h"
Expand Down
3 changes: 3 additions & 0 deletions src/os/shared/src/osapi-task.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ int32 OS_TaskCreate(osal_id_t *task_id, const char *task_name, osal_task_entry f
task->entry_function_pointer = function_pointer;
task->stack_pointer = stack_pointer;

/* Add default flags */
flags |= OS_ADD_TASK_FLAGS;

/* Now call the OS-specific implementation. This reads info from the task table. */
return_code = OS_TaskCreate_Impl(&token, flags);

Expand Down

0 comments on commit a9fece5

Please sign in to comment.