blob: 8a58f9d9064d2d272a51b8e2c9b0564e63971661 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2019 Dortmund University of Applied Sciences and Arts and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Dortmund University of Applied Sciences and Arts - initial API and implementation
*******************************************************************************/
//epiphany imports
#include <stdlib.h>
#include "AmaltheaConverter.h"
#include "c2c.h"
#include "debugFlags.h"
#include "shared_comms.h"
#include "taskCode.h"
#include "e_lib.h"
//freeRTOS imports
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
//utility imports
//---------------------------------------------
int main(void) {
//initialize output buffer for debug messages
outbuf_init();
shared_labels_init();
shared_labels_init_core();
//create Amalthea task objects
AmaltheaTask t5ms = createAmaltheaTask(handler5ms,cIn5ms,cOut5ms,5,5,2);
AmaltheaTask t10ms = createAmaltheaTask(handler10ms,cIn10ms,cOut10ms,10,10,3);
AmaltheaTask t20ms = createAmaltheaTask(handler20ms,cIn20ms,cOut20ms,20,20,5);
//create RTOS task from templates
createRTOSTask(&t5ms,3,0);
createRTOSTask(&t10ms,2,0);
createRTOSTask(&t20ms,1,0);
//start RTOS scheduler
vTaskStartScheduler();
return EXIT_SUCCESS;
}
//---------------------------------------------
//end of file