Matthias Hertel | b73eaf3 | 2016-07-22 15:18:56 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | |
| 3 | <component_viewer schemaVersion="0.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd"> |
| 4 | <component name="RTOS" version="5.0.0"/> <!-- name and version of the component --> |
| 5 | |
| 6 | <typedefs> |
| 7 | <!-- Thread Control Block (rtx_os.h line 111) --> |
| 8 | <typedef name="os_thread_t" info="" size="60"> |
| 9 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 10 | <member name="state" type="uint8_t" offset="1" info="Object State"> |
| 11 | <enum name="osThreadInactive" value="0" info=""/> |
| 12 | <enum name="osThreadReady" value="1" info=""/> |
| 13 | <enum name="osThreadRunning" value="2" info=""/> |
| 14 | <enum name="osThreadWaiting" value="3" info=""/> |
| 15 | <enum name="osThreadSuspended" value="4" info=""/> |
| 16 | <enum name="osThreadTerminated" value="5" info=""/> |
| 17 | <enum name="osThreadError" value="-1" info=""/> |
| 18 | |
| 19 | <enum name="Waiting Delay" value="0x13" info=""/> |
| 20 | <enum name="Waiting Join" value="0x23" info=""/> |
| 21 | <enum name="Waiting ThreadFlags" value="0x33" info=""/> |
| 22 | <enum name="Waiting EventFlags" value="0x43" info=""/> |
| 23 | <enum name="Waiting Mutex" value="0x53" info=""/> |
| 24 | <enum name="Waiting Semaphore" value="0x63" info=""/> |
| 25 | <enum name="Waiting MemoryPool" value="0x73" info=""/> |
| 26 | <enum name="Waiting MessageGet" value="0x83" info=""/> |
| 27 | <enum name="Waiting MessagePut" value="0x93" info=""/> |
| 28 | </member> |
| 29 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 30 | <member name="attr" type="uint8_t" offset="3" info="Object Attributes"/> |
| 31 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 32 | |
| 33 | <member name="thread_next" type="*os_thread_t" offset="8" info="Link pointer to next Thread in Object list"/> |
| 34 | <member name="thread_prev" type="*os_thread_t" offset="12" info="Link pointer to previous Thread in Object list"/> |
| 35 | <member name="delay_next" type="*os_thread_t" offset="16" info="Link pointer to next Thread in Delay list"/> |
| 36 | <member name="delay_prev" type="*os_thread_t" offset="20" info="Link pointer to previous Thread in Delay list"/> |
| 37 | <member name="thread_join" type="*os_thread_t" offset="24" info="Thread waiting to Join"/> |
| 38 | |
| 39 | <member name="delay" type="uint32_t" offset="28" info="Delay time"/> |
| 40 | <member name="priority" type="int8_t" offset="32" info="Thread priority"> |
| 41 | <enum name="osPriorityNone" value="0" info=""/> |
| 42 | <enum name="osPriorityIdle" value="1" info=""/> |
| 43 | <enum name="osPriorityLow" value="8" info=""/> |
| 44 | <enum name="osPriorityLow1" value="8+1" info=""/> |
| 45 | <enum name="osPriorityLow2" value="8+2" info=""/> |
| 46 | <enum name="osPriorityLow3" value="8+3" info=""/> |
| 47 | <enum name="osPriorityLow4" value="8+4" info=""/> |
| 48 | <enum name="osPriorityLow5" value="8+5" info=""/> |
| 49 | <enum name="osPriorityLow6" value="8+6" info=""/> |
| 50 | <enum name="osPriorityLow7" value="8+7" info=""/> |
| 51 | <enum name="osPriorityBelowNormal" value="16" info=""/> |
| 52 | <enum name="osPriorityBelowNormal1" value="16+1" info=""/> |
| 53 | <enum name="osPriorityBelowNormal2" value="16+2" info=""/> |
| 54 | <enum name="osPriorityBelowNormal3" value="16+3" info=""/> |
| 55 | <enum name="osPriorityBelowNormal4" value="16+4" info=""/> |
| 56 | <enum name="osPriorityBelowNormal5" value="16+5" info=""/> |
| 57 | <enum name="osPriorityBelowNormal6" value="16+6" info=""/> |
| 58 | <enum name="osPriorityBelowNormal7" value="16+7" info=""/> |
| 59 | <enum name="osPriorityNormal" value="24" info=""/> |
| 60 | <enum name="osPriorityNormal1" value="24+1" info=""/> |
| 61 | <enum name="osPriorityNormal2" value="24+2" info=""/> |
| 62 | <enum name="osPriorityNormal3" value="24+3" info=""/> |
| 63 | <enum name="osPriorityNormal4" value="24+4" info=""/> |
| 64 | <enum name="osPriorityNormal5" value="24+5" info=""/> |
| 65 | <enum name="osPriorityNormal6" value="24+6" info=""/> |
| 66 | <enum name="osPriorityNormal7" value="24+7" info=""/> |
| 67 | <enum name="osPriorityAboveNormal" value="32" info=""/> |
| 68 | <enum name="osPriorityAboveNormal1" value="32+1" info=""/> |
| 69 | <enum name="osPriorityAboveNormal2" value="32+2" info=""/> |
| 70 | <enum name="osPriorityAboveNormal3" value="32+3" info=""/> |
| 71 | <enum name="osPriorityAboveNormal4" value="32+4" info=""/> |
| 72 | <enum name="osPriorityAboveNormal5" value="32+5" info=""/> |
| 73 | <enum name="osPriorityAboveNormal6" value="32+6" info=""/> |
| 74 | <enum name="osPriorityAboveNormal7" value="32+7" info=""/> |
| 75 | <enum name="osPriorityHigh" value="40" info=""/> |
| 76 | <enum name="osPriorityHigh1" value="40+1" info=""/> |
| 77 | <enum name="osPriorityHigh2" value="40+2" info=""/> |
| 78 | <enum name="osPriorityHigh3" value="40+3" info=""/> |
| 79 | <enum name="osPriorityHigh4" value="40+4" info=""/> |
| 80 | <enum name="osPriorityHigh5" value="40+5" info=""/> |
| 81 | <enum name="osPriorityHigh6" value="40+6" info=""/> |
| 82 | <enum name="osPriorityHigh7" value="40+7" info=""/> |
| 83 | <enum name="osPriorityRealtime" value="48" info=""/> |
| 84 | <enum name="osPriorityRealtime1" value="48+1" info=""/> |
| 85 | <enum name="osPriorityRealtime2" value="48+2" info=""/> |
| 86 | <enum name="osPriorityRealtime3" value="48+3" info=""/> |
| 87 | <enum name="osPriorityRealtime4" value="48+4" info=""/> |
| 88 | <enum name="osPriorityRealtime5" value="48+5" info=""/> |
| 89 | <enum name="osPriorityRealtime6" value="48+6" info=""/> |
| 90 | <enum name="osPriorityRealtime7" value="48+7" info=""/> |
| 91 | <enum name="osPriorityISR" value="56" info=""/> |
| 92 | <enum name="osPriorityError" value="-1" info=""/> |
| 93 | </member> |
| 94 | <member name="priority_base" type="int8_t" offset="33" info="Base priority"/> |
| 95 | <member name="stack_frame" type="uint8_t" offset="34" info="Stack frame"/> |
| 96 | <member name="flags_options" type="uint8_t" offset="35" info="Thread/Event flags options"/> |
| 97 | <member name="wait_flags" type="int32_t" offset="36" info="Waiting Thread/Event flags"/> |
| 98 | <member name="thread_flags" type="int32_t" offset="40" info="Thread flags"/> |
| 99 | <member name="mutex_list" type="*os_mutex_t" offset="44" info="Link pointer to list of owned mutexes"/> |
| 100 | <member name="stack_mem" type="uint32_t" offset="48" info="Stack memory (type is void *)"/> |
| 101 | <member name="stack_size" type="uint32_t" offset="52" info="Stack size"/> |
| 102 | <member name="sp" type="uint32_t" offset="56" info="Current stack pointer"/> |
| 103 | |
| 104 | <var name="cb_id" type="uint8_t" size="1" info="Component View ID"/> |
| 105 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 106 | |
| 107 | <var name="ex_delay" type="uint32_t" size="1" info="Calculated execution delay"/> |
| 108 | |
| 109 | <var name="stack_val" type="uint32_t" size="1" info="Stack usage: analysis result"/> |
| 110 | <var name="stack_cur" type="uint32_t" size="1" info="Stack usage: current (in percent)"/> |
| 111 | <var name="stack_maxb" type="uint32_t" size="1" info="Stack usage: maximum (in bytes)"/> |
| 112 | <var name="stack_maxp" type="uint32_t" size="1" info="Stack usage: maximum (in percent)"/> |
| 113 | <var name="stack_over" type="uint8_t" size="1" info="Stack usage: overflow"/> |
| 114 | </typedef> |
| 115 | |
| 116 | <!-- Timer Control Block (rtx_os.h line 153) --> |
| 117 | <typedef name="os_timer_t" info="" size="32"> |
| 118 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 119 | <member name="state" type="uint8_t" offset="1" info="Object State"> |
| 120 | <enum name="Inactive" value="0" info="Timer is not active"/> |
| 121 | <enum name="Stopped" value="1" info="Timer is stopped"/> |
| 122 | <enum name="Running" value="2" info="Timer is running"/> |
| 123 | </member> |
| 124 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 125 | <member name="type" type="uint8_t" offset="3" info="Timer Type"> |
| 126 | <enum name="osTimerOnce" value="0" info="One-shot timer"/> |
| 127 | <enum name="osTimerPeriodic" value="1" info="Periodic timer"/> |
| 128 | </member> |
| 129 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 130 | <member name="prev" type="*os_timer_t" offset="8" info="Pointer to previous active timer"/> |
| 131 | <member name="next" type="*os_timer_t" offset="12" info="Pointer to next active timer"/> |
| 132 | <member name="tick" type="uint32_t" offset="16" info="Timer current tick"/> |
| 133 | <member name="load" type="uint32_t" offset="20" info="Timer load value"/> |
| 134 | <!-- Inlined "os_timer_finfo_t" structure (rtx_os.h line 147) --> |
| 135 | <member name="finfo_fp" type="uint32_t" offset="24" info="Timer function pointer (type is void *)"/> |
| 136 | <member name="finfo_arg" type="uint32_t" offset="28" info="Timer function argument (type is void *)"/> |
| 137 | |
| 138 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 139 | <var name="ex_tick" type="uint32_t" size="1" info="Calculated absolute tick time"/> |
| 140 | </typedef> |
| 141 | |
| 142 | <!-- Event Flags Control Block (rtx_os.h line 170) --> |
| 143 | <typedef name="os_event_flags_t" info="" size="16"> |
| 144 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 145 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 146 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 147 | <member name="reserved" type="uint8_t" offset="3" info=""/> |
| 148 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 149 | <member name="thread_list" type="*os_thread_t" offset="8" info="Waiting threads list"/> |
| 150 | <member name="event_flags" type="int32_t" offset="12" info="Event flags"/> |
| 151 | |
| 152 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 153 | <var name="wl_idx" type="uint32_t" size="1" info="EventFlags waiting list (EWL) index" /> |
| 154 | <var name="wl_cnt" type="uint32_t" size="1" info="Number of threads waiting for event flags" /> |
| 155 | </typedef> |
| 156 | |
| 157 | <!-- Mutex Control Block (rtx_os.h line 184) --> |
| 158 | <typedef name="os_mutex_t" info="" size="28"> |
| 159 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 160 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 161 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 162 | <member name="attr" type="uint8_t" offset="3" info="Object Attributes"/> |
| 163 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 164 | <member name="thread_list" type="*os_thread_t" offset="8" info="Waiting threads list"/> |
| 165 | <member name="owner_thread" type="*os_thread_t" offset="12" info="Owner thread"/> |
| 166 | <member name="owner_prev" type="*os_mutex_t" offset="16" info="Pointer to previous owned mutex"/> |
| 167 | <member name="owner_next" type="*os_mutex_t" offset="20" info="Pointer to next owned mutex"/> |
| 168 | <member name="lock" type="uint8_t" offset="24" info="Lock counter"/> |
| 169 | |
| 170 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 171 | <var name="wl_idx" type="uint32_t" size="1" info="Mutex waiting list (MWL) index" /> |
| 172 | <var name="wl_cnt" type="uint32_t" size="1" info="Number of threads waiting for current mutex" /> |
| 173 | </typedef> |
| 174 | |
| 175 | <!-- Semaphore Control Block (rtx_os.h line 202) --> |
| 176 | <typedef name="os_semaphore_t" info="" size="16"> |
| 177 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 178 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 179 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 180 | <member name="reserved" type="uint8_t" offset="3" info=""/> |
| 181 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 182 | <member name="thread_list" type="*os_thread_t" offset="8" info="Waiting threads list"/> |
| 183 | <member name="tokens" type="uint16_t" offset="12" info="Current number of tokens"/> |
| 184 | <member name="max_tokens" type="uint16_t" offset="14" info="Maximum number of tokens"/> |
| 185 | |
| 186 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 187 | <var name="wl_idx" type="uint32_t" size="1" info="Semaphore waiting list (SWL) index" /> |
| 188 | <var name="wl_cnt" type="uint32_t" size="1" info="Number of threads waiting for current semaphore" /> |
| 189 | </typedef> |
| 190 | |
| 191 | <!-- Memory Pool Information (rtx_os.h line 217) --> |
| 192 | <typedef name="os_mp_info_t" info="Memory pool information" size="24"> |
| 193 | <member name="max_blocks" type="uint32_t" offset="0" info="Maximum number of blocks"/> |
| 194 | <member name="used_blocks" type="uint32_t" offset="4" info="Number of used blocks"/> |
| 195 | <member name="block_size" type="uint32_t" offset="8" info="Block size"/> |
| 196 | <member name="block_base" type="uint32_t" offset="12" info="Block memory base address (type is void *)"/> |
| 197 | <member name="block_lim" type="uint32_t" offset="16" info="Block memory limit address (type is void *)"/> |
| 198 | <member name="block_free" type="uint32_t" offset="20" info="First free block address (type is void *)"/> |
| 199 | </typedef> |
| 200 | |
| 201 | <!-- Memory Pool Control Block (rtx_os.h line 227) --> |
| 202 | <typedef name="os_memory_pool_t" info="" size="36"> |
| 203 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 204 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 205 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 206 | <member name="reserved" type="uint8_t" offset="3" info=""/> |
| 207 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 208 | <member name="thread_list" type="*os_thread_t" offset="8" info="Waiting threads list"/> |
| 209 | |
| 210 | <!-- Inlined "os_mp_info_t" structure (rtx_os.h line 217) --> |
| 211 | <member name="max_blocks" type="uint32_t" offset="12+0" info="Maximum number of blocks"/> |
| 212 | <member name="used_blocks" type="uint32_t" offset="12+4" info="Number of used blocks"/> |
| 213 | <member name="block_size" type="uint32_t" offset="12+8" info="Block size"/> |
| 214 | <member name="block_base" type="uint32_t" offset="12+12" info="Block memory base address (type is void *)"/> |
| 215 | <member name="block_lim" type="uint32_t" offset="12+16" info="Block memory limit address (type is void *)"/> |
| 216 | <member name="block_free" type="uint32_t" offset="12+20" info="First free block address (type is void *)"/> |
| 217 | |
| 218 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 219 | <var name="wl_idx" type="uint32_t" size="1" info="Memory Pool waiting list (PWL) index" /> |
| 220 | <var name="wl_cnt" type="uint32_t" size="1" info="Number of threads waiting for memory pool" /> |
| 221 | </typedef> |
| 222 | |
| 223 | <!-- Message Control Block (rtx_os.h line 241) --> |
| 224 | <typedef name="os_message_t" info="" size="12"> |
| 225 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 226 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 227 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 228 | <member name="priority" type="uint8_t" offset="3" info="Message priority"/> |
| 229 | <member name="prev" type="*os_message_t" offset="4" info="Pointer to previous message"/> |
| 230 | <member name="next" type="*os_message_t" offset="8" info="Pointer to next message"/> |
| 231 | </typedef> |
| 232 | |
| 233 | <!-- Message Queue Control Block (rtx_os.h line 251) --> |
| 234 | <typedef name="os_message_queue_t" info="" size="52"> |
| 235 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 236 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 237 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 238 | <member name="reserved" type="uint8_t" offset="3" info=""/> |
| 239 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 240 | <member name="thread_list" type="*os_thread_t" offset="8" info="Waiting threads list"/> |
| 241 | |
| 242 | <!-- Inlined "os_mp_info_t" structure (rtx_os.h line 217) --> |
| 243 | <member name="max_blocks" type="uint32_t" offset="12+0" info="Maximum number of blocks"/> |
| 244 | <member name="used_blocks" type="uint32_t" offset="12+4" info="Number of used blocks"/> |
| 245 | <member name="block_size" type="uint32_t" offset="12+8" info="Block size"/> |
| 246 | <member name="block_base" type="uint32_t" offset="12+12" info="Block memory base address (type is void *)"/> |
| 247 | <member name="block_lim" type="uint32_t" offset="12+16" info="Block memory limit address (type is void *)"/> |
| 248 | <member name="block_free" type="uint32_t" offset="12+20" info="First free block address (type is void *)"/> |
| 249 | |
| 250 | <member name="msg_size" type="uint32_t" offset="36" info="Message size"/> |
| 251 | <member name="msg_count" type="uint32_t" offset="40" info="Number of queued messages"/> |
| 252 | <member name="msg_first" type="*os_message_t" offset="44" info="Pointer to first message"/> |
| 253 | <member name="msg_last" type="*os_message_t" offset="48" info="Pointer to last message"/> |
| 254 | |
| 255 | <var name="cb_valid" type="uint32_t" size="1" info="Control Block validation status (valid=1, invalid=0)"/> |
| 256 | <var name="wl_idx" type="uint32_t" size="1" info="Waiting list index (QWL)" /> |
| 257 | <var name="wl_cnt" type="uint32_t" size="1" info="Number of threads waiting" /> |
| 258 | </typedef> |
| 259 | |
| 260 | <!-- Generic Object Control Block (rtx_os.h line 269) --> |
| 261 | <typedef name="os_object_t" info="" size="12"> |
| 262 | <member name="id" type="uint8_t" offset="0" info="Object Identifier"/> |
| 263 | <member name="state" type="uint8_t" offset="1" info="Object State"/> |
| 264 | <member name="flags" type="uint8_t" offset="2" info="Object Flags"/> |
| 265 | <member name="reserved" type="uint8_t" offset="3" info=""/> |
| 266 | <member name="name" type="uint32_t" offset="4" info="Object name (type is *uint8_t)"/> |
| 267 | <member name="thread_list" type="*os_thread_t" offset="8" info="Threads list"/> |
| 268 | </typedef> |
| 269 | |
| 270 | <!-- OS Runtime Information structure (rtx_os.h line 282) --> |
| 271 | <typedef name="os_info_t" info="OS Runtime Information" size="168"> |
| 272 | <member name="os_id" type="uint32_t" offset="0" info="OS Identification (type is *uint8_t)"/> |
| 273 | <member name="version" type="uint32_t" offset="4" info="OS Version"/> |
| 274 | <member name="kernel_state" type="uint8_t" offset="8" info="Kernel state"> |
| 275 | <enum name="osKernelInactive" value="0" info="Inactive"/> |
| 276 | <enum name="osKernelReady" value="1" info="Ready"/> |
| 277 | <enum name="osKernelRunning" value="2" info="Running"/> |
| 278 | <enum name="osKernelLocked" value="3" info="Locked"/> |
| 279 | <enum name="osKernelSuspended" value="4" info="Suspended"/> |
| 280 | <enum name="osKernelError" value="5" info="Error"/> |
| 281 | </member> |
| 282 | <member name="kernel_blocked" type="uint8_t" offset="9" info="Kernel blocked"/> |
| 283 | <member name="kernel_pendISR" type="uint8_t" offset="10" info="Kernel pending ISR"/> |
| 284 | <member name="kernel_pendSV" type="uint8_t" offset="11" info="Kernel pending SV"/> |
| 285 | <member name="kernel_usec_ticks" type="uint32_t" offset="12" info="Kernel microsec ticks"/> |
| 286 | <member name="kernel_time" type="uint64_t" offset="16" info="Kernel time in milisec"/> |
| 287 | |
| 288 | <member name="tick_irqn" type="int32_t" offset="24" info="Tick timer IRQ number"/> |
| 289 | |
| 290 | <member name="thread_run_curr" type="*os_thread_t" offset="28" info="Current running thread"/> |
| 291 | <member name="thread_run_next" type="*os_thread_t" offset="32" info="Next thread to run"/> |
| 292 | |
| 293 | <!-- Inlined "os_object_t" structure at offset: 36 (rtx_os.h line 269) --> |
| 294 | <!-- <member name="thread_ready" type="os_object_t" offset="36" info="Ready list object"/>--> |
| 295 | <member name="thread_ready_id" type="uint8_t" offset="36+0" info="Object Identifier" /> |
| 296 | <member name="thread_ready_state" type="uint8_t" offset="36+1" info="Object State" /> |
| 297 | <member name="thread_ready_flags" type="uint8_t" offset="36+2" info="Object Flags" /> |
| 298 | <member name="thread_ready_rsvd" type="uint8_t" offset="36+3" info="Reserved" /> |
| 299 | <member name="thread_ready_name" type="uint32_t" offset="36+4" info="Object Name (type is *uint8_t)" /> |
| 300 | <member name="thread_ready_thread_list" type="*os_thread_t" offset="36+8" info="Threads List" /> |
| 301 | |
| 302 | <member name="thread_idle" type="*os_thread_t" offset="48" info="Idle thread"/> |
| 303 | <member name="thread_delay_list" type="*os_thread_t" offset="52" info="Delay list"/> |
| 304 | <member name="thread_suspended_list" type="*os_thread_t" offset="56" info="Suspended thread list"/> |
| 305 | <member name="thread_terminated_list" type="*os_thread_t" offset="60" info="Terminated thread list"/> |
| 306 | |
| 307 | <member name="thread_robin_thread" type="*os_thread_t" offset="64" info="Round Robin thread"/> |
| 308 | <member name="thread_robin_tick" type="uint32_t" offset="68" info="Round Robin time tick"/> |
| 309 | <member name="thread_timeout" type="uint32_t" offset="72" info="Round Robin timeout"/> |
| 310 | |
| 311 | <member name="timer_list" type="*os_timer_t" offset="76" info="Active timer list"/> |
| 312 | <member name="timer_thread" type="*os_thread_t" offset="80" info="Timer thread"/> |
| 313 | <member name="timer_mq" type="*os_message_queue_t" offset="84" info="Timer message queue"/> |
| 314 | |
| 315 | <member name="isr_queue_max" type="uint16_t" offset="88" info="Maximum items"/> |
| 316 | <member name="isr_queue_cnt" type="uint16_t" offset="90" info="Item count"/> |
| 317 | <member name="isr_queue_in" type="uint16_t" offset="92" info="Incoming item index"/> |
| 318 | <member name="isr_queue_out" type="uint16_t" offset="94" info="Outgoing item index"/> |
| 319 | <member name="isr_queue_data" type="uint32_t" offset="96" info="Queue data (value is void **)"/> |
| 320 | |
| 321 | <member name="post_process_thread" type="uint32_t" offset="100" info="Thread post processing function (value is func *)"/> |
| 322 | <member name="post_process_event_flags" type="uint32_t" offset="104" info="Event flags post processing function (value is func *)"/> |
| 323 | <member name="post_process_semaphore" type="uint32_t" offset="108" info="Semaphore post processing function (value is func *)"/> |
| 324 | <member name="post_process_memory_pool" type="uint32_t" offset="112" info="Memory pool post processing function (value is func *)"/> |
| 325 | <member name="post_process_message_queue" type="uint32_t" offset="116" info="Message queue post processing function (value is func *)"/> |
| 326 | |
| 327 | <member name="mem_cb" type="uint32_t" offset="120" info="Control blocks memory (value is void *)"/> |
| 328 | <member name="mem_data" type="uint32_t" offset="124" info="Data memory (value is void *)"/> |
| 329 | <member name="mem_stack" type="uint32_t" offset="128" info="Stack memory (value is void *)"/> |
| 330 | <member name="mem_common" type="uint32_t" offset="132" info="Common memory address (value is void *)"/> |
| 331 | |
| 332 | <member name="mpi_stack" type="*os_mp_info_t" offset="136" info="Stack for threads"/> |
| 333 | <member name="mpi_thread" type="*os_mp_info_t" offset="140" info="Thread control blocks"/> |
| 334 | <member name="mpi_timer" type="*os_mp_info_t" offset="144" info="Timer control blocks"/> |
| 335 | <member name="mpi_event_flags" type="*os_mp_info_t" offset="148" info="Event flags control blocks"/> |
| 336 | <member name="mpi_mutex" type="*os_mp_info_t" offset="152" info="Mutex control blocks"/> |
| 337 | <member name="mpi_semaphore" type="*os_mp_info_t" offset="156" info="Semaphore control blocks"/> |
| 338 | <member name="mpi_memory_pool" type="*os_mp_info_t" offset="160" info="Memory pool control blocks"/> |
| 339 | <member name="mpi_message_queue" type="*os_mp_info_t" offset="164" info="Message queue control blocks"/> |
| 340 | </typedef> |
| 341 | |
| 342 | <!-- OS Configuration structure (rtx_os.h line 433) --> |
| 343 | <typedef name="os_config_t" info="OS Configuration Structure" size="100"> |
| 344 | <member name="flags" type="uint32_t" offset="0" info="OS configuration flags"/> |
| 345 | <member name="robin_timeout" type="uint32_t" offset="4" info="Round Robim timeout tick"/> |
| 346 | <member name="isr_queue_data" type="uint32_t" offset="8" info="ISR post processing queue (value is void **)"/> |
| 347 | <member name="isr_queue_max" type="uint16_t" offset="12" info="Maximum data"/> |
| 348 | <member name="isr_queue_padding" type="uint16_t" offset="14" info="Padding bytes"/> |
| 349 | |
| 350 | <member name="mem_cb_addr" type="uint32_t" offset="16" info="Control block memory address"/> |
| 351 | <member name="mem_cb_size" type="uint32_t" offset="20" info="Control block memory size"/> |
| 352 | <member name="mem_data_addr" type="uint32_t" offset="24" info="Data memory address"/> |
| 353 | <member name="mem_data_size" type="uint32_t" offset="28" info="Data memory size"/> |
| 354 | <member name="mem_stack_addr" type="uint32_t" offset="32" info="Stack memory address"/> |
| 355 | <member name="mem_stack_size" type="uint32_t" offset="36" info="Stack memory size"/> |
| 356 | <member name="mem_common_addr" type="uint32_t" offset="40" info="Common memory address"/> |
| 357 | <member name="mem_common_size" type="uint32_t" offset="44" info="Common memory size"/> |
| 358 | |
| 359 | <member name="mpi_stack" type="*os_mp_info_t" offset="48" info="Stack for threads"/> |
| 360 | <member name="mpi_thread" type="*os_mp_info_t" offset="52" info="Thread control blocks"/> |
| 361 | <member name="mpi_timer" type="*os_mp_info_t" offset="56" info="Timer control blocks"/> |
| 362 | <member name="mpi_event_flags" type="*os_mp_info_t" offset="60" info="Event flags control blocks"/> |
| 363 | <member name="mpi_mutex" type="*os_mp_info_t" offset="64" info="Mutex control blocks"/> |
| 364 | <member name="mpi_semaphore" type="*os_mp_info_t" offset="68" info="Semaphore control blocks"/> |
| 365 | <member name="mpi_memory_pool" type="*os_mp_info_t" offset="72" info="Memory pool control blocks"/> |
| 366 | <member name="mpi_message_queue" type="*os_mp_info_t" offset="76" info="Message queue control blocks"/> |
| 367 | |
| 368 | <member name="thread_stack_size" type="uint32_t" offset="80" info="Default thread stack size"/> |
| 369 | <member name="idle_thread_attr" type="uint32_t" offset="84" info="Idle thread attributes (value is osThreadAttr_s *)"/> |
| 370 | <member name="timer_thread_attr" type="uint32_t" offset="88" info="Timer thread attributes (value is osThreadAttr_s *)"/> |
| 371 | <member name="timer_mq_attr" type="uint32_t" offset="92" info="Timer message queue attributes (value is osMessageQueueAttr_s *)"/> |
| 372 | <member name="timer_mq_mcnt" type="uint32_t" offset="96" info="Timer message queue maximum messages"/> |
| 373 | </typedef> |
| 374 | |
| 375 | <!-- Memory Pool Header --> |
| 376 | <typedef name="mem_head_t" info="Memory Pool Header Structure" size="8"> |
| 377 | <member name="size" type="uint32_t" offset="0" info="Memory pool size"/> |
| 378 | <member name="used" type="uint32_t" offset="4" info="Size of used memory"/> |
| 379 | </typedef> |
| 380 | |
| 381 | <!-- Memory Block Header + Object Header --> |
| 382 | <typedef name="mem_block_t" info="Memory Block Header Structure" size="9"> |
| 383 | <member name="next" type="*mem_block_t" offset="0" info="Next memory block"/> |
| 384 | <member name="len" type="uint32_t" offset="4" info="Memory block size"/> |
| 385 | <member name="id" type="uint8_t" offset="8" info="Object Identifier"/> |
| 386 | </typedef> |
| 387 | |
| 388 | </typedefs> |
| 389 | |
| 390 | <objects> |
| 391 | <object name="RTX RTOS Object"> |
| 392 | <var name="i" type="uint32_t" value="0" /> |
| 393 | <var name="j" type="uint32_t" value="0" /> |
| 394 | <var name="k" type="uint32_t" value="0" /> |
| 395 | <var name="sp" type="uint32_t" value="0" /> |
| 396 | <var name="addr" type="uint32_t" value="0" /> |
| 397 | |
| 398 | <var name="TCB_En" type="uint8_t" value="0" /> |
| 399 | <var name="CCB_En" type="uint8_t" value="0" /> |
| 400 | <var name="SCB_En" type="uint8_t" value="0" /> |
| 401 | <var name="MCB_En" type="uint8_t" value="0" /> |
| 402 | <var name="ECB_En" type="uint8_t" value="0" /> |
| 403 | <var name="PCB_En" type="uint8_t" value="0" /> |
| 404 | <var name="QCB_En" type="uint8_t" value="0" /> |
| 405 | |
| 406 | <!-- Read main OS information and configuration structures --> |
| 407 | <readlist name="os_Info" type="os_info_t" symbol="os_Info" count="1" init="1"/> |
| 408 | <readlist name="os_Config" type="os_config_t" symbol="os_Config" count="1" init="1"/> |
| 409 | |
| 410 | <var name="stack_check" type="uint8_t" value="__Symbol_exists("os_ThreadStackCheck")"/> |
| 411 | <var name="stack_wmark" type="uint8_t" value="(os_Config.flags >> 1) & 1"/> |
| 412 | |
| 413 | <!-- Read ISR FIFO queue --> |
| 414 | <read name="ISR_FIFO" type="uint32_t" offset="os_Config.isr_queue_data" size="os_Config.isr_queue_max" init="1"/> |
| 415 | |
| 416 | <!-- Read idle and timer thread control blocks --> |
| 417 | <readlist name="TCB" cond="os_Info.thread_idle" type="os_thread_t" offset="os_Info.thread_idle" count="1" /> |
| 418 | <readlist name="TCB" cond="os_Info.timer_thread" type="os_thread_t" offset="os_Info.timer_thread" count="1" /> |
| 419 | |
| 420 | <!-- Read thread control blocks (MPI) --> |
| 421 | <readlist name="mp_thread" cond="os_Info.mpi_thread" type="os_mp_info_t" offset="os_Info.mpi_thread" count="1" init="1"/> |
| 422 | <readlist name="TCB" cond="os_Info.mpi_thread" type="os_thread_t" offset="mp_thread.block_base" count="mp_thread.max_blocks" /> |
| 423 | |
| 424 | <!-- Read timer control blocks (MPI) --> |
| 425 | <readlist name="mp_timer" cond="os_Info.mpi_timer" type="os_mp_info_t" offset="os_Info.mpi_timer" count="1" init="1"/> |
| 426 | <readlist name="CCB" cond="os_Info.mpi_timer" type="os_timer_t" offset="mp_timer.block_base" count="mp_timer.max_blocks" /> |
| 427 | |
| 428 | <!-- Read event flags control blocks (MPI) --> |
| 429 | <readlist name="mp_events" cond="os_Info.mpi_event_flags" type="os_mp_info_t" offset="os_Info.mpi_event_flags" count="1" init="1"/> |
| 430 | <readlist name="ECB" cond="os_Info.mpi_event_flags" type="os_event_flags_t" offset="mp_events.block_base" count="mp_events.max_blocks" /> |
| 431 | |
| 432 | <!-- Read mutex control blocks (MPI) --> |
| 433 | <readlist name="mp_mutex" cond="os_Info.mpi_mutex" type="os_mp_info_t" offset="os_Info.mpi_mutex" count="1" init="1"/> |
| 434 | <readlist name="MCB" cond="os_Info.mpi_mutex" type="os_mutex_t" offset="mp_mutex.block_base" count="mp_mutex.max_blocks" /> |
| 435 | |
| 436 | <!-- Read semaphore control blocks (MPI) --> |
| 437 | <readlist name="mp_semaphore" cond="os_Info.mpi_semaphore" type="os_mp_info_t" offset="os_Info.mpi_semaphore" count="1" init="1"/> |
| 438 | <readlist name="SCB" cond="os_Info.mpi_semaphore" type="os_semaphore_t" offset="mp_semaphore.block_base" count="mp_semaphore.max_blocks" /> |
| 439 | |
| 440 | <!-- Read memory pool control blocks (MPI) --> |
| 441 | <readlist name="mp_mpool" cond="os_Info.mpi_memory_pool" type="os_mp_info_t" offset="os_Info.mpi_memory_pool" count="1" init="1"/> |
| 442 | <readlist name="PCB" cond="os_Info.mpi_memory_pool" type="os_memory_pool_t" offset="mp_mpool.block_base" count="mp_mpool.max_blocks" /> |
| 443 | |
| 444 | <!-- Read message queue control blocks (MPI) --> |
| 445 | <readlist name="mp_mqueue" cond="os_Info.mpi_message_queue" type="os_mp_info_t" offset="os_Info.mpi_message_queue" count="1" init="1"/> |
| 446 | <readlist name="QCB" cond="os_Info.mpi_message_queue" type="os_message_queue_t" offset="mp_mqueue.block_base" count="mp_mqueue.max_blocks" /> |
| 447 | |
| 448 | <!-- Read control block memory pool info (MEM) --> |
| 449 | <readlist name="mem_cb_head" cond="os_Info.mem_cb" type="mem_head_t" offset="os_Info.mem_cb" count="1" init="1"/> |
| 450 | <readlist name="mem_cb" cond="os_Info.mem_cb" type="mem_block_t" offset="os_Info.mem_cb + 8" next="next"/> |
| 451 | |
| 452 | <list cond="mem_cb._count > 1" name="i" start="0" limit="mem_cb._count-1"> |
| 453 | <calc> |
| 454 | addr = mem_cb[i]._addr; |
| 455 | addr += 8; |
| 456 | </calc> |
| 457 | |
| 458 | <!-- Read Thread Control Block --> |
| 459 | <readlist cond="mem_cb[i].id == 1" name="TCB" type="os_thread_t" offset="addr" count="1" /> |
| 460 | |
| 461 | <!-- Read Timer Control Block --> |
| 462 | <readlist cond="mem_cb[i].id == 2" name="CCB" type="os_timer_t" offset="addr" count="1" /> |
| 463 | |
| 464 | <!-- Read EventFlags Control Block --> |
| 465 | <readlist cond="mem_cb[i].id == 3" name="ECB" type="os_event_flags_t" offset="addr" count="1" /> |
| 466 | |
| 467 | <!-- Read Mutex Control Block --> |
| 468 | <readlist cond="mem_cb[i].id == 4" name="MCB" type="os_mutex_t" offset="addr" count="1" /> |
| 469 | |
| 470 | <!-- Read Semaphore Control Block --> |
| 471 | <readlist cond="mem_cb[i].id == 5" name="SCB" type="os_semaphore_t" offset="addr" count="1" /> |
| 472 | |
| 473 | <!-- Read MemoryPool Control Block --> |
| 474 | <readlist cond="mem_cb[i].id == 6" name="PCB" type="os_memory_pool_t" offset="addr" count="1" /> |
| 475 | |
| 476 | <!-- Read MessageQueue Control Block --> |
| 477 | <readlist cond="mem_cb[i].id == 8" name="QCB" type="os_message_queue_t" offset="addr" count="1" /> |
| 478 | </list> |
| 479 | |
| 480 | <!-- Validate and process Thread control blocks --> |
| 481 | <list name="i" start="0" limit="TCB._count"> |
| 482 | <calc> |
| 483 | TCB[i].cb_valid = (TCB[i].id == 1) && (TCB[i].state != 0) && (TCB[i].sp != 0); |
| 484 | TCB[i].cb_id = 2; |
| 485 | </calc> |
| 486 | <calc cond="TCB[i]._addr == os_Info.timer_thread"> |
| 487 | TCB[i].cb_id = 1; |
| 488 | </calc> |
| 489 | <calc cond="TCB[i]._addr == os_Info.thread_idle"> |
| 490 | TCB[i].cb_id = 0; |
| 491 | </calc> |
| 492 | |
| 493 | <!-- Determine stack usage --> |
| 494 | <calc cond="TCB[i].sp != 0"> |
| 495 | TCB[i].stack_val = __CalcMemUsed (TCB[i].stack_mem, TCB[i].stack_size, 0xCCCCCCCC, 0xE25A2EA5); |
| 496 | TCB[i].stack_over = TCB[i].stack_val >> 31; |
| 497 | TCB[i].stack_maxb = TCB[i].stack_over ? TCB[i].stack_size : TCB[i].stack_val & 0xFFFFF; |
| 498 | TCB[i].stack_maxp = TCB[i].stack_over ? 100 : (TCB[i].stack_val >> 20) & 0x1FF; |
| 499 | </calc> |
| 500 | |
| 501 | <!-- Stack pointer for running thread --> |
| 502 | <calc cond="TCB[i].state == 2"> |
| 503 | sp = __GetRegVal ("PSP"); |
| 504 | </calc> |
| 505 | |
| 506 | <!-- Stack pointer for waiting thread --> |
| 507 | <calc cond="TCB[i].state != 2"> |
| 508 | sp = TCB[i].sp; |
| 509 | </calc> |
| 510 | |
| 511 | <!-- Determine current stack usage --> |
| 512 | <calc cond="TCB[i].sp != 0"> |
| 513 | TCB[i].stack_cur = TCB[i].stack_mem + TCB[i].stack_size; |
| 514 | TCB[i].stack_cur -= sp; |
| 515 | TCB[i].stack_cur *= 100; |
| 516 | TCB[i].stack_cur /= TCB[i].stack_size; |
| 517 | </calc> |
| 518 | |
| 519 | <calc> |
| 520 | TCB[i].ex_delay = TCB[i].delay; |
| 521 | </calc> |
| 522 | |
| 523 | <!-- Create Thread Delay List (TDL) --> |
| 524 | <readlist name="TDL" type="os_thread_t" offset="TCB[i].delay_prev" next="delay_prev" while="TCB[i].delay_prev != 0" init="1"/> |
| 525 | |
| 526 | <list name="j" start="0" limit="TDL._count" > |
| 527 | <calc> |
| 528 | TCB[i].ex_delay += TDL[j].delay; |
| 529 | </calc> |
| 530 | </list> |
| 531 | </list> |
| 532 | |
| 533 | <!-- Validate and process Timer control blocks --> |
| 534 | <list name="i" start="0" limit="CCB._count"> |
| 535 | <calc> |
| 536 | CCB[i].cb_valid = (CCB[i].id == 2) && (CCB[i].state != 0); |
| 537 | CCB[i].ex_tick = CCB[i].tick; |
| 538 | </calc> |
| 539 | |
| 540 | <!-- Create Timer Execution List (TEL) --> |
| 541 | <readlist name="TEL" type="os_timer_t" offset="CCB[i].prev" next="prev" while="CCB[i].prev != 0" init="1"/> |
| 542 | |
| 543 | <list name="j" start="0" limit="TEL._count"> |
| 544 | <calc> |
| 545 | CCB[i].ex_tick += TEL[j].tick; |
| 546 | </calc> |
| 547 | </list> |
| 548 | </list> |
| 549 | |
| 550 | <!-- Validate and process EventFlags control blocks --> |
| 551 | <calc> k = 0; </calc> |
| 552 | |
| 553 | <list name="i" start="0" limit="ECB._count"> |
| 554 | <calc> |
| 555 | ECB[i].cb_valid = (ECB[i].id == 3) && (ECB[i].state == 1); |
| 556 | ECB[i].wl_idx = k; |
| 557 | </calc> |
| 558 | |
| 559 | <!-- Create a list of threads waiting for event flags --> |
| 560 | <readlist name="EWL" type="os_thread_t" offset="ECB[i].thread_list" next="thread_next" /> |
| 561 | |
| 562 | <calc> |
| 563 | ECB[i].wl_cnt = (EWL._count - k); |
| 564 | k = EWL._count; |
| 565 | </calc> |
| 566 | </list> |
| 567 | |
| 568 | <!-- Validate and process Mutex control blocks --> |
| 569 | <calc> k = 0; </calc> |
| 570 | |
| 571 | <list cond="MCB._count" name="i" start="0" limit="MCB._count"> |
| 572 | <calc> |
| 573 | MCB[i].cb_valid = (MCB[i].id == 4) && (MCB[i].state == 1); |
| 574 | MCB[i].wl_idx = k; |
| 575 | </calc> |
| 576 | |
| 577 | <!-- Create a list of threads waiting for mutex --> |
| 578 | <readlist name="MWL" type="os_thread_t" offset="MCB[i].thread_list" next="thread_next" /> |
| 579 | |
| 580 | <calc> |
| 581 | MCB[i].wl_cnt = (MWL._count - k); |
| 582 | k = MWL._count; |
| 583 | </calc> |
| 584 | </list> |
| 585 | |
| 586 | |
| 587 | <!-- Validate and process semaphore control blocks --> |
| 588 | <calc> k = 0; </calc> |
| 589 | |
| 590 | <list cond="SCB._count" name="i" start="0" limit="SCB._count"> |
| 591 | <calc> |
| 592 | SCB[i].cb_valid = (SCB[i].id == 5) && (SCB[i].state == 1); |
| 593 | SCB[i].wl_idx = k; |
| 594 | </calc> |
| 595 | |
| 596 | <!-- Create a list of threads waiting for semaphore --> |
| 597 | <readlist name="SWL" type="os_thread_t" offset="SCB[i].thread_list" next="thread_next" /> |
| 598 | |
| 599 | <calc> |
| 600 | SCB[i].wl_cnt = (SWL._count - k); |
| 601 | k = SWL._count; |
| 602 | </calc> |
| 603 | </list> |
| 604 | |
| 605 | <!-- Validate and process MemoryPool control blocks --> |
| 606 | <calc> k = 0; </calc> |
| 607 | |
| 608 | <list cond="PCB._count" name="i" start="0" limit="PCB._count"> |
| 609 | <calc> |
| 610 | PCB[i].cb_valid = (PCB[i].id == 6) && (PCB[i].state == 1); |
| 611 | PCB[i].wl_idx = k; |
| 612 | </calc> |
| 613 | |
| 614 | <!-- Create a list of threads waiting for memory pool --> |
| 615 | <readlist name="PWL" type="os_thread_t" offset="PCB[i].thread_list" next="thread_next" /> |
| 616 | |
| 617 | <calc> |
| 618 | PCB[i].wl_cnt = (PWL._count - k); |
| 619 | k = PWL._count; |
| 620 | </calc> |
| 621 | </list> |
| 622 | |
| 623 | |
| 624 | <!-- Validate and process MessageQueue control blocks --> |
| 625 | <calc> k = 0; </calc> |
| 626 | |
| 627 | <list cond="QCB._count" name="i" start="0" limit="QCB._count"> |
| 628 | <calc> |
| 629 | QCB[i].cb_valid = (QCB[i].id == 8) && (QCB[i].state == 1); |
| 630 | QCB[i].wl_idx = k; |
| 631 | </calc> |
| 632 | |
| 633 | <!-- Create a list of threads waiting for message queue --> |
| 634 | <readlist name="QWL" type="os_thread_t" offset="QCB[i].thread_list" next="thread_next" /> |
| 635 | |
| 636 | <calc> |
| 637 | QCB[i].wl_cnt = (QWL._count - k); |
| 638 | k = QWL._count; |
| 639 | </calc> |
| 640 | </list> |
| 641 | |
| 642 | <!-- Determine what to display --> |
| 643 | <list cond="TCB._count" name="i" start="0" limit="TCB._count"> |
| 644 | <calc>TCB_En += TCB[i].cb_valid; </calc> |
| 645 | </list> |
| 646 | <list cond="CCB._count" name="i" start="0" limit="CCB._count"> |
| 647 | <calc>CCB_En += CCB[i].cb_valid; </calc> |
| 648 | </list> |
| 649 | <list cond="SCB._count" name="i" start="0" limit="SCB._count"> |
| 650 | <calc>SCB_En += SCB[i].cb_valid; </calc> |
| 651 | </list> |
| 652 | <list cond="MCB._count" name="i" start="0" limit="MCB._count"> |
| 653 | <calc>MCB_En += MCB[i].cb_valid; </calc> |
| 654 | </list> |
| 655 | <list cond="ECB._count" name="i" start="0" limit="ECB._count"> |
| 656 | <calc>ECB_En += ECB[i].cb_valid; </calc> |
| 657 | </list> |
| 658 | <list cond="PCB._count" name="i" start="0" limit="PCB._count"> |
| 659 | <calc>PCB_En += PCB[i].cb_valid; </calc> |
| 660 | </list> |
| 661 | <list cond="QCB._count" name="i" start="0" limit="QCB._count"> |
| 662 | <calc>QCB_En += QCB[i].cb_valid; </calc> |
| 663 | </list> |
| 664 | |
| 665 | <out name="RTX RTOS"> |
| 666 | <!-- System --> |
| 667 | <item property="System" value=""> |
| 668 | <item property="Kernel State" value="%E[os_Info.kernel_state]" /> |
| 669 | <item property="Round Robin Timeout" cond="os_Config.robin_timeout > 0" value="%d[os_Config.robin_timeout]ms" /> |
| 670 | <item property="Round Robin Timeout" cond="os_Config.robin_timeout == 0" value="Disabled" /> |
| 671 | <item property="Stack Overrun Check" value="%t[stack_check ? "Enabled" : "Disabled"]" /> |
| 672 | <item property="Stack Usage Watermark" value="%t[stack_wmark ? "Enabled" : "Disabled"]" /> |
| 673 | <item property="Default Thread Stack Size" value="%d[os_Config.thread_stack_size]" /> |
| 674 | |
| 675 | <item property="ISR FIFO Queue" value="Size: %d[os_Info.isr_queue_max], Used: %d[os_Info.isr_queue_cnt]"> |
| 676 | <list name="i" start="0" limit="os_Info.isr_queue_max"> |
| 677 | <item property="data[%d[i]]" value="%x[ISR_FIFO[i]]" /> |
| 678 | </list> |
| 679 | </item> |
| 680 | </item> |
| 681 | |
| 682 | <!-- Threads --> |
| 683 | <item cond="TCB_En" property="Threads" value=""> |
| 684 | <list name="i" start="0" limit="TCB._count"> |
| 685 | |
| 686 | <!-- Idle Thread --> |
| 687 | <item cond="TCB[i].cb_valid && (TCB[i].cb_id == 0)" property="id: %x[TCB[i]._addr], Idle thread" value="%E[TCB[i].state & 0x07], %E[TCB[i].priority]"> |
| 688 | |
| 689 | <item property="Stack Usage" value="Cur: %d[TCB[i].stack_cur]%%, Max: %d[TCB[i].stack_maxp]%% [ %d[TCB[i].stack_maxb]/%d[TCB[i].stack_size] ]" |
| 690 | cond="stack_wmark != 0"/> |
| 691 | |
| 692 | <item property="Stack Usage" value="Cur: %d[TCB[i].stack_cur]%%" |
| 693 | cond="stack_wmark == 0"/> |
| 694 | |
| 695 | <item property="Stack Overflow" cond="TCB[i].stack_over != 0" value="Overflow detected"/> |
| 696 | </item> |
| 697 | |
| 698 | <!-- Timer Thread --> |
| 699 | <item cond="TCB[i].cb_valid && (TCB[i].cb_id == 1)" property="id: %x[TCB[i]._addr], Timer thread" value="%E[TCB[i].state & 0x07], %E[TCB[i].priority]"> |
| 700 | |
| 701 | <item property="Stack Usage" value="Cur: %d[TCB[i].stack_cur]%%, Max: %d[TCB[i].stack_maxp]%% [ %d[TCB[i].stack_maxb]/%d[TCB[i].stack_size] ]" |
| 702 | cond="stack_wmark != 0"/> |
| 703 | |
| 704 | <item property="Stack Usage" value="Cur: %d[TCB[i].stack_cur]%%" |
| 705 | cond="stack_wmark == 0"/> |
| 706 | |
| 707 | <item property="Stack Overflow" cond="TCB[i].stack_over != 0" value="Overflow detected"/> |
| 708 | </item> |
| 709 | |
| 710 | <!-- Application threads --> |
| 711 | <item cond="TCB[i].cb_valid && (TCB[i].cb_id > 1)" property="id: %x[TCB[i]._addr]" value="%E[TCB[i].state & 0x07], %E[TCB[i].priority]"> |
| 712 | <item property="Delay time" value="%d[TCB[i].ex_delay]ms"/> |
| 713 | <item property="Delay reason" value="%E[TCB[i].state]" cond="(TCB[i].state & 0x07) == 3"/> |
| 714 | |
| 715 | <item property="Stack Usage" value="Cur: %d[TCB[i].stack_cur]%%, Max: %d[TCB[i].stack_maxp]%% [ %d[TCB[i].stack_maxb]/%d[TCB[i].stack_size] ]" |
| 716 | cond="stack_wmark != 0"/> |
| 717 | |
| 718 | <item property="Stack Usage" value="Cur: %d[TCB[i].stack_cur]%%" |
| 719 | cond="stack_wmark == 0"/> |
| 720 | |
| 721 | <item property="Stack Overrun" cond="TCB[i].stack_over != 0" value="Overrun detected"/> |
| 722 | </item> |
| 723 | </list> |
| 724 | </item> |
| 725 | |
| 726 | <!-- Timers --> |
| 727 | <item cond="CCB_En" property="Timers" value=""> |
| 728 | <list name="i" start="0" limit="CCB._count"> |
| 729 | <item cond="CCB[i].cb_valid" property="id: %x[CCB[i]._addr], %E[CCB[i].type]" value="Tick: %d[CCB[i].ex_tick]ms, Period: %d[CCB[i].load]ms"> |
| 730 | <item property="State" value="%E[CCB[i].state]" /> |
| 731 | <item property="Registered callback" value="Func: %S[CCB[i].finfo_fp], Arg: %x[CCB[i].finfo_arg]" /> |
| 732 | </item> |
| 733 | </list> |
| 734 | </item> |
| 735 | |
| 736 | <!-- Semaphores --> |
| 737 | <item cond="SCB_En" property="Semaphores" value=""> |
| 738 | <list name="i" start="0" limit="SCB._count"> |
| 739 | <item cond="SCB[i].cb_valid" property="id: %x[SCB[i]._addr]" value="Tokens: %d[SCB[i].tokens], Max: %d[SCB[i].max_tokens]"> |
| 740 | |
| 741 | <!-- Waiting thread list --> |
| 742 | <item cond="SCB[i].wl_cnt" property="Threads waiting (%d[SCB[i].wl_cnt])" value=""> |
| 743 | |
| 744 | <list name="j" start="SCB[i].wl_idx" limit="SCB[i].wl_idx + SCB[i].wl_cnt"> |
| 745 | <list name="k" start="0" limit="TCB._count"> |
| 746 | <item cond="SWL[j].stack_mem == TCB[k].stack_mem" property="id: %x[TCB[k]._addr]" value="Delay: %d[TCB[k].ex_delay], %E[TCB[k].priority]"/> |
| 747 | </list> |
| 748 | </list> |
| 749 | |
| 750 | </item> |
| 751 | </item> |
| 752 | </list> |
| 753 | </item> |
| 754 | |
| 755 | <!-- Mutexes --> |
| 756 | <item cond="MCB_En" property="Mutexes" value=""> |
| 757 | <list name="i" start="0" limit="MCB._count"> |
| 758 | <item cond="MCB[i].cb_valid" property="id: %x[MCB[i]._addr]" value="Lock counter: %d[MCB[i].lock]"> |
| 759 | |
| 760 | <item property="Owner thread" value="id: %x[MCB[i].owner_thread]"/> |
| 761 | |
| 762 | <!-- Waiting thread list --> |
| 763 | <item cond="MCB[i].wl_cnt" property="Threads waiting (%d[MCB[i].wl_cnt])" value=""> |
| 764 | |
| 765 | <list name="j" start="MCB[i].wl_idx" limit="MCB[i].wl_idx + MCB[i].wl_cnt"> |
| 766 | <list name="k" start="0" limit="TCB._count"> |
| 767 | <item cond="MWL[j].stack_mem == TCB[k].stack_mem" property="id: %x[TCB[k]._addr]" value="Delay: %d[TCB[k].ex_delay], %E[TCB[k].priority]"/> |
| 768 | </list> |
| 769 | </list> |
| 770 | |
| 771 | </item> |
| 772 | </item> |
| 773 | </list> |
| 774 | </item> |
| 775 | |
| 776 | <!-- Event Flags --> |
| 777 | <item cond="ECB_En" property="Event Flags" value=""> |
| 778 | <list name="i" start="0" limit="ECB._count"> |
| 779 | <item cond="ECB[i].cb_valid" property="id: %x[ECB[i]._addr]" value="Flags: %x[ECB[i].event_flags]"> |
| 780 | |
| 781 | <!-- Waiting thread list --> |
| 782 | <item cond="ECB[i].wl_cnt" property="Threads waiting (%d[ECB[i].wl_cnt])" value=""> |
| 783 | |
| 784 | <list name="j" start="ECB[i].wl_idx" limit="ECB[i].wl_idx + ECB[i].wl_cnt"> |
| 785 | <list name="k" start="0" limit="TCB._count"> |
| 786 | <item cond="EWL[j].stack_mem == TCB[k].stack_mem" property="id: %x[TCB[k]._addr]" value="Delay: %d[TCB[k].ex_delay], %E[TCB[k].priority]"/> |
| 787 | </list> |
| 788 | </list> |
| 789 | |
| 790 | </item> |
| 791 | </item> |
| 792 | </list> |
| 793 | </item> |
| 794 | |
| 795 | <!-- Memory Pool --> |
| 796 | <item cond="PCB_En" property="Memory Pool" value=""> |
| 797 | <list name="i" start="0" limit="PCB._count"> |
| 798 | <item cond="PCB[i].cb_valid" property="id: %x[PCB[i]._addr]" value="Blocks Used: %d[PCB[i].used_blocks], Max: %d[PCB[i].max_blocks]"> |
| 799 | |
| 800 | <item property="Block size" value="%d[PCB[i].block_size] bytes"/> |
| 801 | |
| 802 | <!-- Waiting thread list --> |
| 803 | <item cond="PCB[i].wl_cnt" property="Threads waiting (%d[PCB[i].wl_cnt])" value=""> |
| 804 | |
| 805 | <list name="j" start="PCB[i].wl_idx" limit="PCB[i].wl_idx + PCB[i].wl_cnt"> |
| 806 | <list name="k" start="0" limit="TCB._count"> |
| 807 | <item cond="PWL[j].stack_mem == TCB[k].stack_mem" property="id: %x[TCB[k]._addr]" value="Delay: %d[TCB[k].ex_delay], %E[TCB[k].priority]"/> |
| 808 | </list> |
| 809 | </list> |
| 810 | |
| 811 | </item> |
| 812 | </item> |
| 813 | </list> |
| 814 | </item> |
| 815 | |
| 816 | <!-- Message Queue --> |
| 817 | <item cond="QCB_En" property="Message Queue" value=""> |
| 818 | <list name="i" start="0" limit="QCB._count"> |
| 819 | <item cond="QCB[i].cb_valid" property="id: %x[QCB[i]._addr]" value="Messages: %d[QCB[i].used_blocks], Max: %d[QCB[i].max_blocks]"> |
| 820 | |
| 821 | <item property="Message size" value="Max: %d[QCB[i].msg_size] bytes"/> |
| 822 | |
| 823 | <!-- Waiting thread list --> |
| 824 | <item cond="QCB[i].wl_cnt" property="Threads waiting (%d[QCB[i].wl_cnt])" value=""> |
| 825 | |
| 826 | <list name="j" start="QCB[i].wl_idx" limit="QCB[i].wl_idx + QCB[i].wl_cnt"> |
| 827 | <list name="k" start="0" limit="TCB._count"> |
| 828 | <item cond="QWL[j].stack_mem == TCB[k].stack_mem" property="id: %x[TCB[k]._addr]" value="Delay: %d[TCB[k].ex_delay], %E[TCB[k].priority]"/> |
| 829 | </list> |
| 830 | </list> |
| 831 | |
| 832 | </item> |
| 833 | </item> |
| 834 | </list> |
| 835 | </item> |
| 836 | |
| 837 | </out> |
| 838 | </object> |
| 839 | </objects> |
| 840 | </component_viewer> |