You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/ComputeGraph/tests/main.cpp

45 lines
823 B
C++

#include <cstdio>
#include <cstdint>
#if defined(COMMAND_LINE)
#include <cstdlib>
#endif
#include "scheduler.h"
#include "RTE_Components.h"
#include CMSIS_device_header
#include "cmsis_os2.h"
void app_main (void *argument)
{
int error;
uint32_t nbSched = 0;
(void)argument;
printf("Start\n\r");
nbSched=scheduler(&error);
printf("Number of schedule iterations = %d\n\r",nbSched);
printf("Error code = %d\n\r",error);
#if defined(COMMAND_LINE)
exit(0);
#else
osThreadExit();
#endif
}
int main(void)
{
// System Initialization
SystemCoreClockUpdate();
osKernelInitialize(); // Initialize CMSIS-RTOS
osThreadNew(app_main, NULL, NULL); // Create application main thread
osKernelStart(); // Start thread execution
for (;;) {}
}