Skip to content

Commit 38dce85

Browse files
authored
Merge branch 'nasa:main' into fix1115-branch-coverage
2 parents e5e7799 + 1963483 commit 38dce85

File tree

67 files changed

+1425
-1317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1425
-1317
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,37 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
1111

1212
## Version History
1313

14+
### Development Build: v5.1.0-rc1+dev578
15+
16+
- Add unit test branch coverage
17+
- See <https://github.com/nasa/osal/pull/1116> and <https://github.com/nasa/cfs/pull/313>
18+
19+
### Development Build: v5.1.0-rc1+dev573
20+
21+
- Add independent OS_rename functional test parameter checks
22+
- See <https://github.com/nasa/osal/pull/1113> and <https://github.com/nasa/cfs/pull/311>
23+
24+
### Development Build: v5.1.0-rc1+dev569
25+
26+
- Skip these "timer reconfig" unit tests on non-POSIX platforms. Add documentation clearly indicating that the API must not be called from a timer context.
27+
- See <https://github.com/nasa/osal/pull/1100> and <https://github.com/nasa/cFS/pull/297>
28+
29+
### Development Build: v5.1.0-rc1+dev564
30+
31+
- Add range to OS_TaskDelay checks
32+
- Return `OS_OBJECT_ID_UNDEFINED` for root task ID on RTEMS
33+
- Increase timeout in network-api-test
34+
- Avoid task delete during UtPrintf
35+
- Increase UT symbol dump size limit
36+
- Do not register RTOS timer for external sync
37+
- Add osal# prefix to Network API group
38+
- Increase timeout in network-api-test
39+
- See <https://github.com/nasa/osal/pull/1098> and <https://github.com/nasa/cfs/pull/287>
40+
41+
### Development Build: v5.1.0-rc1+dev548
42+
43+
- implement missing parameter/retcode test permutations
44+
- See <https://github.com/nasa/osal/pull/1079> and <https://github.com/nasa/cFS/pull/270>
1445

1546
### Development Build: v5.1.0-rc1+dev530
1647

docs/src/osalmain.dox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
<UL>
6565
<LI> APIs
6666
<UL>
67-
<LI> \ref OSALAPINetwork
67+
<LI> \ref OSAPINetwork
6868
<LI> \ref OSAPISocketAddr
69-
<LI> \ref OSALAPISocket
69+
<LI> \ref OSAPISocket
7070
</UL>
7171
<LI> \subpage osapi-network.h "Network Reference"
7272
<LI> \subpage osapi-sockets.h "Socket Reference"

src/bsp/generic-vxworks/src/bsp_start.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ int OS_BSPMain(void)
103103
/*
104104
* Initialize the low level access sem
105105
*/
106-
OS_BSP_GenericVxWorksGlobal.AccessMutex =
107-
semMInitialize(OS_BSP_GenericVxWorksGlobal.AccessMutexMem, SEM_Q_PRIORITY | SEM_INVERSION_SAFE);
106+
OS_BSP_GenericVxWorksGlobal.AccessMutex = semMInitialize(OS_BSP_GenericVxWorksGlobal.AccessMutexMem,
107+
SEM_Q_PRIORITY | SEM_INVERSION_SAFE | SEM_DELETE_SAFE);
108108

