freertos-in-rust 0.3.0

Pure-Rust no_std FreeRTOS kernel translation with safe Rust APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
/*
 * FreeRTOS Kernel <DEVELOPMENT BRANCH>
 * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * SPDX-License-Identifier: MIT
 *
 * [AMENDMENT] This module provides the trace hook functions for FreeRTOS.
 * In the original C, these are macros defined in FreeRTOS.h that default
 * to nothing but can be overridden by the user for tracing/debugging.
 *
 * Here we provide them as inline no-op functions. Users can enable tracing
 * by providing their own implementations via a feature flag (TODO).
 */

//! Trace Hooks
//!
//! FreeRTOS provides extensive tracing hooks that are called at key points
//! in the kernel. By default, these are no-ops, but they can be overridden
//! for debugging, profiling, or integration with trace tools like Tracealyzer.
//!
//! ## Categories
//!
//! - `traceENTER_*` / `traceRETURN_*` - Function entry/exit tracing
//! - `traceTASK_*` - Task-related events
//! - `traceQUEUE_*` - Queue operations
//! - `traceTIMER_*` - Timer events
//! - `traceEVENT_GROUP_*` - Event group operations
//! - `traceSTREAM_BUFFER_*` - Stream buffer operations
//!
//! ## Usage
//!
//! These functions are called from kernel code. To implement custom tracing,
//! users would need to provide their own trace.rs implementation (TODO: feature flag).

#![allow(unused_variables)]

use crate::kernel::list::{ListItem_t, List_t};
use crate::types::*;

// =============================================================================
// List tracing
// =============================================================================

#[inline(always)]
pub fn traceENTER_vListInitialise(pxList: *mut List_t) {}

#[inline(always)]
pub fn traceRETURN_vListInitialise() {}

#[inline(always)]
pub fn traceENTER_vListInitialiseItem(pxItem: *mut ListItem_t) {}

#[inline(always)]
pub fn traceRETURN_vListInitialiseItem() {}

#[inline(always)]
pub fn traceENTER_vListInsertEnd(pxList: *mut List_t, pxNewListItem: *mut ListItem_t) {}

#[inline(always)]
pub fn traceRETURN_vListInsertEnd() {}

#[inline(always)]
pub fn traceENTER_vListInsert(pxList: *mut List_t, pxNewListItem: *mut ListItem_t) {}

#[inline(always)]
pub fn traceRETURN_vListInsert() {}

#[inline(always)]
pub fn traceENTER_uxListRemove(pxItemToRemove: *mut ListItem_t) {}

#[inline(always)]
pub fn traceRETURN_uxListRemove(uxNumberOfItems: UBaseType_t) {}

// =============================================================================
// Task tracing (placeholders for tasks.rs)
// =============================================================================

