Correct RISC-V port #endif preprocessor comments (#1395)
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.
diff --git a/portable/GCC/RISC-V/port.c b/portable/GCC/RISC-V/port.c
index 8fe7a25..e0974d1 100644
--- a/portable/GCC/RISC-V/port.c
+++ b/portable/GCC/RISC-V/port.c
@@ -154,7 +154,7 @@
ullNextTime += ( uint64_t ) uxTimerIncrementsForOneTick;
}
-#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIME_BASE_ADDRESS != 0 ) */
+#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIMECMP_BASE_ADDRESS != 0 ) */
/*-----------------------------------------------------------*/
BaseType_t xPortStartScheduler( void )
diff --git a/portable/IAR/RISC-V/port.c b/portable/IAR/RISC-V/port.c
index 820423e..ec11fc4 100644
--- a/portable/IAR/RISC-V/port.c
+++ b/portable/IAR/RISC-V/port.c
@@ -187,7 +187,7 @@
ullNextTime += ( uint64_t ) uxTimerIncrementsForOneTick;
}
-#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIME_BASE_ADDRESS != 0 ) */
+#endif /* ( configMTIME_BASE_ADDRESS != 0 ) && ( configMTIMECMP_BASE_ADDRESS != 0 ) */
/*-----------------------------------------------------------*/
BaseType_t xPortStartScheduler( void )