109109
if (OS_BSP_GenericVxWorksGlobal.AccessMutex == (SEM_ID)0)
110110
{

src/os/inc/osapi-filesys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef struct
7979
*
8080
* OS_FileSysAddFixedMap(&fs_id, "/", "/root");
8181
*
82-
* @param[out] filesys_id A non-zero OSAL ID reflecting the file system
82+
* @param[out] filesys_id A buffer to store the ID of the file system mapping @nonnull
8383
* @param[in] phys_path The native system directory (an existing mount point) @nonnull
8484
* @param[in] virt_path The virtual mount point of this filesystem @nonnull
8585
*

src/os/inc/osapi-network.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "common_types.h"
3232

3333
/**
34-
* @defgroup OSALAPINetwork Network ID APIs
34+
* @defgroup OSAPINetwork OSAL Network ID APIs
3535
*
3636
* Provides some basic methods to query a network host name and ID
3737
*
@@ -61,8 +61,8 @@ int32 OS_NetworkGetID(void);
6161
* If configured in the underlying network stack,
6262
* this function retrieves the local hostname of the system.
6363
*
64-
* @param[out] host_name Buffer to hold name information
65-
* @param[in] name_len Maximum length of host name buffer
64+
* @param[out] host_name Buffer to hold name information @nonnull
65+
* @param[in] name_len Maximum length of host name buffer @nonzero
6666
*
6767
* @return Execution status, see @ref OSReturnCodes
6868
* @retval #OS_SUCCESS @copybrief OS_SUCCESS

src/os/inc/osapi-sockets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ int32 OS_SocketAddrSetPort(OS_SockAddr_t *Addr, uint16 PortNum);
242242
/**@}*/
243243

244244
/**
245-
* @defgroup OSALAPISocket OSAL Socket Management APIs
245+
* @defgroup OSAPISocket OSAL Socket Management APIs
246246
*
247247
* These functions are loosely related to the BSD Sockets API but made to be
248248
* more consistent with other OSAL API functions. That is, they operate on

src/os/inc/osapi-task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ typedef osal_task((*osal_task_entry)(void)); /**< @brief For task entry point */
9191
* In that case, a stack of the requested size will be dynamically allocated from
9292
* the system heap.
9393
*
94-
* @param[out] task_id will be set to the non-zero ID of the newly-created resource
94+
* @param[out] task_id will be set to the non-zero ID of the newly-created resource @nonnull
9595
* @param[in] task_name the name of the new resource to create @nonnull
9696
* @param[in] function_pointer the entry point of the new task @nonnull
9797
* @param[in] stack_pointer pointer to the stack for the task, or NULL

src/os/inc/osapi-timebase.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ typedef struct
7373
* be configured to support at least (OS_MAX_TASKS + OS_MAX_TIMEBASES) threads,
7474
* to account for the helper threads associated with time base objects.
7575
*
76+
* @note This configuration API must not be used from the context of a timer callback.
77+
* Timers should only be configured from the context of normal OSAL tasks.
78+
*
7679
* @param[out] timebase_id will be set to the non-zero ID of the newly-created resource @nonnull
7780
* @param[in] timebase_name The name of the time base @nonnull
7881
* @param[in] external_sync A synchronization function for BSP hardware-based timer ticks
@@ -101,6 +104,9 @@ int32 OS_TimeBaseCreate(osal_id_t *timebase_id, const char *timebase_name, OS_Ti
101104
* This function has no effect for time bases that are using
102105
* a BSP-provided external_sync function.
103106
*
107+
* @note This configuration API must not be used from the context of a timer callback.
108+
* Timers should only be configured from the context of normal OSAL tasks.
109+
*
104110
* @param[in] timebase_id The timebase resource to configure
105111
* @param[in] start_time The amount of delay for the first tick, in microseconds.
106112
* @param[in] interval_time The amount of delay between ticks, in microseconds.
@@ -120,6 +126,9 @@ int32 OS_TimeBaseSet(osal_id_t timebase_id, uint32 start_time, uint32 interval_t
120126
* The helper task and any other resources associated with the time base
121127
* abstraction will be freed.
122128
*
129+
* @note This configuration API must not be used from the context of a timer callback.
130+
* Timers should only be configured from the context of normal OSAL tasks.
131+
*
123132
* @param[in] timebase_id The timebase resource to delete
124133
*
125134
* @return Execution status, see @ref OSReturnCodes
@@ -135,6 +144,9 @@ int32 OS_TimeBaseDelete(osal_id_t timebase_id);
135144
*
136145
* Given a time base name, find and output the ID associated with it.
137146
*
147+
* @note This configuration API must not be used from the context of a timer callback.
148+
* Timers should only be configured from the context of normal OSAL tasks.
149+
*
138150
* @param[out] timebase_id will be set to the non-zero ID of the matching resource @nonnull
139151
* @param[in] timebase_name The name of the timebase resource to find @nonnull
140152
*
@@ -155,7 +167,10 @@ int32 OS_TimeBaseGetIdByName(osal_id_t *timebase_id, const char *timebase_name);
155167
* relevant information about the time base resource.
156168
*
157169
* This function will pass back a pointer to structure that contains
158-
* all of the relevant info( name and creator) about the specified timebase.
170+
* all of the relevant info( name and creator) about the specified timebase.
171+
*
172+
* @note This configuration API must not be used from the context of a timer callback.
173+
* Timers should only be configured from the context of normal OSAL tasks.
159174
*
160175
* @param[in] timebase_id The timebase resource ID
161176
* @param[out] timebase_prop Buffer to store timebase properties @nonnull

src/os/inc/osapi-timer.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ typedef struct
6767
* @note clock_accuracy comes from the underlying OS tick value. The nearest integer
6868
* microsecond value is returned, so may not be exact.
6969
*
70+
* @note This configuration API must not be used from the context of a timer callback.
71+
* Timers should only be configured from the context of normal OSAL tasks.
72+
*
7073
* @sa OS_TimerCallback_t
7174
*
7275
* @param[out] timer_id Will be set to the non-zero resource ID of the timer object @nonnull
@@ -109,6 +112,9 @@ int32 OS_TimerCreate(osal_id_t *timer_id, const char *timer_name, uint32 *clock_
109112
* function by the OSAL, and the arg parameter is passed through from the
110113
* callback_arg argument on this call.
111114
*
115+
* @note This configuration API must not be used from the context of a timer callback.
116+
* Timers should only be configured from the context of normal OSAL tasks.
117+
*
112118
* @sa OS_ArgCallback_t
113119
*
114120
* @param[out] timer_id Will be set to the non-zero resource ID of the timer object @nonnull
@@ -149,6 +155,9 @@ int32 OS_TimerAdd(osal_id_t *timer_id, const char *timer_name, osal_id_t timebas
149155
* or interval_msec parameters are less than the accuracy, they will be rounded
150156
* up to the accuracy of the timer.
151157
*
158+
* @note This configuration API must not be used from the context of a timer callback.
159+
* Timers should only be configured from the context of normal OSAL tasks.
160+
*
152161
* @param[in] timer_id The timer ID to operate on
153162
* @param[in] start_time Time in microseconds to the first expiration
154163
* @param[in] interval_time Time in microseconds between subsequent intervals, value
@@ -171,6 +180,9 @@ int32 OS_TimerSet(osal_id_t timer_id, uint32 start_time, uint32 interval_time);
171180
* The application callback associated with the timer will be stopped,
172181
* and the resources freed for future use.
173182
*
183+
* @note This configuration API must not be used from the context of a timer callback.
184+
* Timers should only be configured from the context of normal OSAL tasks.
185+
*
174186
* @param[in] timer_id The timer ID to operate on
175187
*
176188
* @return Execution status, see @ref OSReturnCodes
@@ -187,6 +199,9 @@ int32 OS_TimerDelete(osal_id_t timer_id);
187199
*
188200
* Outputs the ID associated with the given timer, if it exists.
189201
*
202+
* @note This configuration API must not be used from the context of a timer callback.
203+
* Timers should only be configured from the context of normal OSAL tasks.
204+
*
190205
* @param[out] timer_id Will be set to the timer ID corresponding to the name @nonnull
191206
* @param[in] timer_name The timer name to find @nonnull
192207
*
@@ -206,6 +221,9 @@ int32 OS_TimerGetIdByName(osal_id_t *timer_id, const char *timer_name);
206221
* This function takes timer_id, and looks it up in the OS table. It puts all of the
207222
* information known about that timer into a structure pointer to by timer_prop.
208223
*
224+
* @note This configuration API must not be used from the context of a timer callback.
225+
* Timers should only be configured from the context of normal OSAL tasks.
226+
*
209227
* @param[in] timer_id The timer ID to operate on
210228
* @param[out] timer_prop Buffer containing timer properties @nonnull
211229
* - creator: the OS task ID of the task that created this timer

src/os/inc/osapi-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/*
3737
* Development Build Macro Definitions
3838
*/
39-
#define OS_BUILD_NUMBER 530
39+
#define OS_BUILD_NUMBER 578
4040
#define OS_BUILD_BASELINE "v5.1.0-rc1"
4141

4242
/*

0 commit comments

Comments
 (0)