This commit is contained in:
v0stap
2026-04-03 18:58:04 +02:00
parent bd00d0025d
commit 5dbe2bdac6

View File

@@ -64,7 +64,7 @@ void CAN_Setup(uint32_t speed) {
void CAN_Start(void) {
CAN->MCR &= ~CAN_MCR_INRQ;
while ((CAN->MSR & CAN_MSR_INAK) == CAN_MSR_INAK) {
//todo Add timeout
}
}
@@ -136,7 +136,7 @@ void CAN_Read_Msg(can_msg_typedef *msg) {
// (uint16_t) (msg->id >> 16), (uint16_t) msg->id, msg->data[0],
// msg->data[1], msg->data[2], msg->data[3], msg->data[4],
// msg->data[5], msg->data[6], msg->data[7]);
// //(&canRxMsg); //TO DO not realy working
// //(&canRxMsg); //TODO not realy working
}
//Write CAN Filter
void CAN_Write_Filter(uint32_t id, uint8_t format) {
@@ -254,7 +254,7 @@ void CAN_Add_RX_Buffer(void) {
CAN_RX_Buffer.corent = 0;
}
//canAddRXBuffer(&canRxMsg); //TO DO not realy working
//canAddRXBuffer(&canRxMsg); //TODO not realy working
}
CAN->RF0R |= CAN_RF0R_RFOM0;
}