File tree Expand file tree Collapse file tree 7 files changed +16
-4
lines changed
examples/template_configuration Expand file tree Collapse file tree 7 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 77 workflow_dispatch :
88jobs :
99 formatting :
10- runs-on : ubuntu-20.04
10+ runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4.1.1
1313 - name : Check Formatting of FreeRTOS-Kernel Files
Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ jobs:
1616 if : ${{ github.event.issue.pull_request &&
1717 ( ( github.event.comment.body == '/bot run uncrustify' ) ||
1818 ( github.event.comment.body == '/bot run formatting' ) ) }}
19- runs-on : ubuntu-20.04
19+ runs-on : ubuntu-latest
2020 steps :
2121 - name : Apply Formatting Fix
2222 id : check-formatting
2323 uses : FreeRTOS/CI-CD-Github-Actions/formatting-bot@main
2424 with :
2525 exclude-dirs : portable
26+
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ on: [push, pull_request]
55jobs :
66 kernel-checker :
77 name : FreeRTOS Kernel Header Checks
8- runs-on : ubuntu-20.04
8+ runs-on : ubuntu-latest
99 steps :
1010 # Install python 3
1111 - name : Tool Setup
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ on: [push, pull_request]
33
44jobs :
55 run :
6- runs-on : ubuntu-20.04
6+ runs-on : ubuntu-latest
77 steps :
88 - name : Checkout Parent Repository
99 uses : actions/checkout@v4.1.1
Original file line number Diff line number Diff line change 415415 * number of the failing assert (for example, "vAssertCalled( __FILE__, __LINE__
416416 * )" or it can simple disable interrupts and sit in a loop to halt all
417417 * execution on the failing line for viewing in a debugger. */
418+
419+ /* *INDENT-OFF* */
418420#define configASSERT ( x ) \
419421 if( ( x ) == 0 ) \
420422 { \
421423 taskDISABLE_INTERRUPTS(); \
422424 for( ; ; ) \
423425 ; \
424426 }
427+ /* *INDENT-ON* */
425428
426429/******************************************************************************/
427430/* FreeRTOS MPU specific definitions. *****************************************/
Original file line number Diff line number Diff line change @@ -246,7 +246,10 @@ void vCoRoutineSchedule( void );
246246 * \defgroup crSTART crSTART
247247 * \ingroup Tasks
248248 */
249+
250+ /* *INDENT-OFF* */
249251#define crEND () }
252+ /* *INDENT-ON* */
250253
251254/*
252255 * These macros are intended for internal use by the co-routine implementation
Original file line number Diff line number Diff line change @@ -234,6 +234,11 @@ __attribute__(( weak )) void vApplicationSetupTickTimerInterrupt( void )
234234{
235235const uint32_t ulCompareMatch = ( (configPERIPHERAL_CLOCK_HZ / portTIMER_PRESCALE ) / configTICK_RATE_HZ ) - 1UL ;
236236
237+ /* PR1 is 16-bit. Ensure that the configPERIPHERAL_CLOCK_HZ and
238+ * configTICK_RATE_HZ are defined such that ulCompareMatch value would fit
239+ * in 16-bits. */
240+ configASSERT ( ( ulCompareMatch & 0xFFFF0000 ) == 0 );
241+
237242 T1CON = 0x0000 ;
238243 T1CONbits .TCKPS = portPRESCALE_BITS ;
239244 PR1 = ulCompareMatch ;
You can’t perform that action at this time.
0 commit comments