/********************** (C) COPYRIGHT 1393 Mehad Sanat Shargh ******************
* File Name : main.c
* Author : Mohammad Nouri
* Date First Issued : 92/09/09 : Version 1.0
* Description : Main program body
********************************************************************************
* History:
* Ver Who Date Changes
* ------ -------- -------- --------------------------------------------------
* 1.0 m.nouri 92/09/09 First release
********************************************************************************
* A very simple example that ... .
*******************************************************************************/
/*---------------------------- Include Files ---------------------------------*/
#include "STM32F4xx.h" /* STM32F4xx.h definitions */
#include "FreeRTOS.h"
#include "task.h
/*--------------------------- Type Definitions -------------------------------*/
/*------------------------- Constant Definitions -----------------------------*/
/*---------------- Macros (Inline Functions) Definitions ---------------------*/
/*------------------------- Variable Definitions -----------------------------*/
/*------------------------- Function Prototypes ------------------------------*/
void prvTaskA (void* pvParameters);
void prvTaskB (void* pvParameters);
/*--------------------------- Private Functions ------------------------------*/
/*******************************************************************************
* Function Name : main
* Description : Main program
* Input : None
* Output : None
* Return : None
*******************************************************************************/
int main()
{
/* xxx Initialization --------------------------------------------------------*/
/* ---------------------------------------------------------------------------*/
xTaskCreate( prvTaskA, ( signed char * ) "TaskA", configMINIMAL_STACK_SIZE, NULL,
tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );
xTaskCreate( prvTaskB, ( signed char * ) "TaskB", configMINIMAL_STACK_SIZE, NULL,
tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );
vTaskStartScheduler();
//should never get here
for (;;);
}
/*******************************************************************************
* Function Name : TaskA
* Description : Initialize
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void prvTaskA (void* pvParameters) {
/* xxxx Configuration --------------------------------------------------------*/
/* ---------------------------------------------------------------------------*/
(void) pvParameters; // Just to stop compiler warnings
for (;;) {
vTaskDelay(500);
}
}
/*******************************************************************************
* Function Name : TaskB
* Description : Main task
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void prvTaskB (void* pvParameters) {
/* xxxx Configuration --------------------------------------------------------*/
/* ---------------------------------------------------------------------------*/
(void) pvParameters; // Just to stop compiler warnings
for (;;) {
vTaskDelay(500);
}
}
/******************* (C) COPYRIGHT 1393 Mehad Sanat Shargh *****END OF FILE****/