stm32f0: New target STM32F0 added.

Signed-off-by: Eugene Krashtan <Eugene.Krashtan@opensynergy.com>
This commit is contained in:
Eugene Krashtan
2019-03-11 12:47:58 +02:00
committed by Kevin O'Connor
parent 74c6a85cde
commit b822f38923
16 changed files with 1668 additions and 0 deletions

17
src/stm32f0/can.h Normal file
View 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_ */