SimpleFOClibrary 2.4.0
Loading...
Searching...
No Matches
renesas.h
Go to the documentation of this file.
1#pragma once
2
3
4#include "../../hardware_api.h"
5
6
7#if defined(ARDUINO_UNOR4_WIFI) || defined(ARDUINO_UNOR4_MINIMA)
8
9// uncomment to enable debug output from Renesas driver
10// can set this as build-flag in Arduino IDE or PlatformIO
11#define SIMPLEFOC_RENESAS_DEBUG
12
13#define RENESAS_DEFAULT_PWM_FREQUENCY 24000
14#define RENESAS_DEFAULT_DEAD_ZONE 0.05f
15
16struct RenesasTimerConfig;
17
18typedef struct RenesasHardwareDriverParams {
19 uint8_t pins[6];
20 uint8_t channels[6];
21 RenesasTimerConfig* timer_config[6];
22 long pwm_frequency;
23 float dead_zone;
24} RenesasHardwareDriverParams;
25
26
27
28#endif