|
RTEMS CAN/CAN FD Stack
|
This header file contains the implementation of SJA1000 controller. More...

Go to the source code of this file.
Functions | |
| struct rtems_can_chip * | rtems_can_sja1000_initialize (uintptr_t addr, unsigned int hw_options, rtems_vector_number irq, rtems_task_priority worker_priority, rtems_option irq_option, unsigned long can_clk_rate) |
| This function initializes the SJA1000 controller. | |
This header file contains the implementation of SJA1000 controller.
| struct rtems_can_chip * rtems_can_sja1000_initialize | ( | uintptr_t | addr, |
| unsigned int | hw_options, | ||
| rtems_vector_number | irq, | ||
| rtems_task_priority | worker_priority, | ||
| rtems_option | irq_option, | ||
| unsigned long | can_clk_rate | ||
| ) |
This function initializes the SJA1000 controller.
This is an entry point for SJA1000 controller initialization. This function allocates generic CAN and SJA1000 related structures, sets default values and initializes the resources (interrupt handler, semaphore. worker thread).
| addr | SJA1000 controller base address. |
| hw_options | SJA1000 controller hardware options for register mapping. |
| irq | Interrupt number. |
| worker_priotiry | The priority of TX/RX worker thread. |
| irq_option | RTEMS_INTERRUPT_SHARED or RTEMS_INTERRUPT_UNIQUE. |
| can_clk_rate | CAN clock rate. |