Skip to content

Commit ae73f0d

Browse files
authored
Replace <pre> with @code{c} (#386)
* replace <pre> with @code{c} * endcode must pass spellcheck
1 parent c290780 commit ae73f0d

File tree

2 files changed

+53
-52
lines changed

2 files changed

+53
-52
lines changed

.github/lexicon.txt

+1
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ enablerx
561561
enabletx
562562
enametoolong
563563
endbusres
564+
endcode
564565
endian
565566
endif
566567
endinit

include/event_groups.h

+52-52
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ typedef TickType_t EventBits_t;
9696

9797
/**
9898
* event_groups.h
99-
* <pre>
99+
* @code{c}
100100
* EventGroupHandle_t xEventGroupCreate( void );
101-
* </pre>
101+
* @endcode
102102
*
103103
* Create a new event group.
104104
*
@@ -125,7 +125,7 @@ typedef TickType_t EventBits_t;
125125
* event group then NULL is returned. See https://www.FreeRTOS.org/a00111.html
126126
*
127127
* Example usage:
128-
* <pre>
128+
* @code{c}
129129
* // Declare a variable to hold the created event group.
130130
* EventGroupHandle_t xCreatedEventGroup;
131131
*
@@ -142,7 +142,7 @@ typedef TickType_t EventBits_t;
142142
* {
143143
* // The event group was created.
144144
* }
145-
* </pre>
145+
* @endcode
146146
* \defgroup xEventGroupCreate xEventGroupCreate
147147
* \ingroup EventGroup
148148
*/
@@ -152,9 +152,9 @@ typedef TickType_t EventBits_t;
152152

153153
/**
154154
* event_groups.h
155-
* <pre>
155+
* @code{c}
156156
* EventGroupHandle_t xEventGroupCreateStatic( EventGroupHandle_t * pxEventGroupBuffer );
157-
* </pre>
157+
* @endcode
158158
*
159159
* Create a new event group.
160160
*
@@ -184,7 +184,7 @@ typedef TickType_t EventBits_t;
184184
* returned. If pxEventGroupBuffer was NULL then NULL is returned.
185185
*
186186
* Example usage:
187-
* <pre>
187+
* @code{c}
188188
* // StaticEventGroup_t is a publicly accessible structure that has the same
189189
* // size and alignment requirements as the real event group structure. It is
190190
* // provided as a mechanism for applications to know the size of the event
@@ -197,21 +197,21 @@ typedef TickType_t EventBits_t;
197197
*
198198
* // Create the event group without dynamically allocating any memory.
199199
* xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
200-
* </pre>
200+
* @endcode
201201
*/
202202
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
203203
EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t * pxEventGroupBuffer ) PRIVILEGED_FUNCTION;
204204
#endif
205205

206206
/**
207207
* event_groups.h
208-
* <pre>
208+
* @code{c}
209209
* EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
210210
* const EventBits_t uxBitsToWaitFor,
211211
* const BaseType_t xClearOnExit,
212212
* const BaseType_t xWaitForAllBits,
213213
* const TickType_t xTicksToWait );
214-
* </pre>
214+
* @endcode
215215
*
216216
* [Potentially] block to wait for one or more bits to be set within a
217217
* previously created event group.
@@ -255,9 +255,9 @@ typedef TickType_t EventBits_t;
255255
* pdTRUE.
256256
*
257257
* Example usage:
258-
* <pre>
259-
#define BIT_0 ( 1 << 0 )
260-
#define BIT_4 ( 1 << 4 )
258+
* @code{c}
259+
* #define BIT_0 ( 1 << 0 )
260+
* #define BIT_4 ( 1 << 4 )
261261
*
262262
* void aFunction( EventGroupHandle_t xEventGroup )
263263
* {
@@ -291,7 +291,7 @@ typedef TickType_t EventBits_t;
291291
* // without either BIT_0 or BIT_4 becoming set.
292292
* }
293293
* }
294-
* </pre>
294+
* @endcode
295295
* \defgroup xEventGroupWaitBits xEventGroupWaitBits
296296
* \ingroup EventGroup
297297
*/
@@ -303,9 +303,9 @@ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
303303

304304
/**
305305
* event_groups.h
306-
* <pre>
306+
* @code{c}
307307
* EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
308-
* </pre>
308+
* @endcode
309309
*
310310
* Clear bits within an event group. This function cannot be called from an
311311
* interrupt.
@@ -319,9 +319,9 @@ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
319319
* @return The value of the event group before the specified bits were cleared.
320320
*
321321
* Example usage:
322-
* <pre>
323-
#define BIT_0 ( 1 << 0 )
324-
#define BIT_4 ( 1 << 4 )
322+
* @code{c}
323+
* #define BIT_0 ( 1 << 0 )
324+
* #define BIT_4 ( 1 << 4 )
325325
*
326326
* void aFunction( EventGroupHandle_t xEventGroup )
327327
* {
@@ -352,7 +352,7 @@ EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
352352
* // Neither bit 0 nor bit 4 were set in the first place.
353353
* }
354354
* }
355-
* </pre>
355+
* @endcode
356356
* \defgroup xEventGroupClearBits xEventGroupClearBits
357357
* \ingroup EventGroup
358358
*/
@@ -361,9 +361,9 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
361361

