blob: 46d06333b305089845f839eed7b2b59d6cb7e7ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef PINS_H__
#define PINS_H__
// Load Pins_<platform>.h
#if !defined(PLATFORM)
# if defined(__SAM3X8E__)
# if defined(__RADDS__)
# define PLATFORM RADDS
# else
# define PLATFORM Duet
# endif
# elif defined(__SAM4E8E__)
# define PLATFORM DuetNG
# else
# error Unknown platform
# endif
#endif
#define P_EXPAND(x) x
#define P_CONCAT(x,y) P_EXPAND(x)y
#define P_STR(x) #x
#define P_XSTR(x) P_STR(x)
#define P_INCLUDE_FILE P_XSTR(P_CONCAT(PLATFORM,P_CONCAT(/Pins_,P_CONCAT(PLATFORM,.h))))
#include P_INCLUDE_FILE
#endif // PINS_H__
|