Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Modules / PowerManagement_1-1 / Boot / iodef.h @ 93933a75

History | View | Annotate | Download (4.08 KB)

1
#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 SYS_UART_TX_GPIO        GPIOA
10
#define SYS_UART_TX_PIN         GPIO_Pin_2
11
#define SYS_UART_RX_GPIO        GPIOA
12
#define SYS_UART_RX_PIN         GPIO_Pin_3
13
#define SYS_SPI_SS0_N_GPIO      GPIOA
14
#define SYS_SPI_SS0_N_PIN       GPIO_Pin_4
15
#define SYS_SPI_SCLK_GPIO       GPIOA
16
#define SYS_SPI_SCLK_PIN        GPIO_Pin_5
17
#define SYS_SPI_MISO_GPIO       GPIOA
18
#define SYS_SPI_MISO_PIN        GPIO_Pin_6
19
#define SYS_SPI_MOSI_GPIO       GPIOA
20
#define SYS_SPI_MOSI_PIN        GPIO_Pin_7
21
#define SYS_REG_EN_GPIO         GPIOA
22
#define SYS_REG_EN_PIN          GPIO_Pin_8
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 SYS_SPI_SS1_N_GPIO      GPIOA
36
#define SYS_SPI_SS1_N_PIN       GPIO_Pin_15
37

    
38
#define IR_INT1_N_GPIO          GPIOB
39
#define IR_INT1_N_PIN           GPIO_Pin_0
40
#define VSYS_SENSE_GPIO         GPIOB
41
#define VSYS_SENSE_PIN          GPIO_Pin_1
42
#define POWER_EN_GPIO           GPIOB
43
#define POWER_EN_PIN            GPIO_Pin_2
44
#define SYS_UART_DN_GPIO        GPIOB
45
#define SYS_UART_DN_PIN         GPIO_Pin_3
46
#define CHARGE_STAT2A_GPIO      GPIOB
47
#define CHARGE_STAT2A_PIN       GPIO_Pin_4
48
#define BUZZER_GPIO             GPIOB
49
#define BUZZER_PIN              GPIO_Pin_5
50
#define GAUGE_BATLOW2_GPIO      GPIOB
51
#define GAUGE_BATLOW2_PIN       GPIO_Pin_6
52
#define GAUGE_BATGD2_N_GPIO     GPIOB
53
#define GAUGE_BATGD2_N_PIN      GPIO_Pin_7
54
#define GAUGE_SCL2_GPIO         GPIOB
55
#define GAUGE_SCL2_PIN          GPIO_Pin_8
56
#define GAUGE_SDA2_GPIO         GPIOB
57
#define GAUGE_SDA2_PIN          GPIO_Pin_9
58
#define GAUGE_SCL1_GPIO         GPIOB
59
#define GAUGE_SCL1_PIN          GPIO_Pin_10
60
#define GAUGE_SDA1_GPIO         GPIOB
61
#define GAUGE_SDA1_PIN          GPIO_Pin_11
62
#define LED_GPIO                GPIOB
63
#define LED_PIN                 GPIO_Pin_12
64
#define BT_RTS_GPIO             GPIOB
65
#define BT_RTS_PIN              GPIO_Pin_13
66
#define BT_CTS_GPIO             GPIOB
67
#define BT_CTS_PIN              GPIO_Pin_14
68
#define SYS_UART_UP_GPIO        GPIOB
69
#define SYS_UART_UP_PIN         GPIO_Pin_15
70

    
71
#define CHARGE_STAT1A_GPIO      GPIOC
72
#define CHARGE_STAT1A_PIN       GPIO_Pin_0
73
#define GAUGE_BATLOW1_GPIO      GPIOC
74
#define GAUGE_BATLOW1_PIN       GPIO_Pin_1
75
#define GAUGE_BATGD1_N_GPIO     GPIOC
76
#define GAUGE_BATGD1_N_PIN      GPIO_Pin_2
77
#define CHARGE_EN1_N_GPIO       GPIOC
78
#define CHARGE_EN1_N_PIN        GPIO_Pin_3
79
#define IR_INT2_N_GPIO          GPIOC
80
#define IR_INT2_N_PIN           GPIO_Pin_4
81
#define TOUCH_INT_N_GPIO        GPIOC
82
#define TOUCH_INT_N_PIN         GPIO_Pin_5
83
#define SYS_DONE_GPIO           GPIOC
84
#define SYS_DONE_PIN            GPIO_Pin_6
85
#define SYS_PROG_N_GPIO         GPIOC
86
#define SYS_PROG_N_PIN          GPIO_Pin_7
87
#define PATH_DC_GPIO            GPIOC
88
#define PATH_DC_PIN             GPIO_Pin_8
89
#define SYS_SPI_DIR_GPIO        GPIOC
90
#define SYS_SPI_DIR_PIN         GPIO_Pin_9
91
#define BT_RX_GPIO              GPIOC
92
#define BT_RX_PIN               GPIO_Pin_10
93
#define BT_TX_GPIO              GPIOC
94
#define BT_TX_PIN               GPIO_Pin_11
95
#define SYS_SYNC_N_GPIO         GPIOC
96
#define SYS_SYNC_N_PIN          GPIO_Pin_12
97
#define SYS_PD_N_GPIO           GPIOC
98
#define SYS_PD_N_PIN            GPIO_Pin_13
99
#define SYS_WARMRST_N_GPIO      GPIOC
100
#define SYS_WARMRST_N_PIN       GPIO_Pin_14
101
#define BT_RST_GPIO             GPIOC
102
#define BT_RST_PIN              GPIO_Pin_15
103

    
104
#define OSC_IN_GPIO             GPIOD
105
#define OSC_IN_PIN              GPIO_Pin_0
106
#define OSC_OUT_GPIO            GPIOD
107
#define OSC_OUT_PIN             GPIO_Pin_1
108
#define CHARGE_EN2_N_GPIO       GPIOD
109
#define CHARGE_EN2_N_PIN        GPIO_Pin_2
110

    
111
#endif /* IODEF_H */