FreeRTOS First Example
Macros | Functions | Variables
main.c File Reference

FreeRTOS example. More...

#include <stdio.h>
#include <stdlib.h>
#include "FreeRTOSConfig.h"
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "em_chip.h"
#include "sleep.h"
#include "BSP.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define TOGGLE_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)
 
#define QUEUE_LENGTH   (10)
 

Functions

static void TaskPWMCtrl (void *pParameter)
 PWM Ctrl from value received through a queue. More...
 
static void TaskADCRead (void *pParameter)
 Get ADC value and sent it through queue. More...
 
int main (void)
 main function
 

Variables

QueueHandle_t adc_queue
 Queue to send & receive ADC values.
 

Detailed Description

FreeRTOS example.

Author
Màrius Montón mariu.nosp@m.s.mo.nosp@m.nton@.nosp@m.gmai.nosp@m.l.com
Version
V1.0
Date
6-September-2017
License:
This project is released under the GNU Public License.

Definition in file main.c.