Fix scope error by moving declaration
This commit is contained in:
@@ -27,19 +27,6 @@
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN PTD */
|
||||
typedef struct {
|
||||
GPIO_TypeDef* port;
|
||||
uint16_t pin;
|
||||
} LED_Config;
|
||||
|
||||
typedef struct {
|
||||
uint32_t id;
|
||||
uint8_t payload[8];
|
||||
uint8_t dlc;
|
||||
uint8_t isExtended;
|
||||
//uint32_t timestamp; //Enable TIM2: 42 MHz / (41+1) = 1 MHz → 1 µs tick; 32bit autoreload freerunning
|
||||
// this is for getting timestamps on can messages
|
||||
} CanMessage_t;
|
||||
/* USER CODE END PTD */
|
||||
|
||||
/* Private define ------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user