mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-05 13:53:50 -04:00
Recreate the RISC-V-Qemu demo using Vanilla Eclipse in place of Freedom Studio as there is not a new Freedom Studio project that targets the HiFive1 board, and the updated Freedom Studio version didn't work with this project any more anyway.
This commit is contained in:
parent
d435a7b62d
commit
f78ccd077a
15 changed files with 118 additions and 802 deletions
|
@ -175,6 +175,7 @@ unsigned long ulReceivedValue;
|
|||
const unsigned long ulExpectedValue = 100UL;
|
||||
const char * const pcPassMessage = "Blink\r\n";
|
||||
const char * const pcFailMessage = "Unexpected value received\r\n";
|
||||
extern void vSendString( const char * pcString );
|
||||
|
||||
/* Remove compiler warning about unused parameter. */
|
||||
( void ) pvParameters;
|
||||
|
@ -190,12 +191,12 @@ const char * const pcFailMessage = "Unexpected value received\r\n";
|
|||
is it the expected value? If it is, toggle the LED. */
|
||||
if( ulReceivedValue == ulExpectedValue )
|
||||
{
|
||||
write( STDOUT_FILENO, pcPassMessage, strlen( pcPassMessage ) );
|
||||
vSendString( pcPassMessage );
|
||||
ulReceivedValue = 0U;
|
||||
}
|
||||
else
|
||||
{
|
||||
write( STDOUT_FILENO, pcFailMessage, strlen( pcFailMessage ) );
|
||||
vSendString( pcFailMessage );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue