Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Modules / PowerManagement_1-2 / Boot / iodef.h @ e687187f

History | View | Annotate | Download (4.159 KB)

1 a270d48f Thomas Schöpping
#ifndef IODEF_H
2
#define IODEF_H
3
4
#include "stm32f4xx.h"
5
#include "stm32f4xx_conf.h"
6
7
#define WKUP_GPIO               GPIOA
8
#define WKUP_PIN                GPIO_Pin_0
9
#define SWITCH_STATUS_N_GPIO    GPIOA
10
#define SWITCH_STATUS_N_PIN     GPIO_Pin_1
11
#define SYS_UART_TX_GPIO        GPIOA
12
#define SYS_UART_TX_PIN         GPIO_Pin_2
13
#define SYS_UART_RX_GPIO        GPIOA
14
#define SYS_UART_RX_PIN         GPIO_Pin_3
15
#define SYS_SPI_SS0_N_GPIO      GPIOA
16
#define SYS_SPI_SS0_N_PIN       GPIO_Pin_4
17
#define SYS_SPI_SCLK_GPIO       GPIOA
18
#define SYS_SPI_SCLK_PIN        GPIO_Pin_5
19
#define SYS_SPI_MISO_GPIO       GPIOA
20
#define SYS_SPI_MISO_PIN        GPIO_Pin_6
21
#define SYS_SPI_MOSI_GPIO       GPIOA
22
#define SYS_SPI_MOSI_PIN        GPIO_Pin_7
23
#define SYS_REG_EN_GPIO         GPIOA
24
#define SYS_REG_EN_PIN          GPIO_Pin_8
25
#define PROG_RX_GPIO            GPIOA
26
#define PROG_RX_PIN             GPIO_Pin_9
27
#define PROG_TX_GPIO            GPIOA
28
#define PROG_TX_PIN             GPIO_Pin_10
29
#define CAN_RX_GPIO             GPIOA
30
#define CAN_RX_PIN              GPIO_Pin_11
31
#define CAN_TX_GPIO             GPIOA
32
#define CAN_TX_PIN              GPIO_Pin_12
33
#define SWDIO_GPIO              GPIOA
34
#define SWDIO_PIN               GPIO_Pin_13
35
#define SWCLK_GPIO              GPIOA
36
#define SWCLK_PIN               GPIO_Pin_14
37
#define SYS_SPI_SS1_N_GPIO      GPIOA
38
#define SYS_SPI_SS1_N_PIN       GPIO_Pin_15
39
40
#define IR_INT1_N_GPIO          GPIOB
41
#define IR_INT1_N_PIN           GPIO_Pin_0
42
#define VSYS_SENSE_GPIO         GPIOB
43
#define VSYS_SENSE_PIN          GPIO_Pin_1
44
#define POWER_EN_GPIO           GPIOB
45
#define POWER_EN_PIN            GPIO_Pin_2
46
#define SYS_UART_DN_GPIO        GPIOB
47
#define SYS_UART_DN_PIN         GPIO_Pin_3
48
#define CHARGE_STAT2A_GPIO      GPIOB
49
#define CHARGE_STAT2A_PIN       GPIO_Pin_4
50
#define BUZZER_GPIO             GPIOB
51
#define BUZZER_PIN              GPIO_Pin_5
52
#define GAUGE_BATLOW2_GPIO      GPIOB
53
#define GAUGE_BATLOW2_PIN       GPIO_Pin_6
54
#define GAUGE_BATGD2_N_GPIO     GPIOB
55
#define GAUGE_BATGD2_N_PIN      GPIO_Pin_7
56
#define GAUGE_SCL2_GPIO         GPIOB
57
#define GAUGE_SCL2_PIN          GPIO_Pin_8
58
#define GAUGE_SDA2_GPIO         GPIOB
59
#define GAUGE_SDA2_PIN          GPIO_Pin_9
60
#define GAUGE_SCL1_GPIO         GPIOB
61
#define GAUGE_SCL1_PIN          GPIO_Pin_10
62
#define GAUGE_SDA1_GPIO         GPIOB
63
#define GAUGE_SDA1_PIN          GPIO_Pin_11
64
#define LED_GPIO                GPIOB
65
#define LED_PIN                 GPIO_Pin_12
66
#define BT_RTS_GPIO             GPIOB
67
#define BT_RTS_PIN              GPIO_Pin_13
68
#define BT_CTS_GPIO             GPIOB
69
#define BT_CTS_PIN              GPIO_Pin_14
70
#define SYS_UART_UP_GPIO        GPIOB
71
#define SYS_UART_UP_PIN         GPIO_Pin_15
72
73
#define CHARGE_STAT1A_GPIO      GPIOC
74
#define CHARGE_STAT1A_PIN       GPIO_Pin_0
75
#define GAUGE_BATLOW1_GPIO      GPIOC
76
#define GAUGE_BATLOW1_PIN       GPIO_Pin_1
77
#define GAUGE_BATGD1_N_GPIO     GPIOC
78
#define GAUGE_BATGD1_N_PIN      GPIO_Pin_2
79
#define CHARGE_EN1_N_GPIO       GPIOC
80
#define CHARGE_EN1_N_PIN        GPIO_Pin_3
81
#define IR_INT2_N_GPIO          GPIOC
82
#define IR_INT2_N_PIN           GPIO_Pin_4
83
#define TOUCH_INT_N_GPIO        GPIOC
84
#define TOUCH_INT_N_PIN         GPIO_Pin_5
85
#define SYS_DONE_GPIO           GPIOC
86
#define SYS_DONE_PIN            GPIO_Pin_6
87
#define SYS_PROG_N_GPIO         GPIOC
88
#define SYS_PROG_N_PIN          GPIO_Pin_7
89
#define PATH_DC_GPIO            GPIOC
90
#define PATH_DC_PIN             GPIO_Pin_8
91
#define SYS_SPI_DIR_GPIO        GPIOC
92
#define SYS_SPI_DIR_PIN         GPIO_Pin_9
93
#define BT_RX_GPIO              GPIOC
94
#define BT_RX_PIN               GPIO_Pin_10
95
#define BT_TX_GPIO              GPIOC
96
#define BT_TX_PIN               GPIO_Pin_11
97
#define SYS_SYNC_N_GPIO         GPIOC
98
#define SYS_SYNC_N_PIN          GPIO_Pin_12
99
#define SYS_PD_N_GPIO           GPIOC
100
#define SYS_PD_N_PIN            GPIO_Pin_13
101
#define SYS_WARMRST_N_GPIO      GPIOC
102
#define SYS_WARMRST_N_PIN       GPIO_Pin_14
103
#define BT_RST_GPIO             GPIOC
104
#define BT_RST_PIN              GPIO_Pin_15
105
106
#define OSC_IN_GPIO             GPIOD
107
#define OSC_IN_PIN              GPIO_Pin_0
108
#define OSC_OUT_GPIO            GPIOD
109
#define OSC_OUT_PIN             GPIO_Pin_1
110
#define CHARGE_EN2_N_GPIO       GPIOD
111
#define CHARGE_EN2_N_PIN        GPIO_Pin_2
112
113
#endif /* IODEF_H */