Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_DAC/AP_DAC_config.h
4182 views
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
5
/*
6
default off, enabled in hwdef.dat
7
*/
8
#ifndef AP_DAC_ENABLED
9
#define AP_DAC_ENABLED 0
10
#endif
11
12
#ifndef AP_DAC_BACKEND_DEFAULT_ENABLED
13
#define AP_DAC_BACKEND_DEFAULT_ENABLED 0
14
#endif
15
16
#ifndef AP_DAC_MAX_INSTANCES
17
#define AP_DAC_MAX_INSTANCES 1
18
#endif
19
20
#define AP_DAC_TYPE_TIx3204 1
21
#define AP_DAC_TYPE_MCP40D1x 2
22
23
#ifndef AP_DAC_MCP40D1X_ENABLED
24
#define AP_DAC_MCP40D1X_ENABLED (AP_DAC_ENABLED && AP_DAC_BACKEND_DEFAULT_ENABLED)
25
#endif
26
27
#ifndef AP_DAC_TIX3204_ENABLED
28
#define AP_DAC_TIX3204_ENABLED (AP_DAC_ENABLED && AP_DAC_BACKEND_DEFAULT_ENABLED)
29
#endif
30
31