/* * TODO Do conditional includes based on which target we are building for. * Actually, target-specific includes should go in the port folder * This should be specified in the master config file * TODO This file should be moved to the posix port folder * */ /* FreeRTOS includes. */ /* #include "FreeRTOS_POSIX.h" */ /* System headers. */ #include #include #include /* (Ideally) platform-agnostic project includes. */ #include "master_posix.h" #include "main.h" #include "port.h" /* FreeRTOS+POSIX. should go in the port folder */ /* #include "FreeRTOS_POSIX/pthread.h" */ /* #include "FreeRTOS_POSIX/mqueue.h" */ /* #include "FreeRTOS_POSIX/time.h" */ /* #include "FreeRTOS_POSIX/fcntl.h" */ /* #include "FreeRTOS_POSIX/errno.h" */ /*-----------------------------------------------------------*/ /** * @brief Main function; * * See the top of this file for detailed description. */ void vStartPOSIXMaster(void *pvParams) { pthread_t handshake_thread, dataflow_thread, routing_thread; /* Stream initializations should be handled by the devicetree library once that's set up */ /* pthread_create(&handshake_thread, NULL, handshake_func, NULL); */ pthread_create(&dataflow_thread, NULL, dataflow_func, NULL); /* pthread_create(&routing_thread, NULL, routing_func, NULL); */ /* This function will be defined for the port * Each port will have a configuration file that includes details about the bus, * either in a custom format or in a devicetree format (preferred) * */ /* Add device-specific stream/thread declerations here, if needed */ /* ... */ /* This task was created with the native xTaskCreate() API function, so must not run off the end of its implementing thread. */ /* vTaskDelete(NULL); */ }