Compare commits
2 Commits
add-F3-mac
...
433a142732
| Author | SHA1 | Date | |
|---|---|---|---|
| 433a142732 | |||
| f151e3a4fe |
@ -260,7 +260,7 @@ uint8_t *ftcan_marshal_unsigned(uint8_t *data, uint64_t val, size_t num_bytes) {
|
|||||||
num_bytes = 8;
|
num_bytes = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = num_bytes - 1; i >= 0; i++) {
|
for (int i = num_bytes - 1; i >= 0; i--) {
|
||||||
data[i] = val & 0xFF;
|
data[i] = val & 0xFF;
|
||||||
val >>= 8;
|
val >>= 8;
|
||||||
}
|
}
|
||||||
|
|||||||
13
can-halal.h
13
can-halal.h
@ -1,7 +1,18 @@
|
|||||||
#ifndef CAN_HALAL_H
|
#ifndef CAN_HALAL_H
|
||||||
#define CAN_HALAL_H
|
#define CAN_HALAL_H
|
||||||
|
|
||||||
#if defined(STM32F302x8) || defined(STM32F302xB) || defined(STM32F302xC) || defined(STM32F3)
|
// Define family macros if none are defined and we recognize a chip macro
|
||||||
|
#if !defined(STM32F3) && !defined(STM32H7)
|
||||||
|
#if defined(STM32F302x6) || defined(STM32F302x8) || defined(STM32F302xB) || \
|
||||||
|
defined(STM32F302xC)
|
||||||
|
#define STM32F3
|
||||||
|
#endif
|
||||||
|
#if defined(STM32H7A3xx)
|
||||||
|
#define STM32H7
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(STM32F3)
|
||||||
#include "stm32f3xx_hal.h"
|
#include "stm32f3xx_hal.h"
|
||||||
#define FTCAN_IS_BXCAN
|
#define FTCAN_IS_BXCAN
|
||||||
#define FTCAN_NUM_FILTERS 13
|
#define FTCAN_NUM_FILTERS 13
|
||||||
|
|||||||
Reference in New Issue
Block a user