Open FFBoard
Open source force feedback firmware
cpp_target_config.h
Go to the documentation of this file.
1/*
2 * cpp_target_config.h
3 *
4 * Created on: 27.12.2020
5 * Author: willson556
6 */
7
8#ifndef CPP_TARGET_CONFIG_H_
9#define CPP_TARGET_CONFIG_H_
10
11#include "SPI.h"
12#include "MotorPWM.h"
13#include "UART.h"
14#include "target_constants.h"
15#include "CAN.h"
16#include "I2C.h"
17
19extern SPIPort motor_spi;
20extern SPIPort ext3_spi;
21
22#ifdef UART_PORT_MOTOR
23extern UARTPort motor_uart;
24#endif
25
26#ifdef UART_PORT_EXT
28#endif
29
30#ifdef CANBUS
31extern CANPort& canport;
32#endif
33
34#ifdef PWMDRIVER
35extern const PWMConfig pwmTimerConfig;
36#endif
37
38#ifdef I2C_PORT
39extern I2CPort i2cport;
40#endif
41
42#ifdef DEBUGPIN
43extern const OutputPin debugpin;
44#endif
45
46#ifdef GPIO_MOTOR
47extern const OutputPin gpMotor;
48#endif
49
50#endif
Definition: CAN.h:119
Definition: I2C.h:43
Definition: SPI.h:43
Definition: UART.h:26
SPIPort external_spi
const PWMConfig pwmTimerConfig
const OutputPin debugpin
CANPort & canport
I2CPort i2cport
SPIPort ext3_spi
UARTPort external_uart
const OutputPin gpMotor
UARTPort motor_uart
SPIPort motor_spi