diff options
Diffstat (limited to 'lib/chibios/os/hal/templates/hal_lld.h')
-rw-r--r-- | lib/chibios/os/hal/templates/hal_lld.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/templates/hal_lld.h b/lib/chibios/os/hal/templates/hal_lld.h new file mode 100644 index 000000000..e30cbd169 --- /dev/null +++ b/lib/chibios/os/hal/templates/hal_lld.h | |||
@@ -0,0 +1,82 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /** | ||
18 | * @file hal_lld.h | ||
19 | * @brief PLATFORM HAL subsystem low level driver header. | ||
20 | * | ||
21 | * @addtogroup HAL | ||
22 | * @{ | ||
23 | */ | ||
24 | |||
25 | #ifndef _HAL_LLD_H_ | ||
26 | #define _HAL_LLD_H_ | ||
27 | |||
28 | /*===========================================================================*/ | ||
29 | /* Driver constants. */ | ||
30 | /*===========================================================================*/ | ||
31 | |||
32 | /** | ||
33 | * @name Platform identification macros | ||
34 | * @{ | ||
35 | */ | ||
36 | #define PLATFORM_NAME "templates" | ||
37 | /** @} */ | ||
38 | |||
39 | /*===========================================================================*/ | ||
40 | /* Driver pre-compile time settings. */ | ||
41 | /*===========================================================================*/ | ||
42 | |||
43 | /** | ||
44 | * @name PLATFORM configuration options | ||
45 | * @{ | ||
46 | */ | ||
47 | /** @} */ | ||
48 | |||
49 | /*===========================================================================*/ | ||
50 | /* Derived constants and error checks. */ | ||
51 | /*===========================================================================*/ | ||
52 | |||
53 | /* | ||
54 | * Configuration-related checks. | ||
55 | */ | ||
56 | #if !defined(PLATFORM_MCUCONF) | ||
57 | #error "Using a wrong mcuconf.h file, PLATFORM_MCUCONF not defined" | ||
58 | #endif | ||
59 | |||
60 | /*===========================================================================*/ | ||
61 | /* Driver data structures and types. */ | ||
62 | /*===========================================================================*/ | ||
63 | |||
64 | /*===========================================================================*/ | ||
65 | /* Driver macros. */ | ||
66 | /*===========================================================================*/ | ||
67 | |||
68 | /*===========================================================================*/ | ||
69 | /* External declarations. */ | ||
70 | /*===========================================================================*/ | ||
71 | |||
72 | #ifdef __cplusplus | ||
73 | extern "C" { | ||
74 | #endif | ||
75 | void hal_lld_init(void); | ||
76 | #ifdef __cplusplus | ||
77 | } | ||
78 | #endif | ||
79 | |||
80 | #endif /* _HAL_LLD_H_ */ | ||
81 | |||
82 | /** @} */ | ||