Count CAN frames read in one cycle

This commit is contained in:
jazzpi
2022-07-28 22:05:20 +02:00
parent eaf86ff0ce
commit d9e8cc5f52
3 changed files with 10 additions and 7 deletions

View File

@ -33,6 +33,10 @@ typedef struct {
extern canFrame framebuffer[CANFRAMEBUFFERSIZE];
extern uint32_t framebufferwritepointer;
extern uint32_t framebufferreadpointer;
extern uint32_t frames_read;
void HAL_FDCAN_RxFifo0Callback(FDCAN_HandleTypeDef* handle,
uint32_t interrupt_flags);