X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/a9296605ae899d82c9e8f682eafe63d999c4a57b..6728e464dbd9929725b8394ca423690873677d9c:/embedded/app/usbcan/can/lpc17xx_can.h diff --git a/embedded/app/usbcan/can/lpc17xx_can.h b/embedded/app/usbcan/can/lpc17xx_can.h index 0e137a9..d920ffd 100644 --- a/embedded/app/usbcan/can/lpc17xx_can.h +++ b/embedded/app/usbcan/can/lpc17xx_can.h @@ -150,6 +150,7 @@ void CAN_init(struct canchip_t *chip); void CAN_send(struct canchip_t *chip, canmsg_t* msg); void CAN_recv(struct canchip_t *chip, canmsg_t* msg); void CAN_IRQHandler(void); +void CAN_set_bittiming(struct canchip_t *chip, uint32_t brp, uint32_t sjw, uint32_t tseg1, uint32_t tseg2); //---------------------------------- @@ -158,6 +159,8 @@ struct can_lmc1_chip_data int flags; }; +#define CAN_LMC1_CHIP_CANBTR_SET (1<<1) + // board can-lmc1 specific functions: int can_lmc1_register(struct hwspecops_t *hwspecops); int can_lmc1_init_hw_data(struct candevice_t *candev);