PX4 Firmware
PX4 Autopilot Software http://px4.io
build_config.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015, 2018 Pavel Kirienko <pavel.kirienko@gmail.com>
3  * Kinetis Port Author David Sidrane <david_s5@nscdg.com>
4  */
5 
6 #pragma once
7 
8 /**
9  * OS detection
10  */
11 #ifndef UAVCAN_KINETIS_NUTTX
12 # error "Only NuttX is supported"
13 #endif
14 
15 /**
16  * Number of interfaces must be enabled explicitly
17  */
18 #if !defined(UAVCAN_KINETIS_NUM_IFACES) || (UAVCAN_KINETIS_NUM_IFACES != 1 && UAVCAN_KINETIS_NUM_IFACES != 2)
19 # error "UAVCAN_KINETIS_NUM_IFACES must be set to either 1 or 2"
20 #endif
21 
22 /**
23  * Any PIT timer channel (PIT0-PIT3)
24  * e.g. -DUAVCAN_KINETIS_TIMER_NUMBER=2
25  */
26 #ifndef UAVCAN_KINETIS_TIMER_NUMBER
27 // In this case the clock driver should be implemented by the application
28 # define UAVCAN_KINETIS_TIMER_NUMBER 0
29 #endif