template_reset

Name

template_reset --  hardware reset routine

Synopsis

int template_reset (struct candevice_t * candev);

Arguments

candev

Pointer to candevice/board structure

Description

The function template_reset is used to give a hardware reset. This is rather hardware specific so I haven't included example code. Don't forget to check the reset status of the chip before returning.

Return Value

The function returns zero on success or -ENODEV on failure

File

src/template.c