-
Notifications
You must be signed in to change notification settings - Fork 238
/
chip.h
executable file
·90 lines (62 loc) · 1.99 KB
/
chip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef _CHIP_OPENCR_F7xx_
#define _CHIP_OPENCR_F7xx_
#include <stdbool.h>
#include "bsp.h"
#include "hw.h"
#define USE_SPI1
#define USE_SPI2
#define USE_SPI4
#define BOARD_NR_I2C 2
#define HAL_I2C1 I2C1
#define HAL_I2C2 I2C2
#define HAL_I2C3 I2C3
#define PIN_SPI_SS 10
#define PIN_SPI_MOSI 11
#define PIN_SPI_MISO 12
#define PIN_SPI_SCK 13
static const uint8_t SS = PIN_SPI_SS;
static const uint8_t MOSI = PIN_SPI_MOSI;
static const uint8_t MISO = PIN_SPI_MISO;
static const uint8_t SCK = PIN_SPI_SCK;
#define BOARD_NR_ADC_PINS 5
#define BOARD_NR_PWM_PINS 12
#define LED_BUILTIN 13
#define BDPIN_LED_USER_1 22
#define BDPIN_LED_USER_2 23
#define BDPIN_LED_USER_3 24
#define BDPIN_LED_USER_4 25
#define BDPIN_DIP_SW_1 26
#define BDPIN_DIP_SW_2 27
#define BDPIN_SPI_CS_IMU 28
#define BDPIN_BAT_PWR_ADC 29
#define BDPIN_BUZZER 31
#define BDPIN_DXL_PWR_EN 32
#define BDPIN_PUSH_SW_1 34
#define BDPIN_PUSH_SW_2 35
#define BDPIN_LED_STATUS 36
#define BDPIN_SPI_CLK_IMU 37
#define BDPIN_SPI_SDO_IMU 38
#define BDPIN_SPI_SDI_IMU 39
#define BDPIN_GPIO_1 50
#define BDPIN_GPIO_2 51
#define BDPIN_GPIO_3 52
#define BDPIN_GPIO_4 53
#define BDPIN_GPIO_5 54
#define BDPIN_GPIO_6 55
#define BDPIN_GPIO_7 56
#define BDPIN_GPIO_8 57
#define BDPIN_GPIO_9 58
#define BDPIN_GPIO_10 59
#define BDPIN_GPIO_11 60
#define BDPIN_GPIO_12 61
#define BDPIN_GPIO_13 62
#define BDPIN_GPIO_14 63
#define BDPIN_GPIO_15 64
#define BDPIN_GPIO_16 65
#define BDPIN_GPIO_17 66
#define BDPIN_GPIO_18 67
#define BDPIN_UART1_RX 80
#define BDPIN_UART1_TX 81
#define BDPIN_UART2_RX 82
#define BDPIN_UART2_TX 83
#endif