-
Notifications
You must be signed in to change notification settings - Fork 25
/
hw_conf_v3.0.h
58 lines (48 loc) · 1.04 KB
/
hw_conf_v3.0.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
#ifndef _HW_CONF_V3_0_H_
#define _HW_CONF_V3_0_H_
#include "ch.h"
#include "hal.h"
// CHARGING CIRCUIT
#define CHRG_STAT_1_GPIO GPIOA
#define CHRG_STAT_1_PIN 2
#define CHRG_STAT_2_GPIO GPIOA
#define CHRG_STAT_2_PIN 3
#define CHRG_ENABLE_GPIO GPIOA
#define CHRG_ENABLE_PIN 8
// LTC6803
#define LTC6803_CS_GPIO GPIOA
#define LTC6803_CS_PIN 4
// SPI
#define SCK_GPIO GPIOA
#define SCK_PIN 5
#define MISO_GPIO GPIOA
#define MISO_PIN 6
#define MOSI_GPIO GPIOA
#define MOSI_PIN 7
// CAN
#define CAN_RX_GPIO GPIOB
#define CAN_RX_PIN 8
#define CAN_TX_GPIO GPIOB
#define CAN_TX_PIN 9
// GPIO
#define PCHG_SW_GPIO GPIOB
#define PCHG_SW_PIN 0
#define POWER_LED_GPIO GPIOB
#define POWER_LED_PIN 1
#define PWR_BTN_GPIO GPIOB
#define PWR_BTN_PIN 3
#define PWR_SW_GPIO GPIOB
#define PWR_SW_PIN 4
#define DSG_SW_GPIO GPIOB
#define DSG_SW_PIN 5
#define CHG_SENSE_GPIO GPIOB
#define CHG_SENSE_PIN 6
// WS2812
#define WS2812_SW_GPIO GPIOB
#define WS2812_SW_PIN 14
// USB
#define USB_DM_GPIO GPIOA
#define USB_DM_PIN 11
#define USB_DP_GPIO GPIOA
#define USB_DP_PIN 12
#endif