File tree Expand file tree Collapse file tree 16 files changed +200
-136
lines changed Expand file tree Collapse file tree 16 files changed +200
-136
lines changed Original file line number Diff line number Diff line change @@ -287,19 +287,23 @@ BaseType_t xPortStartScheduler( void )
287
287
288
288
#ifdef __NVIC_PRIO_BITS
289
289
{
290
- /* Check the CMSIS configuration that defines the number of
291
- * priority bits matches the number of priority bits actually queried
292
- * from the hardware. */
293
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
290
+ /*
291
+ * Check that the number of implemented priority bits queried from
292
+ * hardware is at least as many as specified in the CMSIS
293
+ * __NVIC_PRIO_BITS configuration macro.
294
+ */
295
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
294
296
}
295
297
#endif
296
298
297
299
#ifdef configPRIO_BITS
298
300
{
299
- /* Check the FreeRTOS configuration that defines the number of
300
- * priority bits matches the number of priority bits actually queried
301
- * from the hardware. */
302
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
301
+ /*
302
+ * Check that the number of implemented priority bits queried from
303
+ * hardware is at least as many as specified in the FreeRTOS
304
+ * configPRIO_BITS configuration macro.
305
+ */
306
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
303
307
}
304
308
#endif
305
309
Original file line number Diff line number Diff line change @@ -306,19 +306,23 @@ BaseType_t xPortStartScheduler( void )
306
306
307
307
#ifdef __NVIC_PRIO_BITS
308
308
{
309
- /* Check the CMSIS configuration that defines the number of
310
- * priority bits matches the number of priority bits actually queried
311
- * from the hardware. */
312
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
309
+ /*
310
+ * Check that the number of implemented priority bits queried from
311
+ * hardware is at least as many as specified in the CMSIS
312
+ * __NVIC_PRIO_BITS configuration macro.
313
+ */
314
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
313
315
}
314
316
#endif
315
317
316
318
#ifdef configPRIO_BITS
317
319
{
318
- /* Check the FreeRTOS configuration that defines the number of
319
- * priority bits matches the number of priority bits actually queried
320
- * from the hardware. */
321
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
320
+ /*
321
+ * Check that the number of implemented priority bits queried from
322
+ * hardware is at least as many as specified in the FreeRTOS
323
+ * configPRIO_BITS configuration macro.
324
+ */
325
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
322
326
}
323
327
#endif
324
328
Original file line number Diff line number Diff line change @@ -330,19 +330,23 @@ BaseType_t xPortStartScheduler( void )
330
330
331
331
#ifdef __NVIC_PRIO_BITS
332
332
{
333
- /* Check the CMSIS configuration that defines the number of
334
- * priority bits matches the number of priority bits actually queried
335
- * from the hardware. */
336
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
333
+ /*
334
+ * Check that the number of implemented priority bits queried from
335
+ * hardware is at least as many as specified in the CMSIS
336
+ * __NVIC_PRIO_BITS configuration macro.
337
+ */
338
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
337
339
}
338
340
#endif
339
341
340
342
#ifdef configPRIO_BITS
341
343
{
342
- /* Check the FreeRTOS configuration that defines the number of
343
- * priority bits matches the number of priority bits actually queried
344
- * from the hardware. */
345
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
344
+ /*
345
+ * Check that the number of implemented priority bits queried from
346
+ * hardware is at least as many as specified in the FreeRTOS
347
+ * configPRIO_BITS configuration macro.
348
+ */
349
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
346
350
}
347
351
#endif
348
352
Original file line number Diff line number Diff line change @@ -452,21 +452,25 @@ BaseType_t xPortStartScheduler( void )
452
452
}
453
453
454
454
#ifdef __NVIC_PRIO_BITS
455
- {
456
- /* Check the CMSIS configuration that defines the number of
457
- * priority bits matches the number of priority bits actually queried
458
- * from the hardware. */
459
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
460
- }
455
+ {
456
+ /*
457
+ * Check that the number of implemented priority bits queried from
458
+ * hardware is at least as many as specified in the CMSIS
459
+ * __NVIC_PRIO_BITS configuration macro.
460
+ */
461
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
462
+ }
461
463
#endif
462
464
463
465
#ifdef configPRIO_BITS
464
- {
465
- /* Check the FreeRTOS configuration that defines the number of
466
- * priority bits matches the number of priority bits actually queried
467
- * from the hardware. */
468
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
469
- }
466
+ {
467
+ /*
468
+ * Check that the number of implemented priority bits queried from
469
+ * hardware is at least as many as specified in the FreeRTOS
470
+ * configPRIO_BITS configuration macro.
471
+ */
472
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
473
+ }
470
474
#endif
471
475
472
476
/* Shift the priority group value back to its position within the AIRCR
Original file line number Diff line number Diff line change @@ -373,19 +373,23 @@ BaseType_t xPortStartScheduler( void )
373
373
374
374
#ifdef __NVIC_PRIO_BITS
375
375
{
376
- /* Check the CMSIS configuration that defines the number of
377
- * priority bits matches the number of priority bits actually queried
378
- * from the hardware. */
379
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
376
+ /*
377
+ * Check that the number of implemented priority bits queried from
378
+ * hardware is at least as many as specified in the CMSIS
379
+ * __NVIC_PRIO_BITS configuration macro.
380
+ */
381
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
380
382
}
381
383
#endif
382
384
383
385
#ifdef configPRIO_BITS
384
386
{
385
- /* Check the FreeRTOS configuration that defines the number of
386
- * priority bits matches the number of priority bits actually queried
387
- * from the hardware. */
388
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
387
+ /*
388
+ * Check that the number of implemented priority bits queried from
389
+ * hardware is at least as many as specified in the FreeRTOS
390
+ * configPRIO_BITS configuration macro.
391
+ */
392
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
389
393
}
390
394
#endif
391
395
Original file line number Diff line number Diff line change @@ -495,21 +495,25 @@ BaseType_t xPortStartScheduler( void )
495
495
}
496
496
497
497
#ifdef __NVIC_PRIO_BITS
498
- {
499
- /* Check the CMSIS configuration that defines the number of
500
- * priority bits matches the number of priority bits actually queried
501
- * from the hardware. */
502
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
503
- }
498
+ {
499
+ /*
500
+ * Check that the number of implemented priority bits queried
501
+ * from hardware is at least as many as specified in the
502
+ * CMSIS __NVIC_PRIO_BITS configuration macro.
503
+ */
504
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
505
+ }
504
506
#endif
505
507
506
508
#ifdef configPRIO_BITS
507
- {
508
- /* Check the FreeRTOS configuration that defines the number of
509
- * priority bits matches the number of priority bits actually queried
510
- * from the hardware. */
511
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
512
- }
509
+ {
510
+ /*
511
+ * Check that the number of implemented priority bits queried
512
+ * from hardware is at least as many as specified in the
513
+ * FreeRTOS configPRIO_BITS configuration macro.
514
+ */
515
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
516
+ }
513
517
#endif
514
518
515
519
/* Shift the priority group value back to its position within the AIRCR
Original file line number Diff line number Diff line change @@ -361,19 +361,23 @@ BaseType_t xPortStartScheduler( void )
361
361
362
362
#ifdef __NVIC_PRIO_BITS
363
363
{
364
- /* Check the CMSIS configuration that defines the number of
365
- * priority bits matches the number of priority bits actually queried
366
- * from the hardware. */
367
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
364
+ /*
365
+ * Check that the number of implemented priority bits queried from
366
+ * hardware is at least as many as specified in the CMSIS
367
+ * __NVIC_PRIO_BITS configuration macro.
368
+ */
369
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
368
370
}
369
371
#endif
370
372
371
373
#ifdef configPRIO_BITS
372
374
{
373
- /* Check the FreeRTOS configuration that defines the number of
374
- * priority bits matches the number of priority bits actually queried
375
- * from the hardware. */
376
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
375
+ /*
376
+ * Check that the number of implemented priority bits queried from
377
+ * hardware is at least as many as specified in the FreeRTOS
378
+ * configPRIO_BITS configuration macro.
379
+ */
380
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
377
381
}
378
382
#endif
379
383
Original file line number Diff line number Diff line change @@ -279,19 +279,23 @@ BaseType_t xPortStartScheduler( void )
279
279
280
280
#ifdef __NVIC_PRIO_BITS
281
281
{
282
- /* Check the CMSIS configuration that defines the number of
283
- * priority bits matches the number of priority bits actually queried
284
- * from the hardware. */
285
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
282
+ /*
283
+ * Check that the number of implemented priority bits queried from
284
+ * hardware is at least as many as specified in the CMSIS
285
+ * __NVIC_PRIO_BITS configuration macro.
286
+ */
287
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
286
288
}
287
289
#endif
288
290
289
291
#ifdef configPRIO_BITS
290
292
{
291
- /* Check the FreeRTOS configuration that defines the number of
292
- * priority bits matches the number of priority bits actually queried
293
- * from the hardware. */
294
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
293
+ /*
294
+ * Check that the number of implemented priority bits queried from
295
+ * hardware is at least as many as specified in the FreeRTOS
296
+ * configPRIO_BITS configuration macro.
297
+ */
298
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
295
299
}
296
300
#endif
297
301
Original file line number Diff line number Diff line change @@ -317,19 +317,23 @@ BaseType_t xPortStartScheduler( void )
317
317
318
318
#ifdef __NVIC_PRIO_BITS
319
319
{
320
- /* Check the CMSIS configuration that defines the number of
321
- * priority bits matches the number of priority bits actually queried
322
- * from the hardware. */
323
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
320
+ /*
321
+ * Check that the number of implemented priority bits queried from
322
+ * hardware is at least as many as specified in the CMSIS
323
+ * __NVIC_PRIO_BITS configuration macro.
324
+ */
325
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
324
326
}
325
327
#endif
326
328
327
329
#ifdef configPRIO_BITS
328
330
{
329
- /* Check the FreeRTOS configuration that defines the number of
330
- * priority bits matches the number of priority bits actually queried
331
- * from the hardware. */
332
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
331
+ /*
332
+ * Check that the number of implemented priority bits queried from
333
+ * hardware is at least as many as specified in the FreeRTOS
334
+ * configPRIO_BITS configuration macro.
335
+ */
336
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
333
337
}
334
338
#endif
335
339
Original file line number Diff line number Diff line change @@ -431,19 +431,23 @@ BaseType_t xPortStartScheduler( void )
431
431
432
432
#ifdef __NVIC_PRIO_BITS
433
433
{
434
- /* Check the CMSIS configuration that defines the number of
435
- * priority bits matches the number of priority bits actually queried
436
- * from the hardware. */
437
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
434
+ /*
435
+ * Check that the number of implemented priority bits queried from
436
+ * hardware is at least as many as specified in the CMSIS
437
+ * __NVIC_PRIO_BITS configuration macro.
438
+ */
439
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
438
440
}
439
441
#endif
440
442
441
443
#ifdef configPRIO_BITS
442
444
{
443
- /* Check the FreeRTOS configuration that defines the number of
444
- * priority bits matches the number of priority bits actually queried
445
- * from the hardware. */
446
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
445
+ /*
446
+ * Check that the number of implemented priority bits queried from
447
+ * hardware is at least as many as specified in the FreeRTOS
448
+ * configPRIO_BITS configuration macro.
449
+ */
450
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
447
451
}
448
452
#endif
449
453
Original file line number Diff line number Diff line change @@ -305,19 +305,23 @@ BaseType_t xPortStartScheduler( void )
305
305
306
306
#ifdef __NVIC_PRIO_BITS
307
307
{
308
- /* Check the CMSIS configuration that defines the number of
309
- * priority bits matches the number of priority bits actually queried
310
- * from the hardware. */
311
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
308
+ /*
309
+ * Check that the number of implemented priority bits queried from
310
+ * hardware is at least as many as specified in the CMSIS
311
+ * __NVIC_PRIO_BITS configuration macro.
312
+ */
313
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
312
314
}
313
315
#endif
314
316
315
317
#ifdef configPRIO_BITS
316
318
{
317
- /* Check the FreeRTOS configuration that defines the number of
318
- * priority bits matches the number of priority bits actually queried
319
- * from the hardware. */
320
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
319
+ /*
320
+ * Check that the number of implemented priority bits queried from
321
+ * hardware is at least as many as specified in the FreeRTOS
322
+ * configPRIO_BITS configuration macro.
323
+ */
324
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
321
325
}
322
326
#endif
323
327
Original file line number Diff line number Diff line change @@ -367,19 +367,23 @@ BaseType_t xPortStartScheduler( void )
367
367
368
368
#ifdef __NVIC_PRIO_BITS
369
369
{
370
- /* Check the CMSIS configuration that defines the number of
371
- * priority bits matches the number of priority bits actually queried
372
- * from the hardware. */
373
- configASSERT ( ulImplementedPrioBits == __NVIC_PRIO_BITS );
370
+ /*
371
+ * Check that the number of implemented priority bits queried from
372
+ * hardware is at least as many as specified in the CMSIS
373
+ * __NVIC_PRIO_BITS configuration macro.
374
+ */
375
+ configASSERT ( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
374
376
}
375
377
#endif
376
378
377
379
#ifdef configPRIO_BITS
378
380
{
379
- /* Check the FreeRTOS configuration that defines the number of
380
- * priority bits matches the number of priority bits actually queried
381
- * from the hardware. */
382
- configASSERT ( ulImplementedPrioBits == configPRIO_BITS );
381
+ /*
382
+ * Check that the number of implemented priority bits queried from
383
+ * hardware is at least as many as specified in the FreeRTOS
384
+ * configPRIO_BITS configuration macro.
385
+ */
386
+ configASSERT ( ulImplementedPrioBits >= configPRIO_BITS );
383
387
}
384
388
#endif
385
389
You can’t perform that action at this time.
0 commit comments