RTEMS CAN/CAN FD Stack
|
This header file contains the implementation of CTU CAN FD controller. More...
Go to the source code of this file.
Functions | |
struct can_chip * | ctucanfd_initialize (uint32_t addr, rtems_vector_number irq, int ntxbufs, rtems_option irq_option, unsigned long can_clk_rate) |
This function initializes the CTU CAN FD controller. | |
This header file contains the implementation of CTU CAN FD controller.
struct can_chip * ctucanfd_initialize | ( | uint32_t | addr, |
rtems_vector_number | irq, | ||
int | ntxbufs, | ||
rtems_option | irq_option, | ||
unsigned long | can_clk_rate | ||
) |
This function initializes the CTU CAN FD controller.
This is an entry point for CTU CAN FD controller initialization. This function allocates generic CAN and CTU CAN FD related structures, sets default values and initializes the resoursec (interrupt handler, semaphore. worker thread).
addr | CTU CAN FD code base address. |
irq | Interrupt number |
ntxbufs | Number of TX hardware buffers |
irq_option | RTEMS_INTERRUPT_SHARED or RTEMS_INTERRUPT_UNIQUE |
can_clk_rate | CAN clock rate. |