• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 1999-2012 Broadcom Corporation
4  *  Copyright 2018-2019 NXP
5  *
6  *  Licensed under the Apache License, Version 2.0 (the "License");
7  *  you may not use this file except in compliance with the License.
8  *  You may obtain a copy of the License at:
9  *
10  *  http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *  Unless required by applicable law or agreed to in writing, software
13  *  distributed under the License is distributed on an "AS IS" BASIS,
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *  See the License for the specific language governing permissions and
16  *  limitations under the License.
17  *
18  ******************************************************************************/
19 #ifndef UWB_GKI_TARGET_H
20 #define UWB_GKI_TARGET_H
21 
22 #include "data_types.h"
23 
24 /******************************************************************************
25 **
26 ** Task configuration
27 **
28 ******************************************************************************/
29 
30 /* Definitions of task IDs for inter-task messaging */
31 #ifndef MMI_TASK
32 #define MMI_TASK 0
33 #endif
34 
35 #ifndef HCISU_TASK
36 #define HCISU_TASK 1
37 #endif
38 
39 #ifndef UCIT_TASK
40 #define UCIT_TASK 2
41 #endif
42 
43 #ifndef UWB_TASK
44 #define UWB_TASK 3
45 #endif
46 
47 #ifndef BTU_TASK
48 #define BTU_TASK 4
49 #endif
50 
51 /* The number of GKI tasks in the software system. */
52 #ifndef GKI_MAX_TASKS
53 #define GKI_MAX_TASKS 5
54 #endif
55 
56 /******************************************************************************
57 **
58 ** Timer configuration
59 **
60 ******************************************************************************/
61 
62 /* The number of GKI timers in the software system. */
63 #ifndef GKI_NUM_TIMERS
64 #define GKI_NUM_TIMERS 3
65 #endif
66 
67 /* A conversion value for translating ticks to calculate GKI timer.  */
68 #ifndef TICKS_PER_SEC
69 #define TICKS_PER_SEC 100
70 #endif
71 
72 /* delay in ticks before stopping system tick. */
73 #ifndef GKI_DELAY_STOP_SYS_TICK
74 #define GKI_DELAY_STOP_SYS_TICK 10
75 #endif
76 
77 /******************************************************************************
78 **
79 ** Buffer configuration
80 **
81 ******************************************************************************/
82 #define GKI_ENABLE_BUF_CORRUPTION_CHECK TRUE
83 #define GKI_DEF_BUFPOOL_PERM_MASK 0xfff0
84 #define GKI_NUM_TOTAL_BUF_POOLS 10
85 #define GKI_NUM_FIXED_BUF_POOLS 4
86 
87 /* The size of the buffers in pool 0 */
88 #define GKI_POOL_ID_0 0
89 #define GKI_BUF0_SIZE 268
90 #define GKI_BUF0_MAX 40
91 
92 /* The size of the buffers in pool 1 */
93 #define GKI_POOL_ID_1
94 #define GKI_BUF1_SIZE 428
95 #define GKI_BUF1_MAX 26
96 
97 /* The size of the buffers in pool 2 */
98 #define GKI_POOL_ID_2 2
99 #define GKI_BUF2_SIZE 4200
100 #define GKI_BUF2_MAX 50
101 
102 /* The size of the buffers in pool 3 */
103 #define GKI_POOL_ID_3 3
104 #define GKI_BUF3_SIZE 4200
105 #define GKI_BUF3_MAX 30
106 
107 #endif /* UWB_GKI_TARGET_H */
108