362362
/**
363363
* event_groups.h
364-
* <pre>
364+
* @code{c}
365365
* BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
366-
* </pre>
366+
* @endcode
367367
*
368368
* A version of xEventGroupClearBits() that can be called from an interrupt.
369369
*
@@ -388,9 +388,9 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
388388
* if the timer service queue was full.
389389
*
390390
* Example usage:
391-
* <pre>
392-
#define BIT_0 ( 1 << 0 )
393-
#define BIT_4 ( 1 << 4 )
391+
* @code{c}
392+
* #define BIT_0 ( 1 << 0 )
393+
* #define BIT_4 ( 1 << 4 )
394394
*
395395
* // An event group which it is assumed has already been created by a call to
396396
* // xEventGroupCreate().
@@ -408,7 +408,7 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
408408
* // The message was posted successfully.
409409
* }
410410
* }
411-
* </pre>
411+
* @endcode
412412
* \defgroup xEventGroupClearBitsFromISR xEventGroupClearBitsFromISR
413413
* \ingroup EventGroup
414414
*/
@@ -422,9 +422,9 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
422422

423423
/**
424424
* event_groups.h
425-
* <pre>
425+
* @code{c}
426426
* EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
427-
* </pre>
427+
* @endcode
428428
*
429429
* Set bits within an event group.
430430
* This function cannot be called from an interrupt. xEventGroupSetBitsFromISR()
@@ -450,9 +450,9 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
450450
* event group value before the call to xEventGroupSetBits() returns.
451451
*
452452
* Example usage:
453-
* <pre>
454-
#define BIT_0 ( 1 << 0 )
455-
#define BIT_4 ( 1 << 4 )
453+
* @code{c}
454+
* #define BIT_0 ( 1 << 0 )
455+
* #define BIT_4 ( 1 << 4 )
456456
*
457457
* void aFunction( EventGroupHandle_t xEventGroup )
458458
* {
@@ -488,7 +488,7 @@ EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup,
488488
* // cleared as the task left the Blocked state.
489489
* }
490490
* }
491-
* </pre>
491+
* @endcode
492492
* \defgroup xEventGroupSetBits xEventGroupSetBits
493493
* \ingroup EventGroup
494494
*/
@@ -497,9 +497,9 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
497497

498498
/**
499499
* event_groups.h
500-
* <pre>
500+
* @code{c}
501501
* BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken );
502-
* </pre>
502+
* @endcode
503503
*
504504
* A version of xEventGroupSetBits() that can be called from an interrupt.
505505
*
@@ -532,9 +532,9 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
532532
* if the timer service queue was full.
533533
*
534534
* Example usage:
535-
* <pre>
536-
#define BIT_0 ( 1 << 0 )
537-
#define BIT_4 ( 1 << 4 )
535+
* @code{c}
536+
* #define BIT_0 ( 1 << 0 )
537+
* #define BIT_4 ( 1 << 4 )
538538
*
539539
* // An event group which it is assumed has already been created by a call to
540540
* // xEventGroupCreate().
@@ -563,7 +563,7 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
563563
* portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
564564
* }
565565
* }
566-
* </pre>
566+
* @endcode
567567
* \defgroup xEventGroupSetBitsFromISR xEventGroupSetBitsFromISR
568568
* \ingroup EventGroup
569569
*/
@@ -578,12 +578,12 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
578578

579579
/**
580580
* event_groups.h
581-
* <pre>
581+
* @code{c}
582582
* EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
583583
* const EventBits_t uxBitsToSet,
584584
* const EventBits_t uxBitsToWaitFor,
585585
* TickType_t xTicksToWait );
586-
* </pre>
586+
* @endcode
587587
*
588588
* Atomically set bits within an event group, then wait for a combination of
589589
* bits to be set within the same event group. This functionality is typically
@@ -622,13 +622,13 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
622622
* automatically cleared.
623623
*
624624
* Example usage:
625-
* <pre>
625+
* @code{c}
626626
* // Bits used by the three tasks.
627-
#define TASK_0_BIT ( 1 << 0 )
628-
#define TASK_1_BIT ( 1 << 1 )
629-
#define TASK_2_BIT ( 1 << 2 )
627+
* #define TASK_0_BIT ( 1 << 0 )
628+
* #define TASK_1_BIT ( 1 << 1 )
629+
* #define TASK_2_BIT ( 1 << 2 )
630630
*
631-
#define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )
631+
* #define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )
632632
*
633633
* // Use an event group to synchronise three tasks. It is assumed this event
634634
* // group has already been created elsewhere.
@@ -696,7 +696,7 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
696696
* }
697697
* }
698698
*
699-
* </pre>
699+
* @endcode
700700
* \defgroup xEventGroupSync xEventGroupSync
701701
* \ingroup EventGroup
702702
*/
@@ -708,9 +708,9 @@ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
708708

709709
/**
710710
* event_groups.h
711-
* <pre>
711+
* @code{c}
712712
* EventBits_t xEventGroupGetBits( EventGroupHandle_t xEventGroup );
713-
* </pre>
713+
* @endcode
714714
*
715715
* Returns the current value of the bits in an event group. This function
716716
* cannot be used from an interrupt.
@@ -726,9 +726,9 @@ EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
726726

727727
/**
728728
* event_groups.h
729-
* <pre>
729+
* @code{c}
730730
* EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup );
731-
* </pre>
731+
* @endcode
732732
*
733733
* A version of xEventGroupGetBits() that can be called from an ISR.
734734
*
@@ -743,9 +743,9 @@ EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEG
743743

744744
/**
745745
* event_groups.h
746-
* <pre>
746+
* @code{c}
747747
* void xEventGroupDelete( EventGroupHandle_t xEventGroup );
748-
* </pre>
748+
* @endcode
749749
*
750750
* Delete an event group that was previously created by a call to
751751
* xEventGroupCreate(). Tasks that are blocked on the event group will be

0 commit comments

Comments
 (0)