FreeRTOS First Example
Functions | Variables
BSP.c File Reference

Basic BSP enabling printf. More...

#include "BSP.h"
Include dependency graph for BSP.c:

Go to the source code of this file.

Functions

static void setupSWOForPrint (void)
 Initialize SWO to be used by printf.
 
int _write (int file, const char *ptr, int len)
 write function to be used by printf
 
static void BSP_LedInit (void)
 Init LED GPIO.
 
void LedOn (void)
 Switch on LED.
 
void LedOff (void)
 Switch off LED.
 
void LedToggle (void)
 Switch off LED.
 
static void BSP_ButtonsInit ()
 Init buttons GPIOs. More...
 
void BSP_Init (void)
 Init all BSP functions.
 
void PWMConfig (void)
 PWM (Timer) init.
 
void ADCConfig (void)
 ADC init. More...
 

Variables

volatile uint32_t pwm_value = PWM_FREQ/6
 

Detailed Description

Basic BSP enabling printf.

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

Definition in file BSP.c.

Function Documentation

◆ BSP_ButtonsInit()

static void BSP_ButtonsInit ( )
static

Init buttons GPIOs.

This init function enables IRQs and sets priority to 6

Definition at line 102 of file BSP.c.

Variable Documentation

◆ pwm_value

volatile uint32_t pwm_value = PWM_FREQ/6

value for pwm

Definition at line 16 of file BSP.c.