1
0
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:
Thibaut VIARD
2012-12-20 11:20:01 +01:00
parent fd16c125d5
commit 2c107798a2
4 changed files with 248 additions and 0 deletions

View File

@@ -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 */

View File

@@ -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