PDK API Guide for J721E
sciserver_tirtos.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
48 #ifndef SCISERVER_TIRTOS_H_
49 #define SCISERVER_TIRTOS_H_
50 
51 /* ========================================================================== */
52 /* Include Files */
53 /* ========================================================================== */
54 
55 #include <stdint.h>
56 #include <stddef.h>
58 
59 /* ========================================================================== */
60 /* Macros & Typedefs */
61 /* ========================================================================== */
62 #define SCISERVER_DEBUG_LOG_LEVEL_0 (0U)
63 
64 #define SCISERVER_DEBUG_LOG_LEVEL_1 (1U)
65 
67 #define SCISERVER_EN_DEBUG_LOG_LEVEL (SCISERVER_DEBUG_LOG_LEVEL_0)
68 
70 /* ========================================================================== */
71 /* Structure Declarations */
72 /* ========================================================================== */
73 
75 typedef struct {
76  uint32_t taskPriority[SCISERVER_TASK_MAX_CNT];
79 
80 /* ========================================================================== */
81 /* Function Declarations */
82 /* ========================================================================== */
83 
97 
101 void Sciserver_tirtosDeinit(void);
102 
103 /* ========================================================================== */
104 /* Static Function Definitions */
105 /* ========================================================================== */
106 
113 {
114  int32_t ret = CSL_PASS;
115  if (pPrms != NULL)
116  {
119  }
120  else
121  {
122  ret = CSL_EFAIL;
123  }
124  return ret;
125 }
126 
127 #endif /* #ifndef SCISERVER_TIRTOS_H_ */
128 
129 /* @} */
This file contains prototypes for APIs contained as a part of SCISERVER as well as the structures of ...
#define SCISERVER_TASK_MAX_CNT
Definition: sciserver.h:187
int32_t Sciserver_tirtosInit(Sciserver_TirtosCfgPrms_t *pPrms)
Sciserver TI-RTOS Application Init.
#define CSL_EFAIL
Definition: csl_types.h:95
uint32_t taskPriority[SCISERVER_TASK_MAX_CNT]
Definition: sciserver_tirtos.h:76
#define SCISERVER_TASK_USER_LO
Definition: sciserver.h:185
Sciserver App Configuration Parameters.
Definition: sciserver_tirtos.h:75
#define NULL
Define NULL if not defined.
Definition: csl_types.h:107
void Sciserver_tirtosDeinit(void)
Sciserver TI-RTOS Application Deinit.
#define CSL_PASS
Definition: csl_types.h:94
#define SCISERVER_TASK_USER_HI
Definition: sciserver.h:183
static int32_t Sciserver_tirtosInitPrms_Init(Sciserver_TirtosCfgPrms_t *pPrms)
Initialize the init params for SCISERVER.
Definition: sciserver_tirtos.h:112