diff options
author | Eugene Krashtan <Eugene.Krashtan@opensynergy.com> | 2019-03-11 12:47:58 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-03-24 12:10:11 -0400 |
commit | b822f389237981043a8033aa4232e8b084137b2c (patch) | |
tree | fec159e50a3314cabbe18352e26c10db39c6f621 /src/stm32f0/can.h | |
parent | 74c6a85cde9327b13a52b1d142b698e00e2d6122 (diff) | |
download | kutter-b822f389237981043a8033aa4232e8b084137b2c.tar.gz kutter-b822f389237981043a8033aa4232e8b084137b2c.tar.xz kutter-b822f389237981043a8033aa4232e8b084137b2c.zip |
stm32f0: New target STM32F0 added.
Signed-off-by: Eugene Krashtan <Eugene.Krashtan@opensynergy.com>
Diffstat (limited to 'src/stm32f0/can.h')
-rw-r--r-- | src/stm32f0/can.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stm32f0/can.h b/src/stm32f0/can.h new file mode 100644 index 00000000..6b3cb2a4 --- /dev/null +++ b/src/stm32f0/can.h @@ -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_ */ |