forked from Imagelibrary/rtems
validation: Format comment blocks
This commit is contained in:
@@ -356,8 +356,7 @@ static void RtemsTaskReqCreateErrors_Pre_SysTsk_Prepare(
|
||||
switch ( state ) {
|
||||
case RtemsTaskReqCreateErrors_Pre_SysTsk_Yes: {
|
||||
/*
|
||||
* The ``attribute_set`` parameter shall specify a system
|
||||
* task.
|
||||
* The ``attribute_set`` parameter shall specify a system task.
|
||||
*/
|
||||
ctx->attributes = RTEMS_SYSTEM_TASK;
|
||||
break;
|
||||
@@ -365,8 +364,7 @@ static void RtemsTaskReqCreateErrors_Pre_SysTsk_Prepare(
|
||||
|
||||
case RtemsTaskReqCreateErrors_Pre_SysTsk_No: {
|
||||
/*
|
||||
* The ``attribute_set`` parameter shall specify an
|
||||
* application task.
|
||||
* The ``attribute_set`` parameter shall specify an application task.
|
||||
*/
|
||||
ctx->attributes = RTEMS_DEFAULT_ATTRIBUTES;
|
||||
break;
|
||||
@@ -447,8 +445,8 @@ static void RtemsTaskReqCreateErrors_Pre_Stack_Prepare(
|
||||
switch ( state ) {
|
||||
case RtemsTaskReqCreateErrors_Pre_Stack_Normal: {
|
||||
/*
|
||||
* The ``initial_priority`` parameter shall be greater than or
|
||||
* equal to the configured minimum size.
|
||||
* The ``initial_priority`` parameter shall be greater than or equal to
|
||||
* the configured minimum size.
|
||||
*/
|
||||
ctx->stack_size = RTEMS_MINIMUM_STACK_SIZE;
|
||||
break;
|
||||
@@ -456,8 +454,8 @@ static void RtemsTaskReqCreateErrors_Pre_Stack_Prepare(
|
||||
|
||||
case RtemsTaskReqCreateErrors_Pre_Stack_Small: {
|
||||
/*
|
||||
* The ``initial_priority`` parameter shall be less than the
|
||||
* configured minimum size.
|
||||
* The ``initial_priority`` parameter shall be less than the configured
|
||||
* minimum size.
|
||||
*/
|
||||
ctx->stack_size = 0;
|
||||
break;
|
||||
@@ -465,8 +463,8 @@ static void RtemsTaskReqCreateErrors_Pre_Stack_Prepare(
|
||||
|
||||
case RtemsTaskReqCreateErrors_Pre_Stack_Huge: {
|
||||
/*
|
||||
* The ``initial_priority`` parameter shall be greater than the
|
||||
* maximum stack size which can be allocated by the system.
|
||||
* The ``initial_priority`` parameter shall be greater than the maximum
|
||||
* stack size which can be allocated by the system.
|
||||
*/
|
||||
ctx->stack_size = SIZE_MAX;
|
||||
break;
|
||||
@@ -512,8 +510,7 @@ static void RtemsTaskReqCreateErrors_Post_Status_Check(
|
||||
switch ( state ) {
|
||||
case RtemsTaskReqCreateErrors_Post_Status_Ok: {
|
||||
/*
|
||||
* The return status of rtems_task_create() shall be
|
||||
* RTEMS_SUCCESSFUL.
|
||||
* The return status of rtems_task_create() shall be RTEMS_SUCCESSFUL.
|
||||
*/
|
||||
T_rsc_success( ctx->status );
|
||||
break;
|
||||
@@ -530,8 +527,7 @@ static void RtemsTaskReqCreateErrors_Post_Status_Check(
|
||||
|
||||
case RtemsTaskReqCreateErrors_Post_Status_InvName: {
|
||||
/*
|
||||
* The return status of rtems_task_create() shall be
|
||||
* RTEMS_INVALID_NAME.
|
||||
* The return status of rtems_task_create() shall be RTEMS_INVALID_NAME.
|
||||
*/
|
||||
T_rsc( ctx->status, RTEMS_INVALID_NAME );
|
||||
break;
|
||||
@@ -548,8 +544,7 @@ static void RtemsTaskReqCreateErrors_Post_Status_Check(
|
||||
|
||||
case RtemsTaskReqCreateErrors_Post_Status_TooMany: {
|
||||
/*
|
||||
* The return status of rtems_task_create() shall be
|
||||
* RTEMS_TOO_MANY.
|
||||
* The return status of rtems_task_create() shall be RTEMS_TOO_MANY.
|
||||
*/
|
||||
T_rsc( ctx->status, RTEMS_TOO_MANY );
|
||||
break;
|
||||
@@ -557,8 +552,7 @@ static void RtemsTaskReqCreateErrors_Post_Status_Check(
|
||||
|
||||
case RtemsTaskReqCreateErrors_Post_Status_Unsat: {
|
||||
/*
|
||||
* The return status of rtems_task_create() shall be
|
||||
* RTEMS_UNSATISFIED.
|
||||
* The return status of rtems_task_create() shall be RTEMS_UNSATISFIED.
|
||||
*/
|
||||
T_rsc( ctx->status, RTEMS_UNSATISFIED );
|
||||
break;
|
||||
@@ -580,8 +574,8 @@ static void RtemsTaskReqCreateErrors_Post_Name_Check(
|
||||
switch ( state ) {
|
||||
case RtemsTaskReqCreateErrors_Post_Name_Valid: {
|
||||
/*
|
||||
* The unique object name shall identify the task created by
|
||||
* the rtems_task_create() call.
|
||||
* The unique object name shall identify the task created by the
|
||||
* rtems_task_create() call.
|
||||
*/
|
||||
id = 0;
|
||||
sc = rtems_task_ident( NAME, RTEMS_SEARCH_LOCAL_NODE, &id );
|
||||
@@ -612,8 +606,8 @@ static void RtemsTaskReqCreateErrors_Post_IdValue_Check(
|
||||
switch ( state ) {
|
||||
case RtemsTaskReqCreateErrors_Post_IdValue_Assigned: {
|
||||
/*
|
||||
* The value of the object identifier variable shall be equal to the object
|
||||
* identifier of the task created by the rtems_task_create() call.
|
||||
* The value of the object identifier variable shall be equal to the
|
||||
* object identifier of the task created by the rtems_task_create() call.
|
||||
*/
|
||||
T_eq_ptr( ctx->id, &ctx->id_value );
|
||||
T_ne_u32( ctx->id_value, INVALID_ID );
|
||||
|
||||
Reference in New Issue
Block a user