Skip to content

Commit 2a8b0a3

Browse files
authored
Merge branch 'main' into feature/mchp-updates
2 parents d0a4670 + f8ada39 commit 2a8b0a3

File tree

7 files changed

+421
-381
lines changed

7 files changed

+421
-381
lines changed

include/croutine.h

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ typedef struct corCoRoutineControlBlock
6262

6363
/**
6464
* croutine. h
65-
* <pre>
65+
* @code{c}
6666
* BaseType_t xCoRoutineCreate(
6767
* crCOROUTINE_CODE pxCoRoutineCode,
6868
* UBaseType_t uxPriority,
6969
* UBaseType_t uxIndex
7070
* );
71-
* </pre>
71+
* @endcode
7272
*
7373
* Create a new co-routine and add it to the list of co-routines that are
7474
* ready to run.
@@ -88,7 +88,7 @@ typedef struct corCoRoutineControlBlock
8888
* list, otherwise an error code defined with ProjDefs.h.
8989
*
9090
* Example usage:
91-
* <pre>
91+
* @code{c}
9292
* // Co-routine to be created.
9393
* void vFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
9494
* {
@@ -129,7 +129,7 @@ typedef struct corCoRoutineControlBlock
129129
* xCoRoutineCreate( vFlashCoRoutine, 0, uxIndex );
130130
* }
131131
* }
132-
* </pre>
132+
* @endcode
133133
* \defgroup xCoRoutineCreate xCoRoutineCreate
134134
* \ingroup Tasks
135135
*/
@@ -140,9 +140,9 @@ BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode,
140140

141141
/**
142142
* croutine. h
143-
* <pre>
143+
* @code{c}
144144
* void vCoRoutineSchedule( void );
145-
* </pre>
145+
* @endcode
146146
*
147147
* Run a co-routine.
148148
*
@@ -156,7 +156,7 @@ BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode,
156156
* hook).
157157
*
158158
* Example usage:
159-
* <pre>
159+
* @code{c}
160160
* // This idle task hook will schedule a co-routine each time it is called.
161161
* // The rest of the idle task will execute between co-routine calls.
162162
* void vApplicationIdleHook( void )
@@ -174,22 +174,22 @@ BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode,
174174
* vCoRoutineSchedule();
175175
* }
176176
* }
177-
* </pre>
177+
* @endcode
178178
* \defgroup vCoRoutineSchedule vCoRoutineSchedule
179179
* \ingroup Tasks
180180
*/
181181
void vCoRoutineSchedule( void );
182182

183183
/**
184184
* croutine. h
185-
* <pre>
185+
* @code{c}
186186
* crSTART( CoRoutineHandle_t xHandle );
187-
* </pre>
187+
* @endcode
188188
*
189189
* This macro MUST always be called at the start of a co-routine function.
190190
*
191191
* Example usage:
192-
* <pre>
192+
* @code{c}
193193
* // Co-routine to be created.
194194
* void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
195195
* {
@@ -207,7 +207,7 @@ void vCoRoutineSchedule( void );
207207
* // Must end every co-routine with a call to crEND();
208208
* crEND();
209209
* }
210-
* </pre>
210+
* @endcode
211211
* \defgroup crSTART crSTART
212212
* \ingroup Tasks
213213
*/
@@ -217,14 +217,14 @@ void vCoRoutineSchedule( void );
217217

218218
/**
219219
* croutine. h
220-
* <pre>
220+
* @code{c}
221221
* crEND();
222-
* </pre>
222+
* @endcode
223223
*
224224
* This macro MUST always be called at the end of a co-routine function.
225225
*
226226
* Example usage:
227-
* <pre>
227+
* @code{c}
228228
* // Co-routine to be created.
229229
* void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
230230
* {
@@ -242,7 +242,7 @@ void vCoRoutineSchedule( void );
242242
* // Must end every co-routine with a call to crEND();
243243
* crEND();
244244
* }
245-
* </pre>
245+
* @endcode
246246
* \defgroup crSTART crSTART
247247
* \ingroup Tasks
248248
*/
@@ -261,9 +261,9 @@ void vCoRoutineSchedule( void );
261261

262262
/**
263263
* croutine. h
264-
* <pre>
264+
* @code{c}
265265
* crDELAY( CoRoutineHandle_t xHandle, TickType_t xTicksToDelay );
266-
* </pre>
266+
* @endcode
267267
*
268268
* Delay a co-routine for a fixed period of time.
269269
*
@@ -280,7 +280,7 @@ void vCoRoutineSchedule( void );
280280
* can be used to convert ticks to milliseconds.
281281
*
282282
* Example usage:
283-
* <pre>
283+
* @code{c}
284284
* // Co-routine to be created.
285285
* void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
286286
* {
@@ -303,7 +303,7 @@ void vCoRoutineSchedule( void );
303303
* // Must end every co-routine with a call to crEND();
304304
* crEND();
305305
* }
306-
* </pre>
306+
* @endcode
307307
* \defgroup crDELAY crDELAY
308308
* \ingroup Tasks
309309
*/
@@ -315,15 +315,15 @@ void vCoRoutineSchedule( void );
315315
crSET_STATE0( ( xHandle ) );
316316

