PX4 Firmware
PX4 Autopilot Software http://px4.io
build_config.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com>
3
*/
4
5
#pragma once
6
7
/**
8
* OS detection
9
*/
10
#ifndef UAVCAN_STM32_NUTTX
11
# error "Only NuttX is supported"
12
#endif
13
14
/**
15
* Number of interfaces must be enabled explicitly
16
*/
17
#if !defined(UAVCAN_STM32_NUM_IFACES) || (UAVCAN_STM32_NUM_IFACES != 1 && UAVCAN_STM32_NUM_IFACES != 2)
18
# error "UAVCAN_STM32_NUM_IFACES must be set to either 1 or 2"
19
#endif
20
21
/**
22
* Any General-Purpose timer (TIM2, TIM3, TIM4, TIM5)
23
* e.g. -DUAVCAN_STM32_TIMER_NUMBER=2
24
*/
25
#ifndef UAVCAN_STM32_TIMER_NUMBER
26
// In this case the clock driver should be implemented by the application
27
# define UAVCAN_STM32_TIMER_NUMBER 0
28
#endif
src
drivers
uavcan
uavcan_drivers
stm32
driver
include
uavcan_stm32
build_config.hpp
Generated by
1.8.13