Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 CAN Error Handling #644

Merged
merged 7 commits into from
Aug 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix review comments.
  • Loading branch information
bakerstu committed Aug 17, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 619dfd50698467f0691a177fd5cf49f74a94b943
2 changes: 2 additions & 0 deletions src/freertos_drivers/st/Stm32Can.cxx
Original file line number Diff line number Diff line change
@@ -126,6 +126,8 @@ Stm32Can::Stm32Can(const char *name)
#ifdef SPLIT_INT
HAL_NVIC_DisableIRQ(CAN_SECOND_IRQN);
SetInterruptPriority(CAN_SECOND_IRQN, configKERNEL_INTERRUPT_PRIORITY);
HAL_NVIC_DisableIRQ(CAN_THIRD_IRQN);
SetInterruptPriority(CAN_THIRD_IRQN, configKERNEL_INTERRUPT_PRIORITY);
#endif
#endif
bakerstu marked this conversation as resolved.
Show resolved Hide resolved
}
2 changes: 2 additions & 0 deletions src/freertos_drivers/st/Stm32Can.hxx
Original file line number Diff line number Diff line change
@@ -88,6 +88,8 @@ private:
*/
static unsigned int intCount;

uint8_t state_; ///< present bus state

/** Default constructor.
*/
Stm32Can();