Rework RISC-V QEMU example to use vanilla Eclipse in place of Freedom Studio. NOTE: RISC-V QEMU mtime interrupts are not generated consistently.

This commit is contained in:
Richard Barry 2019-10-22 02:03:15 +00:00
parent ef31243396
commit 343fbe795f
7 changed files with 16 additions and 29 deletions

View file

@ -38,7 +38,7 @@
* main_full.c.
*/
.align( 8 )
.align( 4 )
vRegTest1Implementation:
/* Fill the core registers with known values. */
@ -145,15 +145,14 @@ reg1_loop:
reg1_error_loop:
/* Jump here if a register contains an uxpected value. This stops the loop
counter being incremented so the check task knows an error was found. */
ebreak
jal reg1_error_loop
.align( 16 )
.align( 4 )
ulRegTest1LoopCounterConst: .word ulRegTest1LoopCounter
/*-----------------------------------------------------------*/
.align( 8 )
.align( 4 )
vRegTest2Implementation:
/* Fill the core registers with known values. */
@ -257,10 +256,9 @@ Reg2_loop:
reg2_error_loop:
/* Jump here if a register contains an uxpected value. This stops the loop
counter being incremented so the check task knows an error was found. */
ebreak
jal reg2_error_loop
.align( 16 )
.align( 4 )
ulRegTest2LoopCounterConst: .word ulRegTest2LoopCounter

View file

@ -75,7 +75,6 @@
/* Standard demo application includes. */
#include "dynamic.h"
#include "blocktim.h"
#include "GenQTest.h"
#include "recmutex.h"
#include "TimerDemo.h"
#include "EventGroupsDemo.h"
@ -166,7 +165,6 @@ void main_full( void )
kernel port. */
vStartDynamicPriorityTasks();
vCreateBlockTimeTasks();
vStartGenericQueueTasks( tskIDLE_PRIORITY );
vStartRecursiveMutexTasks();
vStartTimerDemoTask( mainTIMER_TEST_PERIOD );
vStartEventGroupTasks();
@ -194,7 +192,6 @@ static void prvCheckTask( void *pvParameters )
const TickType_t xDelayPeriod = mainNO_ERROR_CHECK_TASK_PERIOD;
TickType_t xLastExecutionTime;
static unsigned long ulLastRegTest1Value = 0, ulLastRegTest2Value = 0;
const char * const pcPassMessage = "Pass";
const char * pcStatusMessage = ".";
extern void vSendString( const char * pcString );
@ -228,11 +225,6 @@ extern void vSendString( const char * pcString );
pcStatusMessage = "ERROR: Block time demo/tests.\r\n";
}
if ( xAreGenericQueueTasksStillRunning() != pdTRUE )
{
pcStatusMessage = "ERROR: Generic queue demo/tests.\r\n";
}
if ( xAreRecursiveMutexTasksStillRunning() != pdTRUE )
{
pcStatusMessage = "ERROR: Recursive mutex demo/tests.\r\n";