Move typedef to header
This commit is contained in:
@@ -29,6 +29,12 @@ extern osMessageQueueId_t xCAN2RxQueue;
|
|||||||
extern osSemaphoreId_t xLEDSemaphoreCAN1;
|
extern osSemaphoreId_t xLEDSemaphoreCAN1;
|
||||||
extern osSemaphoreId_t xLEDSemaphoreCAN2;
|
extern osSemaphoreId_t xLEDSemaphoreCAN2;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
LED_Config *led;
|
||||||
|
osSemaphoreId_t semaphore;
|
||||||
|
osTimerId_t timer;
|
||||||
|
} LEDContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initializes the CAN logger modules, OS threads, queues, and hardware.
|
* @brief Initializes the CAN logger modules, OS threads, queues, and hardware.
|
||||||
* @param hcan1 Pointer to the CAN1 handle
|
* @param hcan1 Pointer to the CAN1 handle
|
||||||
|
|||||||
@@ -41,12 +41,6 @@ typedef struct {
|
|||||||
//uint32_t timestamp; //Enable TIM2: 42 MHz / (41+1) = 1 MHz → 1 µs tick; 32bit autoreload freerunning
|
//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
|
// this is for getting timestamps on can messages
|
||||||
} CanMessage_t;
|
} CanMessage_t;
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
LED_Config *led;
|
|
||||||
osSemaphoreId_t semaphore;
|
|
||||||
osTimerId_t timer;
|
|
||||||
} LEDContext;
|
|
||||||
/* USER CODE END PTD */
|
/* USER CODE END PTD */
|
||||||
|
|
||||||
/* Private define ------------------------------------------------------------*/
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user