mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-13 07:53:45 +08:00
22a8575199
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
27 lines
513 B
C
27 lines
513 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define CAN_INIT_TIMEOUT_MS 500U
|
|
#define USBPACKET_MAX_SIZE 0x40U
|
|
#define MAX_CAN_MSGS_PER_USB_BULK_TRANSFER 51U
|
|
#define MAX_CAN_MSGS_PER_SPI_BULK_TRANSFER 170U
|
|
|
|
// USB definitions
|
|
#define USB_VID 0x3801U
|
|
|
|
#ifdef BOOTSTUB
|
|
#define USB_PID 0xDDEEU
|
|
#else
|
|
#define USB_PID 0xDDCCU
|
|
#endif
|
|
|
|
// platform includes
|
|
#ifdef STM32H7
|
|
#include "board/stm32h7/stm32h7_config.h"
|
|
#else
|
|
// TODO: uncomment this, cppcheck complains
|
|
// building for tests
|
|
//#include "fake_stm.h"
|
|
#endif
|