#[inline(always)]
pub fn traceTASK_CREATE(pxNewTCB: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTASK_CREATE_FAILED() {}

#[inline(always)]
pub fn traceTASK_DELETE(pxTaskToDelete: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTASK_DELAY_UNTIL(xTimeToWake: TickType_t) {}

#[inline(always)]
pub fn traceTASK_DELAY() {}

#[inline(always)]
pub fn traceTASK_PRIORITY_SET(pxTask: *mut core::ffi::c_void, uxNewPriority: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_SUSPEND(pxTaskToSuspend: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTASK_RESUME(pxTaskToResume: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTASK_RESUME_FROM_ISR(pxTaskToResume: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTASK_INCREMENT_TICK(xTickCount: TickType_t) {}

#[inline(always)]
pub fn traceTASK_SWITCHED_IN() {}

#[inline(always)]
pub fn traceTASK_SWITCHED_OUT() {}

#[inline(always)]
pub fn traceTASK_PRIORITY_INHERIT(
    pxTCBOfMutexHolder: *mut core::ffi::c_void,
    uxInheritedPriority: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceTASK_PRIORITY_DISINHERIT(
    pxTCBOfMutexHolder: *mut core::ffi::c_void,
    uxOriginalPriority: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceTASK_NOTIFY_TAKE_BLOCK(uxIndexToWait: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_NOTIFY_TAKE(uxIndexToWait: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_NOTIFY_WAIT_BLOCK(uxIndexToWait: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_NOTIFY_WAIT(uxIndexToWait: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_NOTIFY(uxIndexToNotify: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_NOTIFY_FROM_ISR(uxIndexToNotify: UBaseType_t) {}

#[inline(always)]
pub fn traceTASK_NOTIFY_GIVE_FROM_ISR(uxIndexToNotify: UBaseType_t) {}

// =============================================================================
// Queue tracing (placeholders for queue.rs)
// =============================================================================

#[inline(always)]
pub fn traceQUEUE_CREATE(pxNewQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_CREATE_FAILED(ucQueueType: u8) {}

#[inline(always)]
pub fn traceCREATE_MUTEX(pxNewQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceCREATE_MUTEX_FAILED() {}

#[inline(always)]
pub fn traceGIVE_MUTEX_RECURSIVE(pxMutex: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceGIVE_MUTEX_RECURSIVE_FAILED(pxMutex: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTAKE_MUTEX_RECURSIVE(pxMutex: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTAKE_MUTEX_RECURSIVE_FAILED(pxMutex: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceCREATE_COUNTING_SEMAPHORE() {}

#[inline(always)]
pub fn traceCREATE_COUNTING_SEMAPHORE_FAILED() {}

#[inline(always)]
pub fn traceQUEUE_SEND(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_SEND_FAILED(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_RECEIVE(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_PEEK(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_PEEK_FAILED(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_PEEK_FROM_ISR(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_RECEIVE_FAILED(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_SEND_FROM_ISR(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_SEND_FROM_ISR_FAILED(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_RECEIVE_FROM_ISR(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_RECEIVE_FROM_ISR_FAILED(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_PEEK_FROM_ISR_FAILED(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_DELETE(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceBLOCKING_ON_QUEUE_RECEIVE(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceBLOCKING_ON_QUEUE_PEEK(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceBLOCKING_ON_QUEUE_SEND(pxQueue: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceQUEUE_REGISTRY_ADD(pxQueue: *mut core::ffi::c_void, pcQueueName: *const u8) {}

// =============================================================================
// Timer tracing (placeholders for timers.rs)
// =============================================================================

#[inline(always)]
pub fn traceTIMER_CREATE(pxNewTimer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTIMER_CREATE_FAILED() {}

#[inline(always)]
pub fn traceTIMER_COMMAND_SEND(
    xTimer: *mut core::ffi::c_void,
    xMessageID: BaseType_t,
    xMessageValueValue: TickType_t,
    xReturn: BaseType_t,
) {
}

#[inline(always)]
pub fn traceTIMER_EXPIRED(pxTimer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceTIMER_COMMAND_RECEIVED(
    pxTimer: *mut core::ffi::c_void,
    xMessageID: BaseType_t,
    xMessageValue: TickType_t,
) {
}

// =============================================================================
// Event group tracing (placeholders for event_groups.rs)
// =============================================================================

#[inline(always)]
pub fn traceEVENT_GROUP_CREATE(pxEventGroup: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceEVENT_GROUP_CREATE_FAILED() {}

#[inline(always)]
pub fn traceEVENT_GROUP_SYNC_BLOCK(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToSet: UBaseType_t,
    uxBitsToWaitFor: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_SYNC_END(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToSet: UBaseType_t,
    uxBitsToWaitFor: UBaseType_t,
    xTimeoutOccurred: BaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_WAIT_BITS_BLOCK(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToWaitFor: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_WAIT_BITS_END(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToWaitFor: UBaseType_t,
    xTimeoutOccurred: BaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_CLEAR_BITS(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToClear: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_CLEAR_BITS_FROM_ISR(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToClear: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_SET_BITS(pxEventGroup: *mut core::ffi::c_void, uxBitsToSet: UBaseType_t) {}

#[inline(always)]
pub fn traceEVENT_GROUP_SET_BITS_FROM_ISR(
    pxEventGroup: *mut core::ffi::c_void,
    uxBitsToSet: UBaseType_t,
) {
}

#[inline(always)]
pub fn traceEVENT_GROUP_DELETE(pxEventGroup: *mut core::ffi::c_void) {}

// =============================================================================
// Stream buffer tracing (placeholders for stream_buffer.rs)
// =============================================================================

#[inline(always)]
pub fn traceSTREAM_BUFFER_CREATE(
    pxStreamBuffer: *mut core::ffi::c_void,
    xIsMessageBuffer: BaseType_t,
) {
}

#[inline(always)]
pub fn traceSTREAM_BUFFER_CREATE_FAILED(xIsMessageBuffer: BaseType_t) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_CREATE_STATIC_FAILED(
    xReturn: *mut core::ffi::c_void,
    xIsMessageBuffer: BaseType_t,
) {
}

#[inline(always)]
pub fn traceSTREAM_BUFFER_DELETE(pxStreamBuffer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_RESET(pxStreamBuffer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_SEND(pxStreamBuffer: *mut core::ffi::c_void, xBytesSent: usize) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_SEND_FAILED(pxStreamBuffer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_SEND_FROM_ISR(pxStreamBuffer: *mut core::ffi::c_void, xBytesSent: usize) {
}

#[inline(always)]
pub fn traceSTREAM_BUFFER_RECEIVE(pxStreamBuffer: *mut core::ffi::c_void, xReceivedLength: usize) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_RECEIVE_FAILED(pxStreamBuffer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceSTREAM_BUFFER_RECEIVE_FROM_ISR(
    pxStreamBuffer: *mut core::ffi::c_void,
    xReceivedLength: usize,
) {
}

#[inline(always)]
pub fn traceBLOCKING_ON_STREAM_BUFFER_SEND(pxStreamBuffer: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceBLOCKING_ON_STREAM_BUFFER_RECEIVE(pxStreamBuffer: *mut core::ffi::c_void) {}

// =============================================================================
// ISR tracing
// =============================================================================

#[inline(always)]
pub fn traceISR_ENTER() {}

#[inline(always)]
pub fn traceISR_EXIT() {}

#[inline(always)]
pub fn traceISR_EXIT_TO_SCHEDULER() {}

// =============================================================================
// Scheduler tracing
// =============================================================================

#[inline(always)]
pub fn traceSCHEDULER_STARTED() {}

#[inline(always)]
pub fn traceSCHEDULER_STOPPED() {}

#[inline(always)]
pub fn traceSCHEDULER_SUSPENDED() {}

#[inline(always)]
pub fn traceSCHEDULER_RESUMED() {}

// =============================================================================
// Idle task tracing
// =============================================================================

#[inline(always)]
pub fn traceIDLE_TASK_STARTED() {}

// =============================================================================
// Low power / tickless idle tracing
// =============================================================================

#[inline(always)]
pub fn traceLOW_POWER_IDLE_BEGIN() {}

#[inline(always)]
pub fn traceLOW_POWER_IDLE_END() {}

#[inline(always)]
pub fn traceINCREASE_TICK_COUNT(_xTicksToJump: TickType_t) {}

// =============================================================================
// Memory allocation tracing
// =============================================================================

#[inline(always)]
pub fn traceMALLOC(pvAddress: *mut core::ffi::c_void, uiSize: usize) {}

#[inline(always)]
pub fn traceFREE(pvAddress: *mut core::ffi::c_void, uiSize: usize) {}

// =============================================================================
// Pend function call tracing
// =============================================================================

#[inline(always)]
pub fn tracePEND_FUNC_CALL(
    xFunctionToPend: *mut core::ffi::c_void,
    pvParameter1: *mut core::ffi::c_void,
    ulParameter2: u32,
    xReturn: BaseType_t,
) {
}

#[inline(always)]
pub fn tracePEND_FUNC_CALL_FROM_ISR(
    xFunctionToPend: *mut core::ffi::c_void,
    pvParameter1: *mut core::ffi::c_void,
    ulParameter2: u32,
    xReturn: BaseType_t,
) {
}

// =============================================================================
// Queue set tracing
// =============================================================================

#[inline(always)]
pub fn traceQUEUE_SET_SEND(pxQueueSet: *mut core::ffi::c_void) {}

// =============================================================================
// Moved task to ready state tracing
// =============================================================================

#[inline(always)]
pub fn traceMOVED_TASK_TO_READY_STATE(pxTCB: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn tracePOST_MOVED_TASK_TO_READY_STATE(pxTCB: *mut core::ffi::c_void) {}

#[inline(always)]
pub fn traceMOVED_TASK_TO_DELAYED_LIST() {}

#[inline(always)]
pub fn traceMOVED_TASK_TO_OVERFLOW_DELAYED_LIST() {}

// =============================================================================
// Trace Macros
// =============================================================================
// [AMENDMENT] These macros provide no-op stubs that can be replaced with
// actual tracing implementations. They match the FreeRTOS trace macro pattern.

// Timer tracing macros
#[macro_export]
macro_rules! traceENTER_xTimerCreateTimerTask {
    () => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerCreateTimerTask {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerCreate {
    ($pcTimerName:expr, $xTimerPeriodInTicks:expr, $xAutoReload:expr, $pvTimerID:expr, $pxCallbackFunction:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerCreate {
    ($pxNewTimer:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerCreateStatic {
    ($pcTimerName:expr, $xTimerPeriodInTicks:expr, $xAutoReload:expr, $pvTimerID:expr, $pxCallbackFunction:expr, $pxTimerBuffer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerCreateStatic {
    ($pxNewTimer:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGenericCommandFromTask {
    ($xTimer:expr, $xCommandID:expr, $xOptionalValue:expr, $pxHigherPriorityTaskWoken:expr, $xTicksToWait:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGenericCommandFromTask {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGenericCommandFromISR {
    ($xTimer:expr, $xCommandID:expr, $xOptionalValue:expr, $pxHigherPriorityTaskWoken:expr, $xTicksToWait:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGenericCommandFromISR {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceTIMER_COMMAND_SEND {
    ($xTimer:expr, $xCommandID:expr, $xOptionalValue:expr, $xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGetTimerDaemonTaskHandle {
    () => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGetTimerDaemonTaskHandle {
    ($xTimerTaskHandle:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGetPeriod {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGetPeriod {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_vTimerSetReloadMode {
    ($xTimer:expr, $xAutoReload:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_vTimerSetReloadMode {
    () => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGetReloadMode {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGetReloadMode {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_uxTimerGetReloadMode {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_uxTimerGetReloadMode {
    ($uxReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGetExpiryTime {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGetExpiryTime {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_pcTimerGetName {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_pcTimerGetName {
    ($pcName:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerIsTimerActive {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerIsTimerActive {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_pvTimerGetTimerID {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_pvTimerGetTimerID {
    ($pvReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_vTimerSetTimerID {
    ($xTimer:expr, $pvNewID:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_vTimerSetTimerID {
    () => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerGetStaticBuffer {
    ($xTimer:expr, $ppxTimerBuffer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerGetStaticBuffer {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_uxTimerGetTimerNumber {
    ($xTimer:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_uxTimerGetTimerNumber {
    ($uxReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_vTimerSetTimerNumber {
    ($xTimer:expr, $uxTimerNumber:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_vTimerSetTimerNumber {
    () => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerPendFunctionCallFromISR {
    ($xFunctionToPend:expr, $pvParameter1:expr, $ulParameter2:expr, $pxHigherPriorityTaskWoken:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerPendFunctionCallFromISR {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceENTER_xTimerPendFunctionCall {
    ($xFunctionToPend:expr, $pvParameter1:expr, $ulParameter2:expr, $xTicksToWait:expr) => {};
}

#[macro_export]
macro_rules! traceRETURN_xTimerPendFunctionCall {
    ($xReturn:expr) => {};
}

#[macro_export]
macro_rules! traceTIMER_CREATE {
    ($pxTimer:expr) => {};
}

#[macro_export]
macro_rules! traceTIMER_EXPIRED {
    ($pxTimer:expr) => {};
}

#[macro_export]
macro_rules! traceTIMER_COMMAND_RECEIVED {
    ($pxTimer:expr, $xMessageID:expr, $xMessageValue:expr) => {};
}

#[macro_export]
macro_rules! tracePEND_FUNC_CALL_FROM_ISR {
    ($xFunctionToPend:expr, $pvParameter1:expr, $ulParameter2:expr, $xReturn:expr) => {};
}

#[macro_export]
macro_rules! tracePEND_FUNC_CALL {
    ($xFunctionToPend:expr, $pvParameter1:expr, $ulParameter2:expr, $xReturn:expr) => {};
}