mirror of
https://github.com/esp8266/Arduino.git
synced 2025-10-15 11:26:40 +03:00
[sam] integrating Wilfredo CAN driver function and bringing sn65hvd234
driver into CAN library
This commit is contained in:
@@ -153,6 +153,9 @@ uint32_t can_mailbox_write(Can *p_can, can_mb_conf_t *p_mailbox);
|
||||
uint32_t can_mailbox_tx_remote_frame(Can *p_can, can_mb_conf_t *p_mailbox);
|
||||
void can_reset_all_mailbox(Can *p_can);
|
||||
|
||||
// from wilfredo
|
||||
void reset_mailbox_conf(can_mb_conf_t *p_mailbox);
|
||||
|
||||
/** @} */
|
||||
|
||||
/** @cond 0 */
|
||||
|
@@ -764,6 +764,22 @@ void can_reset_all_mailbox(Can *p_can)
|
||||
}
|
||||
}
|
||||
|
||||
// from wilfredo
|
||||
void reset_mailbox_conf(can_mb_conf_t *p_mailbox)
|
||||
{
|
||||
p_mailbox->ul_mb_idx = 0;
|
||||
p_mailbox->uc_obj_type = 0;
|
||||
p_mailbox->uc_id_ver = 0;
|
||||
p_mailbox->uc_length = 0;
|
||||
p_mailbox->uc_tx_prio = 0;
|
||||
p_mailbox->ul_status = 0;
|
||||
p_mailbox->ul_id_msk = 0;
|
||||
p_mailbox->ul_id = 0;
|
||||
p_mailbox->ul_fid = 0;
|
||||
p_mailbox->ul_datal = 0;
|
||||
p_mailbox->ul_datah = 0;
|
||||
}
|
||||
|
||||
#endif // SAM3XA_SERIES
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user