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:
Richard Barry 2019-10-16 04:28:28 +00:00
parent d435a7b62d
commit f78ccd077a
15 changed files with 118 additions and 802 deletions

View file

@ -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 );
}
}
}