SimpleFOClibrary 2.4.0
Loading...
Searching...
No Matches
drivers/hardware_specific/silabs/efr32_mcu.h
Go to the documentation of this file.
1#ifndef EFR32_DRIVER_MCU_H
2#define EFR32_DRIVER_MCU_H
3
4#include "../../hardware_api.h"
5
6#if defined(ARDUINO_ARCH_SILABS)
7#include "efr32_pwm.h"
8
9#ifndef SILABS_DEFAULT_PWM_PERPHERAL
10#define SILABS_DEFAULT_PWM_PERPHERAL TIMER0
11#endif
12
13#ifndef SILABS_SECOND_PWM_PERPHERAL
14#define SILABS_SECOND_PWM_PERPHERAL TIMER1
15#endif
16
17#ifndef SILABS_PWM_PRS_CHANNEL
18#define SILABS_PWM_PRS_CHANNEL 0
19#endif
20
21#ifndef SILABS_DEFAULT_PWM_FREQUENCY
22#define SILABS_DEFAULT_PWM_FREQUENCY 50000
23#endif
24
25#ifndef SILABS_DEFAULT_DEAD_ZONE
26#define SILABS_DEFAULT_DEAD_ZONE 0.02f
27#endif
28
29typedef struct EFR32DriverParams {
30 EFR32PwmInstance inst[4];
31 uint8_t noPwmChannel;
32 bool lowside;
33 long pwm_frequency;
34 float dead_zone;
35} EFR32DriverParams;
36
37#endif
38
39#endif