source: rtems/c/src/lib/libbsp/arm/stm32f4/startup/start-config-io.c @ 78c9fe8

5
Last change on this file since 78c9fe8 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 * Copyright (c) 2012 Sebastian Huber.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp/io.h>
16#include <bsp.h>
17
18const stm32f4_gpio_config stm32f4_start_config_gpio [] = {
19#ifdef STM32F4_FAMILY_F4XXXX
20  #ifdef STM32F4_ENABLE_USART_1
21    STM32F4_PIN_USART1_TX_PA9,
22    STM32F4_PIN_USART1_RX_PA10,
23  #endif
24  #ifdef STM32F4_ENABLE_USART_2
25    STM32F4_PIN_USART2_TX_PA2,
26    STM32F4_PIN_USART2_RX_PA3,
27  #endif
28  #ifdef STM32F4_ENABLE_USART_3
29    STM32F4_PIN_USART3_TX_PD8,
30    STM32F4_PIN_USART3_RX_PD9,
31  #endif
32  #ifdef STM32F4_ENABLE_UART_4
33    STM32F4_PIN_UART4_TX_PA0,
34    STM32F4_PIN_UART4_RX_PA1,
35  #endif
36  #ifdef STM32F4_ENABLE_UART_5
37    STM32F4_PIN_UART5_TX_PC12,
38    STM32F4_PIN_UART5_RX_PD2,
39  #endif
40  #ifdef STM32F4_ENABLE_USART_6
41    STM32F4_PIN_USART6_TX_PC6,
42    STM32F4_PIN_USART6_RX_PC7,
43  #endif
44  #ifdef STM32F4_ENABLE_I2C1
45    #error Not implemented.
46  #endif
47  #ifdef STM32F4_ENABLE_I2C2
48    #error Not implemented.
49  #endif
50#endif /* STM32F4_FAMILY_F4XXXX */
51#ifdef STM32F4_FAMILY_F10XXX
52  #ifdef STM32F4_ENABLE_USART_1
53    STM32F4_PIN_USART1_TX_MAP_0,
54    STM32F4_PIN_USART1_RX_MAP_0,
55  #endif
56  #ifdef STM32F4_ENABLE_USART_2
57    STM32F4_PIN_USART2_TX_MAP_0,
58    STM32F4_PIN_USART2_RX_MAP_0,
59  #endif
60  #ifdef STM32F4_ENABLE_USART_3
61    STM32F4_PIN_USART3_TX_MAP_0,
62    STM32F4_PIN_USART3_RX_MAP_0,
63  #endif
64  #ifdef STM32F4_ENABLE_UART_4
65    STM32F4_PIN_UART4_TX,
66    STM32F4_PIN_UART4_RX,
67  #endif
68  #ifdef STM32F4_ENABLE_UART_5
69    STM32F4_PIN_UART5_TX,
70    STM32F4_PIN_UART5_RX,
71  #endif
72  #ifdef STM32F4_ENABLE_USART_6
73    #error STM32F10XXX has no USART 6
74  #endif
75  #ifdef STM32F4_ENABLE_I2C1
76    STM32F4_PIN_I2C1_SCL_MAP0,
77    STM32F4_PIN_I2C1_SDA_MAP0,
78  #endif
79  #ifdef STM32F4_ENABLE_I2C2
80    STM32F4_PIN_I2C2_SCL,
81    STM32F4_PIN_I2C2_SDA,
82  #endif
83#endif /* STM32F4_FAMILY_F10XXX */
84  STM32F4_GPIO_CONFIG_TERMINAL
85};
Note: See TracBrowser for help on using the repository browser.