mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 14:44:20 -06:00
stm32: Improved CAN support for STM32 (#2976)
Reworked the STM32F0 CAN bus implementation. It's more robust and higher performance. Added support for function remapping to different pins. API is emulating an STM32F0. Improved and ported CAN bus to STM32F0, F1 and F4. Signed-off-by: Pontus Borg <glpontus@gmail.com>
This commit is contained in:
parent
7cab732ae9
commit
7a8e9591e3
7 changed files with 493 additions and 279 deletions
13
src/stm32/can.h
Normal file
13
src/stm32/can.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef __STM32_CAN_H__
|
||||
#define __STM32_CAN_H__
|
||||
|
||||
// Read UUID (6bytes)
|
||||
#define PKT_ID_UUID (0x321)
|
||||
// Set address (2bytes) to UUID (6b)
|
||||
#define PKT_ID_SET (0x322)
|
||||
// UUID response from slave (6bytes)
|
||||
#define PKT_ID_UUID_RESP (0x323)
|
||||
|
||||
#define SHORT_UUID_LEN (6)
|
||||
|
||||
#endif /* __STM32_CAN_H__*/
|
Loading…
Add table
Add a link
Reference in a new issue