aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-10-21 18:48:24 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-10-21 18:48:24 +0000
commitb3fe2fa43b91e429c8a600e5a3e6d2ec7d9bb4b1 (patch)
tree6010c7ad5bc7165faf897d6f747fc55ee6aebf41 /demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h
parent368d449f4200ee44b2f942cbc978449d9fdd1db9 (diff)
downloadChibiOS-b3fe2fa43b91e429c8a600e5a3e6d2ec7d9bb4b1.tar.gz
ChibiOS-b3fe2fa43b91e429c8a600e5a3e6d2ec7d9bb4b1.tar.bz2
ChibiOS-b3fe2fa43b91e429c8a600e5a3e6d2ec7d9bb4b1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12385 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h')
-rw-r--r--demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h
new file mode 100644
index 000000000..078f271e2
--- /dev/null
+++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f407_olimex/portab.h
@@ -0,0 +1,72 @@
+/*
+ ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+/**
+ * @file portab.h
+ * @brief Application portability macros and structures.
+ *
+ * @addtogroup application_portability
+ * @{
+ */
+
+#ifndef PORTAB_H
+#define PORTAB_H
+
+/*===========================================================================*/
+/* Module constants. */
+/*===========================================================================*/
+
+#define PORTAB_USB1 USBD1
+
+#define PORTAB_SDU1 SDU1
+
+#define PORTAB_BLINK_LED1 LINE_LED
+
+/*===========================================================================*/
+/* Module pre-compile time settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module data structures and types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module macros. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* External declarations. */
+/*===========================================================================*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void portab_setup(void);
+#ifdef __cplusplus
+}
+#endif
+
+/*===========================================================================*/
+/* Module inline functions. */
+/*===========================================================================*/
+
+#endif /* PORTAB_H */
+
+/** @} */