diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2017-03-09 15:44:08 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-05-14 12:31:58 +0200 |
commit | ca4c4164b556fe7d086677a90b5acfd402254364 (patch) | |
tree | 0a56301c628baf39b8faf91eb716b2f647fb49e2 /c/src/lib/libbsp/sparc/shared/include | |
parent | leon, grcan: fixed race on interrupt mask register (diff) | |
download | rtems-ca4c4164b556fe7d086677a90b5acfd402254364.tar.bz2 |
leon, grcan: updated device name and use it for ISR
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grcan.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/grcan.h b/c/src/lib/libbsp/sparc/shared/include/grcan.h index 08e663804a..7de76a7286 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grcan.h +++ b/c/src/lib/libbsp/sparc/shared/include/grcan.h @@ -171,6 +171,17 @@ extern int grcan_dev_count(void); extern void *grcan_open(int dev_no); /* + * Open a GRCAN device by name. Finds device index then calls + * grcan_open(index). + * + * name: Device name to open + * dev_no: Device number matching name. Will be set if device found. + * return: Device handle to use with all other grcan_ API functions. The + * function returns NULL if device can not be opened or not found. + */ +extern void *grcan_open_by_name(char *name, int *dev_no); + +/* * Close a GRCAN device * * return: This function always returns 0 (success) |