aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-08-31 10:55:45 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-08-31 10:55:45 +0000
commit16418339cb7b92471dcb7f6ad431519345c9fd1a (patch)
treef4b2176c63b4b9d5cc323ec3cae1b2bd77de80db /testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h
parent54e898222e03eb2741776e7d072aac33f9838a96 (diff)
downloadChibiOS-16418339cb7b92471dcb7f6ad431519345c9fd1a.tar.gz
ChibiOS-16418339cb7b92471dcb7f6ad431519345c9fd1a.tar.bz2
ChibiOS-16418339cb7b92471dcb7f6ad431519345c9fd1a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10510 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h')
-rw-r--r--testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h b/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h
new file mode 100644
index 000000000..ac509cc13
--- /dev/null
+++ b/testhal/STM32/multi/USB_CDC/cfg-stm32f303_discovery/portab.h
@@ -0,0 +1,79 @@
+/*
+ ChibiOS - Copyright (C) 2006..2016 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_LED3_RED
+
+/*===========================================================================*/
+/* Module pre-compile time settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module data structures and types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module macros. */
+/*===========================================================================*/
+
+/*
+ * DP resistor control is not possible on the STM32F3-Discovery, using stubs
+ * for the connection macros.
+ */
+#define usb_lld_connect_bus(usbp)
+#define usb_lld_disconnect_bus(usbp)
+
+/*===========================================================================*/
+/* External declarations. */
+/*===========================================================================*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+/*===========================================================================*/
+/* Module inline functions. */
+/*===========================================================================*/
+
+#endif /* PORTAB_H */
+
+/** @} */