aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/testhal/TIVA/multi/PAL/cfg/tm4c123g_launchpad/portab.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/testhal/TIVA/multi/PAL/cfg/tm4c123g_launchpad/portab.h')
-rw-r--r--lib/chibios-contrib/testhal/TIVA/multi/PAL/cfg/tm4c123g_launchpad/portab.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/TIVA/multi/PAL/cfg/tm4c123g_launchpad/portab.h b/lib/chibios-contrib/testhal/TIVA/multi/PAL/cfg/tm4c123g_launchpad/portab.h
new file mode 100644
index 000000000..8e62cee33
--- /dev/null
+++ b/lib/chibios-contrib/testhal/TIVA/multi/PAL/cfg/tm4c123g_launchpad/portab.h
@@ -0,0 +1,74 @@
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 portab.h
19 * @brief Application portability macros and structures.
20 *
21 * @addtogroup application_portability
22 * @{
23 */
24
25#ifndef PORTAB_H
26#define PORTAB_H
27
28/*===========================================================================*/
29/* Module constants. */
30/*===========================================================================*/
31
32#define PORTAB_LINE_LED1 LINE_LED_RED
33#define PORTAB_LINE_LED2 LINE_LED_BLUE
34#define PORTAB_LED_OFF PAL_LOW
35#define PORTAB_LED_ON PAL_HIGH
36
37#define PORTAB_LINE_BUTTON LINE_SW1
38#define PORTAB_BUTTON_PRESSED PAL_LOW
39
40/*===========================================================================*/
41/* Module pre-compile time settings. */
42/*===========================================================================*/
43
44/*===========================================================================*/
45/* Derived constants and error checks. */
46/*===========================================================================*/
47
48/*===========================================================================*/
49/* Module data structures and types. */
50/*===========================================================================*/
51
52/*===========================================================================*/
53/* Module macros. */
54/*===========================================================================*/
55
56/*===========================================================================*/
57/* External declarations. */
58/*===========================================================================*/
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
64#ifdef __cplusplus
65}
66#endif
67
68/*===========================================================================*/
69/* Module inline functions. */
70/*===========================================================================*/
71
72#endif /* PORTAB_H */
73
74/** @} */