Skip to content

Commit d9ceebc

Browse files
committed
Correct RISC-V port #endif preprocessor comments
The comment after vPortSetupTimerInterrupt in GCC and IAR RISC-V port.c duplicated configMTIME_BASE_ADDRESS and omitted configMTIMECMP_BASE_ADDRESS. Align the comment with the matching #if condition.
1 parent f965eda commit d9ceebc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

portable/GCC/RISC-V/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ size_t xTaskReturnAddress = ( size_t ) portTASK_RETURN_ADDRESS;
154154
ullNextTime += ( uint64_t ) uxTimerIncrementsForOneTick;
155155
}
156156

157-
#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIME_BASE_ADDRESS != 0 ) */
157+
#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIMECMP_BASE_ADDRESS != 0 ) */
158158
/*-----------------------------------------------------------*/
159159

160160
BaseType_t xPortStartScheduler( void )

portable/IAR/RISC-V/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void prvTaskExitError( void )
187187
ullNextTime += ( uint64_t ) uxTimerIncrementsForOneTick;
188188
}
189189

190-
#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIME_BASE_ADDRESS != 0 ) */
190+
#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIMECMP_BASE_ADDRESS != 0 ) */
191191
/*-----------------------------------------------------------*/
192192

193193
BaseType_t xPortStartScheduler( void )

0 commit comments

Comments
 (0)