FreeRTOS First Example
BSP.h
Go to the documentation of this file.
1 
17 #ifndef BSP_H_
18 #define BSP_H_
19 
20 #include "em_device.h"
21 #include "em_chip.h"
22 #include "em_gpio.h"
23 #include "em_cmu.h"
24 #include "em_timer.h"
25 #include "em_adc.h"
26 
27 #include "sleep.h"
28 
36 #define PWM_FREQ 4000
37 
41 void BSP_Init(void);
42 
46 void LedOn(void);
47 
51 void LedOff(void);
52 
56 void LedToggle(void);
57 
61 void PWMConfig(void);
62 
68 void ADCConfig(void);
69 
70 #endif /* BSP_H_ */
71 
void LedOff(void)
Switch off LED.
Definition: BSP.c:89
void BSP_Init(void)
Init all BSP functions.
Definition: BSP.c:108
void ADCConfig(void)
ADC init.
Definition: BSP.c:159
void PWMConfig(void)
PWM (Timer) init.
Definition: BSP.c:145
void LedToggle(void)
Switch off LED.
Definition: BSP.c:93
void LedOn(void)
Switch on LED.
Definition: BSP.c:85