summaryrefslogtreecommitdiff
path: root/chip/stm32/usart-stm32f3.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/usart-stm32f3.h')
-rw-r--r--chip/stm32/usart-stm32f3.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chip/stm32/usart-stm32f3.h b/chip/stm32/usart-stm32f3.h
new file mode 100644
index 0000000000..ebf972aab9
--- /dev/null
+++ b/chip/stm32/usart-stm32f3.h
@@ -0,0 +1,20 @@
+/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef CHIP_STM32_USART_STM32F3_H
+#define CHIP_STM32_USART_STM32F3_H
+
+#include "usart.h"
+
+#define STM32_USARTS_MAX 3
+
+/*
+ * The STM32F3 series can have as many as three UARTS. These are the HW configs
+ * for those UARTS. They can be used to initialize STM32 generic UART configs.
+ */
+extern struct usart_hw_config const usart1_hw;
+extern struct usart_hw_config const usart2_hw;
+extern struct usart_hw_config const usart3_hw;
+
+#endif /* CHIP_STM32_USART_STM32F3_H */