diff options
Diffstat (limited to 'lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/portab.h')
-rw-r--r-- | lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/portab.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/portab.h b/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/portab.h new file mode 100644 index 000000000..5b6777a37 --- /dev/null +++ b/lib/chibios/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f107_goldbull/portab.h | |||
@@ -0,0 +1,75 @@ | |||
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_USB1 USBD1 | ||
33 | |||
34 | #define PORTAB_SDU1 SDU1 | ||
35 | |||
36 | #define PORTAB_BLINK_LED1 PAL_LINE(GPIOD, GPIOD_LED3) | ||
37 | |||
38 | /*===========================================================================*/ | ||
39 | /* Module pre-compile time settings. */ | ||
40 | /*===========================================================================*/ | ||
41 | |||
42 | /*===========================================================================*/ | ||
43 | /* Derived constants and error checks. */ | ||
44 | /*===========================================================================*/ | ||
45 | |||
46 | /*===========================================================================*/ | ||
47 | /* Module data structures and types. */ | ||
48 | /*===========================================================================*/ | ||
49 | |||
50 | /*===========================================================================*/ | ||
51 | /* Module macros. */ | ||
52 | /*===========================================================================*/ | ||
53 | |||
54 | /*===========================================================================*/ | ||
55 | /* External declarations. */ | ||
56 | /*===========================================================================*/ | ||
57 | |||
58 | extern const MMCConfig portab_mmccfg; | ||
59 | extern MMCDriver MMCD1; | ||
60 | |||
61 | #ifdef __cplusplus | ||
62 | extern "C" { | ||
63 | #endif | ||
64 | void portab_setup(void); | ||
65 | #ifdef __cplusplus | ||
66 | } | ||
67 | #endif | ||
68 | |||
69 | /*===========================================================================*/ | ||
70 | /* Module inline functions. */ | ||
71 | /*===========================================================================*/ | ||
72 | |||
73 | #endif /* PORTAB_H */ | ||
74 | |||
75 | /** @} */ | ||