mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 19:28:16 -06:00
stm32: STM32F0 CAN feature
Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
5238c3f872
commit
a34dbc7029
4 changed files with 290 additions and 0 deletions
17
src/stm32/stm32f0_can.h
Normal file
17
src/stm32/stm32f0_can.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef CORE_INC_CAN_H_
|
||||
#define CORE_INC_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 STM32_UUID_ADDR (0x1FFFF7AC)
|
||||
#define SHORT_UUID_LEN (6)
|
||||
|
||||
void CanInit(void);
|
||||
void CanTransmit(uint32_t id, uint32_t dlc, uint8_t *pkt);
|
||||
|
||||
#endif /* CORE_INC_CAN_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue