Skip to content

Commit 94418fd

Browse files
more
1 parent afafb0b commit 94418fd

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

board/drivers/gpio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define PULL_UP 1
88
#define PULL_DOWN 2
99

10-
#define OUTPUT_TYPE_PUSH_PULL 0U
1110
#define OUTPUT_TYPE_OPEN_DRAIN 1U
1211

1312
typedef struct {

board/drivers/usb_declarations.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,17 @@ void refresh_can_tx_slots_available(void);
3030

3131
// **** supporting defines ****
3232
#define USB_REQ_GET_STATUS 0x00
33-
#define USB_REQ_CLEAR_FEATURE 0x01
34-
#define USB_REQ_SET_FEATURE 0x03
3533
#define USB_REQ_SET_ADDRESS 0x05
3634
#define USB_REQ_GET_DESCRIPTOR 0x06
37-
#define USB_REQ_SET_DESCRIPTOR 0x07
38-
#define USB_REQ_GET_CONFIGURATION 0x08
3935
#define USB_REQ_SET_CONFIGURATION 0x09
40-
#define USB_REQ_GET_INTERFACE 0x0A
4136
#define USB_REQ_SET_INTERFACE 0x0B
42-
#define USB_REQ_SYNCH_FRAME 0x0C
4337

4438
#define USB_DESC_TYPE_DEVICE 0x01
4539
#define USB_DESC_TYPE_CONFIGURATION 0x02
4640
#define USB_DESC_TYPE_STRING 0x03
4741
#define USB_DESC_TYPE_INTERFACE 0x04
4842
#define USB_DESC_TYPE_ENDPOINT 0x05
4943
#define USB_DESC_TYPE_DEVICE_QUALIFIER 0x06
50-
#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION 0x07
5144
#define USB_DESC_TYPE_BINARY_OBJECT_STORE 0x0f
5245

5346
// offsets for configuration strings
@@ -56,22 +49,12 @@ void refresh_can_tx_slots_available(void);
5649
#define STRING_OFFSET_IPRODUCT 0x02
5750
#define STRING_OFFSET_ISERIAL 0x03
5851
#define STRING_OFFSET_ICONFIGURATION 0x04
59-
#define STRING_OFFSET_IINTERFACE 0x05
60-
61-
// WebUSB requests
62-
#define WEBUSB_REQ_GET_URL 0x02
63-
64-
// WebUSB types
65-
#define WEBUSB_DESC_TYPE_URL 0x03
66-
#define WEBUSB_URL_SCHEME_HTTPS 0x01
67-
#define WEBUSB_URL_SCHEME_HTTP 0x00
6852

6953
// WinUSB requests
7054
#define WINUSB_REQ_GET_COMPATID_DESCRIPTOR 0x04
7155
#define WINUSB_REQ_GET_EXT_PROPS_OS 0x05
7256
#define WINUSB_REQ_GET_DESCRIPTOR 0x07
7357

74-
#define STS_GOUT_NAK 1
7558
#define STS_DATA_UPDT 2
7659
#define STS_XFER_COMP 3
7760
#define STS_SETUP_COMP 4

board/faults_declarations.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,11 @@
1111
#define FAULT_INTERRUPT_RATE_CAN_2 (1UL << 3)
1212
#define FAULT_INTERRUPT_RATE_CAN_3 (1UL << 4)
1313
#define FAULT_INTERRUPT_RATE_TACH (1UL << 5)
14-
#define FAULT_INTERRUPT_RATE_GMLAN (1UL << 6) // deprecated
1514
#define FAULT_INTERRUPT_RATE_INTERRUPTS (1UL << 7)
1615
#define FAULT_INTERRUPT_RATE_SPI_DMA (1UL << 8)
17-
#define FAULT_INTERRUPT_RATE_SPI_CS (1UL << 9)
18-
#define FAULT_INTERRUPT_RATE_UART_1 (1UL << 10)
19-
#define FAULT_INTERRUPT_RATE_UART_2 (1UL << 11)
20-
#define FAULT_INTERRUPT_RATE_UART_3 (1UL << 12)
21-
#define FAULT_INTERRUPT_RATE_UART_5 (1UL << 13)
22-
#define FAULT_INTERRUPT_RATE_UART_DMA (1UL << 14)
2316
#define FAULT_INTERRUPT_RATE_USB (1UL << 15)
24-
#define FAULT_INTERRUPT_RATE_TIM1 (1UL << 16)
25-
#define FAULT_INTERRUPT_RATE_TIM3 (1UL << 17)
2617
#define FAULT_REGISTER_DIVERGENT (1UL << 18)
27-
#define FAULT_INTERRUPT_RATE_KLINE_INIT (1UL << 19)
28-
#define FAULT_INTERRUPT_RATE_CLOCK_SOURCE (1UL << 20)
2918
#define FAULT_INTERRUPT_RATE_TICK (1UL << 21)
30-
#define FAULT_INTERRUPT_RATE_EXTI (1UL << 22)
31-
#define FAULT_INTERRUPT_RATE_SPI (1UL << 23)
32-
#define FAULT_INTERRUPT_RATE_UART_7 (1UL << 24)
33-
#define FAULT_SIREN_MALFUNCTION (1UL << 25)
3419
#define FAULT_HEARTBEAT_LOOP_WATCHDOG (1UL << 26)
3520

3621
// Permanent faults

0 commit comments

Comments
 (0)