amiro-blt / Target / Modules / DiWheelDrive_1-2 / Boot / iodef.h @ e687187f
History | View | Annotate | Download (3.055 KB)
1 | c1f21a71 | Thomas Schöpping | #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 PROG_RX_GPIO GPIOA
|
||
16 | #define PROG_RX_PIN GPIO_Pin_9
|
||
17 | #define PROG_TX_GPIO GPIOA
|
||
18 | #define PROG_TX_PIN GPIO_Pin_10
|
||
19 | #define CAN_RX_GPIO GPIOA
|
||
20 | #define CAN_RX_PIN GPIO_Pin_11
|
||
21 | #define CAN_TX_GPIO GPIOA
|
||
22 | #define CAN_TX_PIN GPIO_Pin_12
|
||
23 | #define SWDIO_GPIO GPIOA
|
||
24 | #define SWDIO_PIN GPIO_Pin_13
|
||
25 | #define SWCLK_GPIO GPIOA
|
||
26 | #define SWCLK_PIN GPIO_Pin_14
|
||
27 | #define DRIVE_PWM2B_GPIO GPIOA
|
||
28 | #define DRIVE_PWM2B_PIN GPIO_Pin_15
|
||
29 | |||
30 | #define DRIVE_SENSE2_GPIO GPIOB
|
||
31 | #define DRIVE_SENSE2_PIN GPIO_Pin_1
|
||
32 | #define POWER_EN_GPIO GPIOB
|
||
33 | #define POWER_EN_PIN GPIO_Pin_2
|
||
34 | #define DRIVE_PWM2A_GPIO GPIOB
|
||
35 | #define DRIVE_PWM2A_PIN GPIO_Pin_3
|
||
36 | #define DRIVE_ENC1A_GPIO GPIOB
|
||
37 | #define DRIVE_ENC1A_PIN GPIO_Pin_6
|
||
38 | #define DRIVE_ENC1B_GPIO GPIOB
|
||
39 | #define DRIVE_ENC1B_PIN GPIO_Pin_7
|
||
40 | #define IMU_SCL_GPIO GPIOB
|
||
41 | #define IMU_SCL_PIN GPIO_Pin_8
|
||
42 | #define IMU_SDA_GPIO GPIOB
|
||
43 | #define IMU_SDA_PIN GPIO_Pin_9
|
||
44 | #define IR_SCL_GPIO GPIOB
|
||
45 | #define IR_SCL_PIN GPIO_Pin_10
|
||
46 | #define IR_SDA_GPIO GPIOB
|
||
47 | #define IR_SDA_PIN GPIO_Pin_11
|
||
48 | #define IR_INT_GPIO GPIOB
|
||
49 | #define IR_INT_PIN GPIO_Pin_12
|
||
50 | #define SYS_UART_UP_GPIO GPIOB
|
||
51 | #define SYS_UART_UP_PIN GPIO_Pin_14
|
||
52 | #define IMU_INT_GPIO GPIOB
|
||
53 | #define IMU_INT_PIN GPIO_Pin_15
|
||
54 | |||
55 | #define DRIVE_SENSE1_GPIO GPIOC
|
||
56 | #define DRIVE_SENSE1_PIN GPIO_Pin_0
|
||
57 | #define SYS_SYNC_N_GPIO GPIOC
|
||
58 | #define SYS_SYNC_N_PIN GPIO_Pin_1
|
||
59 | #define IMU_RESET_N_GPIO GPIOC
|
||
60 | #define IMU_RESET_N_PIN GPIO_Pin_2
|
||
61 | #define PATH_DCSTAT_GPIO GPIOC
|
||
62 | #define PATH_DCSTAT_PIN GPIO_Pin_3
|
||
63 | #define PATH_DCEN_GPIO GPIOC
|
||
64 | #define PATH_DCEN_PIN GPIO_Pin_5
|
||
65 | #define DRIVE_ENC2B_GPIO GPIOC
|
||
66 | #define DRIVE_ENC2B_PIN GPIO_Pin_6
|
||
67 | #define DRIVE_ENC2A_GPIO GPIOC
|
||
68 | #define DRIVE_ENC2A_PIN GPIO_Pin_7
|
||
69 | #define SYS_PD_N_GPIO GPIOC
|
||
70 | #define SYS_PD_N_PIN GPIO_Pin_8
|
||
71 | #define SYS_REG_EN_GPIO GPIOC
|
||
72 | #define SYS_REG_EN_PIN GPIO_Pin_9
|
||
73 | #define SYS_UART_RX_GPIO GPIOC
|
||
74 | #define SYS_UART_RX_PIN GPIO_Pin_10
|
||
75 | #define SYS_UART_TX_GPIO GPIOC
|
||
76 | #define SYS_UART_TX_PIN GPIO_Pin_11
|
||
77 | #define IMU_BOOT_LOAD_N_GPIO GPIOC
|
||
78 | #define IMU_BOOT_LOAD_N_PIN GPIO_Pin_12
|
||
79 | #define IMU_BL_IND_GPIO GPIOC
|
||
80 | #define IMU_BL_IND_PIN GPIO_Pin_14
|
||
81 | |||
82 | #define OSC_IN_GPIO GPIOD
|
||
83 | #define OSC_IN_PIN GPIO_Pin_0
|
||
84 | #define OSC_OUT_GPIO GPIOD
|
||
85 | #define OSC_OUT_PIN GPIO_Pin_1
|
||
86 | #define SYS_WARMRST_N_GPIO GPIOD
|
||
87 | #define SYS_WARMRST_N_PIN GPIO_Pin_2
|
||
88 | |||
89 | #endif /* IODEF_H */ |