Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Modules / LightRing_1-2 / Boot / iodef.h @ 15d336cf

History | View | Annotate | Download (3.331 KB)

1 fc7151bb Thomas Schöpping
#ifndef IODEF_H
2
#define IODEF_H
3
4
#include "stm32f10x.h"
5
#include "stm32f10x_conf.h"
6
7
#define USART_CTS_GPIO      GPIOA
8
#define USART_CTS_PIN       GPIO_Pin_0
9
#define USART_RTS_GPIO      GPIOA
10
#define USART_RTS_PIN       GPIO_Pin_1
11
#define USART_TX_GPIO       GPIOA
12
#define USART_TX_PIN        GPIO_Pin_2
13
#define USART_RX_GPIO       GPIOA
14
#define USART_RX_PIN        GPIO_Pin_3
15
#define LIGHT_BLANK_GPIO    GPIOA
16
#define LIGHT_BLANK_PIN     GPIO_Pin_4
17
#define LIGHT_SCLK_GPIO     GPIOA
18
#define LIGHT_SCLK_PIN      GPIO_Pin_5
19
#define LIGHT_MISO_GPIO     GPIOA
20
#define LIGHT_MISO_PIN      GPIO_Pin_6
21
#define LIGHT_MOSI_GPIO     GPIOA
22
#define LIGHT_MOSI_PIN      GPIO_Pin_7
23
#define PROG_RX_GPIO        GPIOA
24
#define PROG_RX_PIN         GPIO_Pin_9
25
#define PROG_TX_GPIO        GPIOA
26
#define PROG_TX_PIN         GPIO_Pin_10
27
#define CAN_RX_GPIO         GPIOA
28
#define CAN_RX_PIN          GPIO_Pin_11
29
#define CAN_TX_GPIO         GPIOA
30
#define CAN_TX_PIN          GPIO_Pin_12
31
#define SWDIO_GPIO          GPIOA
32
#define SWDIO_PIN           GPIO_Pin_13
33
#define SWCLK_GPIO          GPIOA
34
#define SWCLK_PIN           GPIO_Pin_14
35
#define RS232_R_EN_N_GPIO   GPIOA
36
#define RS232_R_EN_N_PIN    GPIO_Pin_15
37
38
#define SW_V33_EN_GPIO      GPIOB
39
#define SW_V33_EN_PIN       GPIO_Pin_0
40
#define SW_V42_EN_GPIO      GPIOB
41
#define SW_V42_EN_PIN       GPIO_Pin_1
42
#define SW_V50_EN_GPIO      GPIOB
43
#define SW_V50_EN_PIN       GPIO_Pin_2
44
#define IO_3_GPIO           GPIOB
45
#define IO_3_PIN            GPIO_Pin_3
46
#define IO_5_GPIO           GPIOB
47
#define IO_5_PIN            GPIO_Pin_4
48
#define IO_6_GPIO           GPIOB
49
#define IO_6_PIN            GPIO_Pin_5
50
#define SYS_UART_DN_GPIO    GPIOB
51
#define SYS_UART_DN_PIN     GPIO_Pin_6
52
#define IO_7_GPIO           GPIOB
53
#define IO_7_PIN            GPIO_Pin_8
54
#define IO_8_GPIO           GPIOB
55
#define IO_8_PIN            GPIO_Pin_9
56
#define I2C_SCL_GPIO        GPIOB
57
#define I2C_SCL_PIN         GPIO_Pin_10
58
#define I2C_SDA_GPIO        GPIOB
59
#define I2C_SDA_PIN         GPIO_Pin_11
60
#define SPI_SS_N_GPIO       GPIOB
61
#define SPI_SS_N_PIN        GPIO_Pin_12
62
#define SPI_SCLK_GPIO       GPIOB
63
#define SPI_SCLK_PIN        GPIO_Pin_13
64
#define SPI_MISO_GPIO       GPIOB
65
#define SPI_MISO_PIN        GPIO_Pin_14
66
#define SPI_MOSI_GPIO       GPIOB
67
#define SPI_MOSI_PIN        GPIO_Pin_15
68
69
#define IO_4_GPIO           GPIOC
70
#define IO_4_PIN            GPIO_Pin_0
71
#define IO_1_GPIO           GPIOC
72
#define IO_1_PIN            GPIO_Pin_1
73
#define IO_2_GPIO           GPIOC
74
#define IO_2_PIN            GPIO_Pin_2
75
#define LED_GPIO            GPIOC
76
#define LED_PIN             GPIO_Pin_3
77
#define LIGHT_XLAT_GPIO     GPIOC
78
#define LIGHT_XLAT_PIN      GPIO_Pin_4
79
#define SW_V18_EN_GPIO      GPIOC
80
#define SW_V18_EN_PIN       GPIO_Pin_5
81
#define SW_VSYS_EN_GPIO     GPIOC
82
#define SW_VSYS_EN_PIN      GPIO_Pin_6
83
#define SYS_UART_UP_GPIO    GPIOC
84
#define SYS_UART_UP_PIN     GPIO_Pin_7
85
#define SYS_UART_RX_GPIO    GPIOC
86
#define SYS_UART_RX_PIN     GPIO_Pin_10
87
#define SYS_UART_TX_GPIO    GPIOC
88
#define SYS_UART_TX_PIN     GPIO_Pin_11
89
#define RS232_D_OFF_N_GPIO  GPIOC
90
#define RS232_D_OFF_N_PIN   GPIO_Pin_12
91
#define SYS_PD_N_GPIO       GPIOC
92
#define SYS_PD_N_PIN        GPIO_Pin_14
93
94
#define OSC_IN_GPIO         GPIOD
95
#define OSC_IN_PIN          GPIO_Pin_0
96
#define OSC_OUT_GPIO        GPIOD
97
#define OSC_OUT_PIN         GPIO_Pin_1
98
#define SYS_SYNC_N_GPIO     GPIOD
99
#define SYS_SYNC_N_PIN      GPIO_Pin_2
100
101
#endif /* IODEF_H */