amiro-blt / Target / Modules / DiWheelDrive_1-1 / Boot / iodef.h @ fd101c41
History | View | Annotate | Download (3.188 KB)
1 |
#ifndef IODEF_H
|
---|---|
2 |
#define IODEF_H
|
3 |
|
4 |
#include "stm32f10x.h" |
5 |
#include "stm32f10x_conf.h" |
6 |
|
7 |
#define WKUP_GPIO GPIOA
|
8 |
#define WKUP_PIN GPIO_Pin_0
|
9 |
#define LED_GPIO GPIOA
|
10 |
#define LED_PIN GPIO_Pin_1
|
11 |
#define DRIVE_PWM1A_GPIO GPIOA
|
12 |
#define DRIVE_PWM1A_PIN GPIO_Pin_2
|
13 |
#define DRIVE_PWM1B_GPIO GPIOA
|
14 |
#define DRIVE_PWM1B_PIN GPIO_Pin_3
|
15 |
#define MOTION_SCLK_GPIO GPIOA
|
16 |
#define MOTION_SCLK_PIN GPIO_Pin_5
|
17 |
#define MOTION_MISO_GPIO GPIOA
|
18 |
#define MOTION_MISO_PIN GPIO_Pin_6
|
19 |
#define MOTION_MOSI_GPIO GPIOA
|
20 |
#define MOTION_MOSI_PIN GPIO_Pin_7
|
21 |
#define PROG_RX_GPIO GPIOA
|
22 |
#define PROG_RX_PIN GPIO_Pin_9
|
23 |
#define PROG_TX_GPIO GPIOA
|
24 |
#define PROG_TX_PIN GPIO_Pin_10
|
25 |
#define CAN_RX_GPIO GPIOA
|
26 |
#define CAN_RX_PIN GPIO_Pin_11
|
27 |
#define CAN_TX_GPIO GPIOA
|
28 |
#define CAN_TX_PIN GPIO_Pin_12
|
29 |
#define SWDIO_GPIO GPIOA
|
30 |
#define SWDIO_PIN GPIO_Pin_13
|
31 |
#define SWCLK_GPIO GPIOA
|
32 |
#define SWCLK_PIN GPIO_Pin_14
|
33 |
#define DRIVE_PWM2B_GPIO GPIOA
|
34 |
#define DRIVE_PWM2B_PIN GPIO_Pin_15
|
35 |
|
36 |
#define DRIVE_SENSE2_GPIO GPIOB
|
37 |
#define DRIVE_SENSE2_PIN GPIO_Pin_1
|
38 |
#define POWER_EN_GPIO GPIOB
|
39 |
#define POWER_EN_PIN GPIO_Pin_2
|
40 |
#define DRIVE_PWM2A_GPIO GPIOB
|
41 |
#define DRIVE_PWM2A_PIN GPIO_Pin_3
|
42 |
#define COMPASS_DRDY_GPIO GPIOB
|
43 |
#define COMPASS_DRDY_PIN GPIO_Pin_5
|
44 |
#define DRIVE_ENC1A_GPIO GPIOB
|
45 |
#define DRIVE_ENC1A_PIN GPIO_Pin_6
|
46 |
#define DRIVE_ENC1B_GPIO GPIOB
|
47 |
#define DRIVE_ENC1B_PIN GPIO_Pin_7
|
48 |
#define COMPASS_SCL_GPIO GPIOB
|
49 |
#define COMPASS_SCL_PIN GPIO_Pin_8
|
50 |
#define COMPASS_SDA_GPIO GPIOB
|
51 |
#define COMPASS_SDA_PIN GPIO_Pin_9
|
52 |
#define IR_SCL_GPIO GPIOB
|
53 |
#define IR_SCL_PIN GPIO_Pin_10
|
54 |
#define IR_SDA_GPIO GPIOB
|
55 |
#define IR_SDA_PIN GPIO_Pin_11
|
56 |
#define IR_INT_GPIO GPIOB
|
57 |
#define IR_INT_PIN GPIO_Pin_12
|
58 |
#define GYRP_DRDY_GPIO GPIOB
|
59 |
#define GYRO_DRDY_PIN GPIO_Pin_13
|
60 |
#define SYS_UART_UP_GPIO GPIOB
|
61 |
#define SYS_UART_UP_PIN GPIO_Pin_14
|
62 |
#define ACCEL_INT_N_GPIO GPIOB
|
63 |
#define ACCEL_INT_N_PIN GPIO_Pin_15
|
64 |
|
65 |
#define DRIVE_SENSE1_GPIO GPIOC
|
66 |
#define DRIVE_SENSE1_PIN GPIO_Pin_0
|
67 |
#define SYS_SYNC_N_GPIO GPIOC
|
68 |
#define SYS_SYNC_N_PIN GPIO_Pin_1
|
69 |
#define PATH_DCSTAT_GPIO GPIOC
|
70 |
#define PATH_DCSTAT_PIN GPIO_Pin_3
|
71 |
#define PATH_DCEN_GPIO GPIOC
|
72 |
#define PATH_DCEN_PIN GPIO_Pin_5
|
73 |
#define DRIVE_ENC2B_GPIO GPIOC
|
74 |
#define DRIVE_ENC2B_PIN GPIO_Pin_6
|
75 |
#define DRIVE_ENC2A_GPIO GPIOC
|
76 |
#define DRIVE_ENC2A_PIN GPIO_Pin_7
|
77 |
#define SYS_PD_N_GPIO GPIOC
|
78 |
#define SYS_PD_N_PIN GPIO_Pin_8
|
79 |
#define SYS_REG_EN_GPIO GPIOC
|
80 |
#define SYS_REG_EN_PIN GPIO_Pin_9
|
81 |
#define SYS_UART_RX_GPIO GPIOC
|
82 |
#define SYS_UART_RX_PIN GPIO_Pin_10
|
83 |
#define SYS_UART_TX_GPIO GPIOC
|
84 |
#define SYS_UART_TX_PIN GPIO_Pin_11
|
85 |
#define ACCEL_SS_N_GPIO GPIOC
|
86 |
#define ACCEL_SS_N_PIN GPIO_Pin_13
|
87 |
#define GYRO_SS_N_GPIO GPIOC
|
88 |
#define GYRO_SS_N_PIN GPIO_Pin_14
|
89 |
|
90 |
#define OSC_IN_GPIO GPIOD
|
91 |
#define OSC_IN_PIN GPIO_Pin_0
|
92 |
#define OSC_OUT_GPIO GPIOD
|
93 |
#define OSC_OUT_PIN GPIO_Pin_1
|
94 |
#define SYS_WARMRST_N_GPIO GPIOD
|
95 |
#define SYS_WARMRST_N_PIN GPIO_Pin_2
|
96 |
|
97 |
#endif /* IODEF_H */ |