317317
/**
318-
* <pre>
318+
* @code{c}
319319
* crQUEUE_SEND(
320320
* CoRoutineHandle_t xHandle,
321321
* QueueHandle_t pxQueue,
322322
* void *pvItemToQueue,
323323
* TickType_t xTicksToWait,
324324
* BaseType_t *pxResult
325325
* )
326-
* </pre>
326+
* @endcode
327327
*
328328
* The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine
329329
* equivalent to the xQueueSend() and xQueueReceive() functions used by tasks.
@@ -363,7 +363,7 @@ void vCoRoutineSchedule( void );
363363
* error defined within ProjDefs.h.
364364
*
365365
* Example usage:
366-
* <pre>
366+
* @code{c}
367367
* // Co-routine function that blocks for a fixed period then posts a number onto
368368
* // a queue.
369369
* static void prvCoRoutineFlashTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
@@ -395,7 +395,7 @@ void vCoRoutineSchedule( void );
395395
* // Co-routines must end with a call to crEND().
396396
* crEND();
397397
* }
398-
* </pre>
398+
* @endcode
399399
* \defgroup crQUEUE_SEND crQUEUE_SEND
400400
* \ingroup Tasks
401401
*/
@@ -416,15 +416,15 @@ void vCoRoutineSchedule( void );
416416

417417
/**
418418
* croutine. h
419-
* <pre>
419+
* @code{c}
420420
* crQUEUE_RECEIVE(
421421
* CoRoutineHandle_t xHandle,
422422
* QueueHandle_t pxQueue,
423423
* void *pvBuffer,
424424
* TickType_t xTicksToWait,
425425
* BaseType_t *pxResult
426426
* )
427-
* </pre>
427+
* @endcode
428428
*
429429
* The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine
430430
* equivalent to the xQueueSend() and xQueueReceive() functions used by tasks.
@@ -463,7 +463,7 @@ void vCoRoutineSchedule( void );
463463
* an error code as defined within ProjDefs.h.
464464
*
465465
* Example usage:
466-
* <pre>
466+
* @code{c}
467467
* // A co-routine receives the number of an LED to flash from a queue. It
468468
* // blocks on the queue until the number is received.
469469
* static void prvCoRoutineFlashWorkTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
@@ -489,7 +489,7 @@ void vCoRoutineSchedule( void );
489489
*
490490
* crEND();
491491
* }
492-
* </pre>
492+
* @endcode
493493
* \defgroup crQUEUE_RECEIVE crQUEUE_RECEIVE
494494
* \ingroup Tasks
495495
*/
@@ -510,13 +510,13 @@ void vCoRoutineSchedule( void );
510510

511511
/**
512512
* croutine. h
513-
* <pre>
513+
* @code{c}
514514
* crQUEUE_SEND_FROM_ISR(
515515
* QueueHandle_t pxQueue,
516516
* void *pvItemToQueue,
517517
* BaseType_t xCoRoutinePreviouslyWoken
518518
* )
519-
* </pre>
519+
* @endcode
520520
*
521521
* The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the
522522
* co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR()
@@ -551,7 +551,7 @@ void vCoRoutineSchedule( void );
551551
* the ISR.
552552
*
553553
* Example usage:
554-
* <pre>
554+
* @code{c}
555555
* // A co-routine that blocks on a queue waiting for characters to be received.
556556
* static void vReceivingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
557557
* {
@@ -600,7 +600,7 @@ void vCoRoutineSchedule( void );
600600
* xCRWokenByPost = crQUEUE_SEND_FROM_ISR( xCommsRxQueue, &cRxedChar, xCRWokenByPost );
601601
* }
602602
* }
603-
* </pre>
603+
* @endcode
604604
* \defgroup crQUEUE_SEND_FROM_ISR crQUEUE_SEND_FROM_ISR
605605
* \ingroup Tasks
606606
*/
@@ -610,13 +610,13 @@ void vCoRoutineSchedule( void );
610610

611611
/**
612612
* croutine. h
613-
* <pre>
613+
* @code{c}
614614
* crQUEUE_SEND_FROM_ISR(
615615
* QueueHandle_t pxQueue,
616616
* void *pvBuffer,
617617
* BaseType_t * pxCoRoutineWoken
618618
* )
619-
* </pre>
619+
* @endcode
620620
*
621621
* The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the
622622
* co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR()
@@ -651,7 +651,7 @@ void vCoRoutineSchedule( void );
651651
* pdFALSE.
652652
*
653653
* Example usage:
654-
* <pre>
654+
* @code{c}
655655
* // A co-routine that posts a character to a queue then blocks for a fixed
656656
* // period. The character is incremented each time.
657657
* static void vSendingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
@@ -716,7 +716,7 @@ void vCoRoutineSchedule( void );
716716
* }
717717
* }
718718
* }
719-
* </pre>
719+
* @endcode
720720
* \defgroup crQUEUE_RECEIVE_FROM_ISR crQUEUE_RECEIVE_FROM_ISR
721721
* \ingroup Tasks
722722
*/

0 commit comments

Comments
 (0)