diff options
Diffstat (limited to 'lib/chibios/os/hal/templates/hal_pal_lld.c')
-rw-r--r-- | lib/chibios/os/hal/templates/hal_pal_lld.c | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/templates/hal_pal_lld.c b/lib/chibios/os/hal/templates/hal_pal_lld.c new file mode 100644 index 000000000..00d1aca97 --- /dev/null +++ b/lib/chibios/os/hal/templates/hal_pal_lld.c | |||
@@ -0,0 +1,85 @@ | |||
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_pal_lld.c | ||
19 | * @brief PLATFORM PAL subsystem low level driver source. | ||
20 | * | ||
21 | * @addtogroup PAL | ||
22 | * @{ | ||
23 | */ | ||
24 | |||
25 | #include "hal.h" | ||
26 | |||
27 | #if (HAL_USE_PAL == TRUE) || defined(__DOXYGEN__) | ||
28 | |||
29 | /*===========================================================================*/ | ||
30 | /* Driver local definitions. */ | ||
31 | /*===========================================================================*/ | ||
32 | |||
33 | /*===========================================================================*/ | ||
34 | /* Driver exported variables. */ | ||
35 | /*===========================================================================*/ | ||
36 | |||
37 | /*===========================================================================*/ | ||
38 | /* Driver local variables and types. */ | ||
39 | /*===========================================================================*/ | ||
40 | |||
41 | /*===========================================================================*/ | ||
42 | /* Driver local functions. */ | ||
43 | /*===========================================================================*/ | ||
44 | |||
45 | /*===========================================================================*/ | ||
46 | /* Driver interrupt handlers. */ | ||
47 | /*===========================================================================*/ | ||
48 | |||
49 | /*===========================================================================*/ | ||
50 | /* Driver exported functions. */ | ||
51 | /*===========================================================================*/ | ||
52 | |||
53 | /** | ||
54 | * @brief STM32 I/O ports configuration. | ||
55 | * | ||
56 | * @notapi | ||
57 | */ | ||
58 | void _pal_lld_init(void) { | ||
59 | |||
60 | } | ||
61 | |||
62 | /** | ||
63 | * @brief Pads mode setup. | ||
64 | * @details This function programs a pads group belonging to the same port | ||
65 | * with the specified mode. | ||
66 | * | ||
67 | * @param[in] port the port identifier | ||
68 | * @param[in] mask the group mask | ||
69 | * @param[in] mode the mode | ||
70 | * | ||
71 | * @notapi | ||
72 | */ | ||
73 | void _pal_lld_setgroupmode(ioportid_t port, | ||
74 | ioportmask_t mask, | ||
75 | iomode_t mode) { | ||
76 | |||
77 | (void)port; | ||
78 | (void)mask; | ||
79 | (void)mode; | ||
80 | |||
81 | } | ||
82 | |||
83 | #endif /* HAL_USE_PAL == TRUE */ | ||
84 | |||
85 | /** @} */ | ||