FreeRTOS First Example
Macros | Functions
BSP

BSP library. More...

Macros

#define PWM_FREQ   4000
 

Functions

void BSP_Init (void)
 Init all BSP functions.
 
void LedOn (void)
 Switch on LED.
 
void LedOff (void)
 Switch off LED.
 
void LedToggle (void)
 Switch off LED.
 
void PWMConfig (void)
 PWM (Timer) init.
 
void ADCConfig (void)
 ADC init. More...
 

Detailed Description

BSP library.

Example code using BSP

main() {
...
...
LedOn();
...
LedOff();
}

Macro Definition Documentation

◆ PWM_FREQ

#define PWM_FREQ   4000

PD7 (Led) is connected to TIM1_CC1 #4

PWM Frequency is : 14_000_000 / 256 / 4000 = 13,67 Hz

Definition at line 36 of file BSP.h.

Function Documentation

◆ ADCConfig()

void ADCConfig ( void  )

ADC init.

PD6 –> ADC0_CH6 input

Definition at line 159 of file BSP.c.