blob: ebe82597dec94e0ea70062c21e19194dc44127d4 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef PINS_H__
#define PINS_H__
// Load Pins_<platform>.h
#if !defined(PLATFORM)
# if defined(__SAM3X8E__)
# if defined(__RADDS__)
# define PLATFORM RADDS
# elif defined(__ALLIGATOR__)
# define PLATFORM Alligator
# else
# define PLATFORM Duet
# endif
# elif defined(__SAM4E8E__)
# define PLATFORM DuetNG
# elif defined(__SAME70Q21__)
# define PLATFORM SAME70_TEST
# elif defined(__SAM4S8C__)
# define PLATFORM DuetM
# else
# error Unknown platform
# endif
#endif
#if !defined(P_INCLUDE_FILE)
# 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))))
#endif
#include P_INCLUDE_FILE
#ifndef SUPPORT_NONLINEAR_EXTRUSION
# define SUPPORT_NONLINEAR_EXTRUSION 1 // for now this is always enabled
#endif
#ifndef SUPPORT_WORKPLACE_COORDINATES
# define SUPPORT_WORKPLACE_COORDINATES 0
#endif
#ifndef SUPPORT_12864_LCD
# define SUPPORT_12864_LCD 0
#endif
#ifndef USE_CACHE
# define USE_CACHE 0
#endif
#endif // PINS_H__
|