X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/e372a22696a079ea7f3bb00aa46e8a8281f1c49f..4b51897df818c0cef960dbfab815c7e69586c654:/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 5f9f4c0..9a8b259 100644 --- a/embedded/app/usbcan/can/lpc17xx_can.h +++ b/embedded/app/usbcan/can/lpc17xx_can.h @@ -8,6 +8,7 @@ #include "can/can.h" #include "can/canmsg.h" +#include "can/can_bittiming.h" #ifdef __cplusplus extern "C" @@ -155,29 +156,9 @@ 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); - -/* - * CAN harware-dependent bit-timing constant - * - * Used for calculating and checking bit-timing parameters - */ - -struct can_bittiming_const { - char name[16]; /* Name of the CAN controller hardware */ - uint32_t tseg1_min; /* Time segement 1 = prop_seg + phase_seg1 */ - uint32_t tseg1_max; - uint32_t tseg2_min; /* Time segement 2 = phase_seg2 */ - uint32_t tseg2_max; - uint32_t sjw_max; /* Synchronisation jump width */ - uint32_t brp_min; /* Bit-rate prescaler */ - uint32_t brp_max; - uint32_t brp_inc; -}; - struct can_lmc1_chip_data { int flags; - struct can_bittiming_const btc; };