Revision 1304b12b amiro-lld.h
amiro-lld.h | ||
---|---|---|
24 | 24 |
*/ |
25 | 25 |
#define _AMIRO_LLD_ |
26 | 26 |
|
27 |
/*===========================================================================*/ |
|
27 | 28 |
/** |
28 | 29 |
* @name AMiRo-LLD version and relase information. |
29 | 30 |
* @{ |
30 | 31 |
*/ |
32 |
/*===========================================================================*/ |
|
31 | 33 |
|
32 | 34 |
/** |
33 | 35 |
* @brief Realease type of this version. |
34 | 36 |
* @note Possible values are "pre-alpha", "alpha", "beta", "release candidate", and "release". |
35 | 37 |
*/ |
36 |
#define AMIRO_LLD_RELEASE_TYPE "beta"
|
|
38 |
#define AMIROLLD_RELEASE_TYPE "beta"
|
|
37 | 39 |
|
38 | 40 |
/** |
39 | 41 |
* @brief The AMiRo-LLD major version. |
40 | 42 |
* @note Changes of the major version imply incompatibilities. |
41 | 43 |
*/ |
42 |
#define AMIRO_LLD_VERSION_MAJOR 1
|
|
44 |
#define AMIROLLD_VERSION_MAJOR 1
|
|
43 | 45 |
|
44 | 46 |
/** |
45 | 47 |
* @brief The AMiRo-LLD minor version. |
46 | 48 |
* @note A higher minor version implies new functionalty, but all old interfaces are still available. |
47 | 49 |
*/ |
48 |
#define AMIRO_LLD_VERSION_MINOR 0
|
|
50 |
#define AMIROLLD_VERSION_MINOR 1
|
|
49 | 51 |
|
50 | 52 |
/** |
51 | 53 |
* @brief The AMiRo-LLD patch level. |
52 | 54 |
*/ |
53 |
#define AMIRO_LLD_VERSION_PATCH 2 |
|
54 |
|
|
55 |
/** |
|
56 |
* @brief The periphery abstraction layer interface required major version. |
|
57 |
* @note Any other major version is assumed to be incompatible. |
|
58 |
*/ |
|
59 |
#define PERIPHAL_REQUIRED_MAJOR 1 |
|
60 |
|
|
61 |
/** |
|
62 |
* @brief The periphery abstraction layer interface required minor version. |
|
63 |
* @note Higher minor version values are assumed to be compatible, too. |
|
64 |
*/ |
|
65 |
#define PERIPHAL_REQUIRED_MINOR 1 |
|
55 |
#define AMIROLLD_VERSION_PATCH 0 |
|
66 | 56 |
|
67 | 57 |
/** @} */ |
68 | 58 |
|
59 |
/******************************************************************************/ |
|
60 |
/* CONFIGURATION & VERIFICATION */ |
|
61 |
/******************************************************************************/ |
|
62 |
|
|
69 | 63 |
#include <alldconf.h> |
64 |
|
|
70 | 65 |
#if !defined(_AMIRO_LLD_CFG_) |
71 |
#error "invalid AMiRo-LLD configuration file" |
|
72 |
#elif (AMIRO_LLD_CFG_VERSION_MAJOR != AMIRO_LLD_VERSION_MAJOR) || (AMIRO_LLD_CFG_VERSION_MINOR < AMIRO_LLD_VERSION_MINOR)
|
|
73 |
#error "incompatible AMiRo-LLD configuration file" |
|
66 |
#error "invalid AMiRo-LLD configuration file"
|
|
67 |
#elif (AMIRO_LLD_CFG_VERSION_MAJOR != AMIROLLD_VERSION_MAJOR) || (AMIRO_LLD_CFG_VERSION_MINOR < AMIROLLD_VERSION_MINOR)
|
|
68 |
#error "incompatible AMiRo-LLD configuration file"
|
|
74 | 69 |
#endif |
75 | 70 |
|
76 |
#include "periphALtypes.h" |
|
77 |
#include <periphAL.h> |
|
78 |
#if !defined(PERIPHAL_VERSION_MAJOR) || !defined(PERIPHAL_VERSION_MINOR) |
|
79 |
#error "invalid periphAL implementation" |
|
80 |
#elif (PERIPHAL_VERSION_MAJOR != PERIPHAL_REQUIRED_MAJOR) || (PERIPHAL_VERSION_MINOR < PERIPHAL_REQUIRED_MINOR) |
|
81 |
#error "incompatible periphAL implementation" |
|
71 |
#if !defined(AMIROLLD_CFG_TIME_SIZE) |
|
72 |
#error "AMIROLLD_CFG_TIME_SIZE not defined in alldconf.h" |
|
73 |
#endif /* !defined(AMIROLLD_CFG_TIME_SIZE) */ |
|
74 |
|
|
75 |
#if !defined(AMIROLLD_CFG_DBG) |
|
76 |
#error "AMIROLLD_CFG_DBG not defined in alldconf.h" |
|
77 |
#endif /* !defined(AMIROLLD_CFG_DBG) */ |
|
78 |
|
|
79 |
#if !defined(AMIROLLD_CFG_GPIO) |
|
80 |
#error "AMIROLLD_CFG_GPIO not defined in alldconf.h" |
|
81 |
#endif /* !defined(AMIROLLD_CFG_GPIO) */ |
|
82 |
|
|
83 |
#if !defined(AMIROLLD_CFG_PWM) |
|
84 |
#error "AMIROLLD_CFG_PWM not defined in alldconf.h" |
|
85 |
#endif /* !defined(AMIROLLD_CFG_PWM) */ |
|
86 |
|
|
87 |
#if !defined(AMIROLLD_CFG_QEI) |
|
88 |
#error "AMIROLLD_CFG_QEI not defined in alldconf.h" |
|
89 |
#endif /* !defined(AMIROLLD_CFG_QEI) */ |
|
90 |
|
|
91 |
#if !defined(AMIROLLD_CFG_I2C) |
|
92 |
#error "AMIROLLD_CFG_I2C not defined in alldconf.h" |
|
93 |
#endif /* !defined(AMIROLLD_CFG_I2C) */ |
|
94 |
|
|
95 |
#if !defined(AMIROLLD_CFG_SPI) |
|
96 |
#error "AMIROLLD_CFG_SPI not defined in alldconf.h" |
|
97 |
#endif /* !defined(AMIROLLD_CFG_SPI) */ |
|
98 |
|
|
99 |
#if ((AMIROLLD_CFG_GPIO == true) || \ |
|
100 |
(AMIROLLD_CFG_PWM == true) || \ |
|
101 |
(AMIROLLD_CFG_QEI == true) || \ |
|
102 |
(AMIROLLD_CFG_I2C == true) || \ |
|
103 |
(AMIROLLD_CFG_SPI == true)) && \ |
|
104 |
!defined(AMIROLLD_CFG_PERIPHAL_HEADER) |
|
105 |
#error "AMIROLLD_CFG_PERIPHAL_HEADER required but not defined in alldconf.h" |
|
82 | 106 |
#endif |
83 | 107 |
|
108 |
/******************************************************************************/ |
|
109 |
/* PERIPHERY ABSTRACTION LAYER (periphAL) */ |
|
110 |
/******************************************************************************/ |
|
111 |
|
|
112 |
#if defined(AMIROLLD_CFG_PERIPHAL_HEADER) |
|
113 |
#include AMIROLLD_CFG_PERIPHAL_HEADER |
|
114 |
#endif |
|
115 |
|
|
116 |
#include <periphAL.h> |
|
117 |
|
|
84 | 118 |
#endif /* AMIROLLD_H */ |
Also available in: Unified diff