We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae6ccad + b000df6 commit 52ed65aCopy full SHA for 52ed65a
STM32_CAN.h
@@ -32,6 +32,7 @@ to same folder with sketch and haven #define HAL_CAN_MODULE_ENABLED there. See e
32
#if defined(STM32F0xx)
33
#define CAN1_TX_IRQn CEC_CAN_IRQn
34
#define CAN1_RX0_IRQn CEC_CAN_IRQn
35
+ #define CAN1_RX0_IRQHandler CEC_CAN_IRQHandler
36
#endif
37
38
#include <Arduino.h>
@@ -193,8 +194,8 @@ class STM32_CAN {
193
194
uint8_t timeseg2, uint8_t sjw);
195
uint32_t getAPB1Clock(void);
196
- volatile CAN_message_t *rx_buffer;
197
- volatile CAN_message_t *tx_buffer;
+ volatile CAN_message_t *rx_buffer = nullptr;
198
+ volatile CAN_message_t *tx_buffer = nullptr;
199
200
static constexpr Baudrate_entry_t BAUD_RATE_TABLE_48M[] {
201
{
0 commit comments