//CAN Status Register bits
#define CAN_SR_RBS (1<<0)
#define CAN_SR_DOS (1<<1)
-#define CAN_SR_TBS1 (1<<2)
+#define CAN_SR_TBS1 (1<<2)
+#define CAN_SR_TCS1 (1<<3)
//CAN Command Register bits
#define CAN_CMR_TR (1<<0)
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);
//----------------------------------
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);
unsigned can_lmc1_read_register(unsigned long address);
int can_lmc1_request_io(struct candevice_t *candev);
int can_lmc1_reset(struct candevice_t *candev);
+int can_lmc1_program_irq(struct candevice_t *candev);
// lpc17xx can chip specific functions:
int lpc17xx_chip_config(struct canchip_t *chip);