Uso de RTOS
Functions | Variables
mainEjemplo_1.c File Reference

Pagina Principal del Proyecto. More...

#include "includes.h"
#include "prototipos.h"
#include "timers.h"
#include <delays.h>
#include "io_define.h"
Include dependency graph for mainEjemplo_1.c:

Functions

void Task_START (void *pdata)
 Debe ser creada antes de lanzar la Multitarea
En esta funcion de activa el timer, su interrupcion y se crean la tareas restantes. More...
 
void main (void)
 Principal del Ejemplo. More...
 
void UserInit (void)
 Inicializa hardware. More...
 
void Task1 (void *pdata)
 Tarea 1 del Sistema - Usa el ADC y envia el resultado Via Mbox
Para Sincronizar con Tarea 2 emplea en Semáforo. More...
 
void Task2 (void *pdata)
 Tarea 2 del Sistema - Usa el ADC y envia el resultado Via Mbox
Para Sincronizar con Tarea 1 emplea en Semáforo. More...
 
void TaskRele (void *pdata)
 Controla el estado de un RELE. More...
 
void TaskADC (void *pdata)
 Blink de un Led
Se activa desde una ISR mediante un Semáforo. More...
 
long int convertirADC (void)
 Funcion que realiza una Conversion. More...
 

Variables

OS_STK Start_TaskStk [50L]
 
OS_STK Task1Stk [100L]
 
OS_STK Task2Stk [100L]
 
OS_STK TaskAdcStk [50L]
 
OS_STK TaskReleStk [100L]
 
OS_EVENT * ADC_Mbox_1
 
OS_EVENT * ADC_Mbox_2
 
OS_EVENT * ADC_Sem_1
 
OS_EVENT * ADC_Sem_2
 

Detailed Description

Pagina Principal del Proyecto.

Author
Carlos Augusto Centeno
Version
1.00

Function Documentation

◆ convertirADC()

long int convertirADC ( void  )

Funcion que realiza una Conversion.

Date
Agosto 2018
Returns
El valor de la Conversion en un Long Int
Here is the caller graph for this function:

◆ main()

void main ( void  )

Principal del Ejemplo.

Date
Agosto 2018
Here is the call graph for this function:

◆ Task1()

void Task1 ( void *  pdata)

Tarea 1 del Sistema - Usa el ADC y envia el resultado Via Mbox
Para Sincronizar con Tarea 2 emplea en Semáforo.

Parameters
*pdata
Date
Agosto 2018
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Task2()

void Task2 ( void *  pdata)

Tarea 2 del Sistema - Usa el ADC y envia el resultado Via Mbox
Para Sincronizar con Tarea 1 emplea en Semáforo.

Parameters
*pdata
Date
Agosto 2018
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Task_START()

void Task_START ( void *  pdata)

Debe ser creada antes de lanzar la Multitarea
En esta funcion de activa el timer, su interrupcion y se crean la tareas restantes.

Parameters
*pdata
Author
Carlos Centeno
Date
Agosto 2018
Warning
Debe tener un for infinito
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TaskADC()

void TaskADC ( void *  pdata)

Blink de un Led
Se activa desde una ISR mediante un Semáforo.

Parameters
*pdata
Author
Carlos Centeno
Date
Agosto 2018
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TaskRele()

void TaskRele ( void *  pdata)

Controla el estado de un RELE.

Parameters
*pdata
Recibe el valor de dos conversiones ADC mediante un MBOX
Author
Carlos Centeno
Date
Agosto 2018
Warning
Precaucion de DEADLOCK
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UserInit()

void UserInit ( void  )

Inicializa hardware.

Author
Carlos Centeno
Date
Agosto 2018
Warning
Se debe ajustar en funcion de la plataforma
Here is the caller graph for this function:

Variable Documentation

◆ ADC_Mbox_1

OS_EVENT* ADC_Mbox_1

ACD_Mbox 1

◆ ADC_Mbox_2

OS_EVENT* ADC_Mbox_2

ACD_Mbox 2

◆ ADC_Sem_1

OS_EVENT* ADC_Sem_1

ACD_Mbox 2

◆ ADC_Sem_2

OS_EVENT* ADC_Sem_2

ACD_Mbox 2

◆ Start_TaskStk

OS_STK Start_TaskStk[50L]

Stack de la Tarea Task_START

◆ Task1Stk

OS_STK Task1Stk[100L]

Stack de la Tarea Task1 MUTEX

◆ Task2Stk

OS_STK Task2Stk[100L]

Stack de la Tarea Task2 MUTEX

◆ TaskAdcStk

OS_STK TaskAdcStk[50L]

Stack de la Tarea Task ADC

◆ TaskReleStk

OS_STK TaskReleStk[100L]

Stack de la Tarea Task RELE